Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
8e5012e4
提交
8e5012e4
authored
12月 06, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-4913 try this patch
上级
84ce2303
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
4 行删除
+14
-4
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+10
-0
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+4
-4
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
8e5012e4
...
...
@@ -269,6 +269,11 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
if (p != sip->sip_from->a_display) free(p);
if ((full = sip_header_as_string(nh->nh_home, (void *) sip->sip_from))) {
switch_channel_set_variable(channel, "sip_full_from", full);
if (!switch_channel_get_variable_dup(channel, "sip_orig_full_from", SWITCH_FALSE, -1)) {
switch_channel_set_variable(channel, "sip_orig_full_from", full);
}
su_free(nh->nh_home, full);
}
}
...
...
@@ -284,6 +289,11 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
if ((full = sip_header_as_string(nh->nh_home, (void *) sip->sip_to))) {
switch_channel_set_variable(channel, "sip_full_to", full);
if (!switch_channel_get_variable_dup(channel, "sip_orig_full_to", SWITCH_FALSE, -1)) {
switch_channel_set_variable(channel, "sip_orig_full_to", full);
}
su_free(nh->nh_home, full);
}
}
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
8e5012e4
...
...
@@ -5863,8 +5863,8 @@ int sofia_recover_callback(switch_core_session_t *session)
if
(
switch_channel_direction
(
channel
)
==
SWITCH_CALL_DIRECTION_OUTBOUND
)
{
int
break_rfc
=
switch_true
(
switch_channel_get_variable
(
channel
,
"sip_recovery_break_rfc"
));
tech_pvt
->
dest
=
switch_core_session_sprintf
(
session
,
"sip:%s"
,
switch_channel_get_variable
(
channel
,
"sip_req_uri"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_from"
,
switch_channel_get_variable
(
channel
,
break_rfc
?
"sip_
full_to"
:
"sip
_full_from"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_to"
,
switch_channel_get_variable
(
channel
,
break_rfc
?
"sip_
full_from"
:
"sip
_full_to"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_from"
,
switch_channel_get_variable
(
channel
,
break_rfc
?
"sip_
orig_full_to"
:
"sip_orig
_full_from"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_to"
,
switch_channel_get_variable
(
channel
,
break_rfc
?
"sip_
orig_full_from"
:
"sip_orig
_full_to"
));
}
else
{
tech_pvt
->
redirected
=
switch_core_session_sprintf
(
session
,
"sip:%s"
,
switch_channel_get_variable
(
channel
,
"sip_contact_uri"
));
...
...
@@ -5878,11 +5878,11 @@ int sofia_recover_callback(switch_core_session_t *session)
tech_pvt
->
dest
=
switch_core_session_sprintf
(
session
,
"sip:%s"
,
switch_channel_get_variable
(
channel
,
"sip_from_uri"
));
if
(
!
switch_channel_get_variable_dup
(
channel
,
"sip_handle_full_from"
,
SWITCH_FALSE
,
-
1
))
{
switch_channel_set_variable
(
channel
,
"sip_handle_full_from"
,
switch_channel_get_variable
(
channel
,
"sip_full_to"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_from"
,
switch_channel_get_variable
(
channel
,
"sip_
orig_
full_to"
));
}
if
(
!
switch_channel_get_variable_dup
(
channel
,
"sip_handle_full_to"
,
SWITCH_FALSE
,
-
1
))
{
switch_channel_set_variable
(
channel
,
"sip_handle_full_to"
,
switch_channel_get_variable
(
channel
,
"sip_full_from"
));
switch_channel_set_variable
(
channel
,
"sip_handle_full_to"
,
switch_channel_get_variable
(
channel
,
"sip_
orig_
full_from"
));
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论