Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f1b636aa
提交
f1b636aa
authored
5月 21, 2010
作者:
Mathieu Parent
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Skinny: fix crash with outgoing channel without remote session
上级
9682599b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
9 行删除
+11
-9
mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.c
+11
-9
没有找到文件。
src/mod/endpoints/mod_skinny/mod_skinny.c
浏览文件 @
f1b636aa
...
...
@@ -985,7 +985,7 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
skinny_profile_t
*
profile
=
NULL
;
char
*
sql
;
char
name
[
128
];
switch_channel_t
*
channel
;
switch_channel_t
*
n
channel
;
switch_caller_profile_t
*
caller_profile
;
if
(
!
outbound_profile
||
zstr
(
outbound_profile
->
destination_number
))
{
...
...
@@ -1024,16 +1024,16 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
snprintf
(
name
,
sizeof
(
name
),
"SKINNY/%s/%s"
,
profile
->
name
,
dest
);
channel
=
switch_core_session_get_channel
(
nsession
);
switch_channel_set_name
(
channel
,
name
);
n
channel
=
switch_core_session_get_channel
(
nsession
);
switch_channel_set_name
(
n
channel
,
name
);
tech_init
(
tech_pvt
,
profile
,
nsession
);
caller_profile
=
switch_caller_profile_clone
(
nsession
,
outbound_profile
);
switch_channel_set_caller_profile
(
channel
,
caller_profile
);
switch_channel_set_caller_profile
(
n
channel
,
caller_profile
);
tech_pvt
->
caller_profile
=
caller_profile
;
switch_channel_set_flag
(
channel
,
CF_OUTBOUND
);
switch_channel_set_flag
(
n
channel
,
CF_OUTBOUND
);
if
((
sql
=
switch_mprintf
(
"INSERT INTO skinny_active_lines "
...
...
@@ -1048,8 +1048,10 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
}
/* FIXME: ring_lines need BOND before switch_core_session_outgoing_channel() set it */
switch_channel_set_variable
(
switch_core_session_get_channel
(
session
),
SWITCH_SIGNAL_BOND_VARIABLE
,
switch_core_session_get_uuid
(
nsession
));
switch_channel_set_variable
(
switch_core_session_get_channel
(
nsession
),
SWITCH_SIGNAL_BOND_VARIABLE
,
switch_core_session_get_uuid
(
session
));
if
(
session
)
{
switch_channel_set_variable
(
switch_core_session_get_channel
(
session
),
SWITCH_SIGNAL_BOND_VARIABLE
,
switch_core_session_get_uuid
(
nsession
));
switch_channel_set_variable
(
nchannel
,
SWITCH_SIGNAL_BOND_VARIABLE
,
switch_core_session_get_uuid
(
session
));
}
cause
=
skinny_ring_lines
(
tech_pvt
,
session
);
...
...
@@ -1061,8 +1063,8 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
/* ?? switch_channel_mark_ring_ready(channel); */
if
(
switch_channel_get_state
(
channel
)
==
CS_NEW
)
{
switch_channel_set_state
(
channel
,
CS_INIT
);
if
(
switch_channel_get_state
(
n
channel
)
==
CS_NEW
)
{
switch_channel_set_state
(
n
channel
,
CS_INIT
);
}
cause
=
SWITCH_CAUSE_SUCCESS
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论