Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
9cd2dbbd
提交
9cd2dbbd
authored
8月 17, 2016
作者:
Antonio
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-9398 solve missing variables in sofia events expire and unregister
上级
f8bcc9d1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+7
-2
没有找到文件。
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
9cd2dbbd
...
...
@@ -717,6 +717,8 @@ int sofia_reg_del_callback(void *pArg, int argc, char **argv, char **columnNames
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"expires"
,
argv
[
6
]);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"user-agent"
,
argv
[
7
]);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"realm"
,
argv
[
14
]);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"network-ip"
,
argv
[
11
]);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"network-port"
,
argv
[
12
]);
sofia_event_fire
(
profile
,
&
s_event
);
}
...
...
@@ -1332,6 +1334,8 @@ uint8_t sofia_reg_handle_register_token(nua_t *nua, sofia_profile_t *profile, nu
contact
=
sip
->
sip_contact
;
to
=
sip
->
sip_to
;
from
=
sip
->
sip_from
;
call_id
=
sip
->
sip_call_id
->
i_id
;
switch_assert
(
call_id
);
if
(
sip
->
sip_user_agent
)
{
agent
=
sip
->
sip_user_agent
->
g_string
;
...
...
@@ -1853,8 +1857,6 @@ uint8_t sofia_reg_handle_register_token(nua_t *nua, sofia_profile_t *profile, nu
switch_goto_int
(
r
,
0
,
end
);
}
call_id
=
sip
->
sip_call_id
->
i_id
;
switch_assert
(
call_id
);
/* Does this profile supports multiple registrations ? */
multi_reg
=
(
sofia_test_pflag
(
profile
,
PFLAG_MULTIREG
))
?
1
:
0
;
...
...
@@ -2159,6 +2161,9 @@ uint8_t sofia_reg_handle_register_token(nua_t *nua, sofia_profile_t *profile, nu
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"call-id"
,
call_id
);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"rpid"
,
rpid
);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"realm"
,
realm
);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"network-ip"
,
network_ip
);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"network-port"
,
network_port_c
);
switch_event_add_header_string
(
s_event
,
SWITCH_STACK_BOTTOM
,
"user-agent"
,
agent
);
switch_event_add_header
(
s_event
,
SWITCH_STACK_BOTTOM
,
"expires"
,
"%ld"
,
(
long
)
exptime
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论