Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
53b0ecce
提交
53b0ecce
authored
8月 05, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use the call_id of the original register in the unsolicited notify for MWI
上级
54feb3e2
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
6 行删除
+8
-6
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+1
-1
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+2
-1
sofia_presence.c
src/mod/endpoints/mod_sofia/sofia_presence.c
+4
-3
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+1
-1
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
53b0ecce
...
@@ -1096,7 +1096,7 @@ void sofia_glue_get_addr(msg_t *msg, char *buf, size_t buflen, int *port);
...
@@ -1096,7 +1096,7 @@ void sofia_glue_get_addr(msg_t *msg, char *buf, size_t buflen, int *port);
sofia_destination_t
*
sofia_glue_get_destination
(
char
*
data
);
sofia_destination_t
*
sofia_glue_get_destination
(
char
*
data
);
void
sofia_glue_free_destination
(
sofia_destination_t
*
dst
);
void
sofia_glue_free_destination
(
sofia_destination_t
*
dst
);
switch_status_t
sofia_glue_send_notify
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
,
const
char
*
event
,
const
char
*
contenttype
,
switch_status_t
sofia_glue_send_notify
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
,
const
char
*
event
,
const
char
*
contenttype
,
const
char
*
body
,
const
char
*
o_contact
,
const
char
*
network_ip
);
const
char
*
body
,
const
char
*
o_contact
,
const
char
*
network_ip
,
const
char
*
call_id
);
char
*
sofia_glue_get_extra_headers
(
switch_channel_t
*
channel
,
const
char
*
prefix
);
char
*
sofia_glue_get_extra_headers
(
switch_channel_t
*
channel
,
const
char
*
prefix
);
void
sofia_glue_set_extra_headers
(
switch_channel_t
*
channel
,
sip_t
const
*
sip
,
const
char
*
prefix
);
void
sofia_glue_set_extra_headers
(
switch_channel_t
*
channel
,
sip_t
const
*
sip
,
const
char
*
prefix
);
void
sofia_info_send_sipfrag
(
switch_core_session_t
*
aleg
,
switch_core_session_t
*
bleg
);
void
sofia_info_send_sipfrag
(
switch_core_session_t
*
aleg
,
switch_core_session_t
*
bleg
);
...
...
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
53b0ecce
...
@@ -6319,7 +6319,7 @@ void sofia_glue_free_destination(sofia_destination_t *dst)
...
@@ -6319,7 +6319,7 @@ void sofia_glue_free_destination(sofia_destination_t *dst)
}
}
switch_status_t
sofia_glue_send_notify
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
,
const
char
*
event
,
const
char
*
contenttype
,
switch_status_t
sofia_glue_send_notify
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
,
const
char
*
event
,
const
char
*
contenttype
,
const
char
*
body
,
const
char
*
o_contact
,
const
char
*
network_ip
)
const
char
*
body
,
const
char
*
o_contact
,
const
char
*
network_ip
,
const
char
*
call_id
)
{
{
char
*
id
=
NULL
;
char
*
id
=
NULL
;
nua_handle_t
*
nh
;
nua_handle_t
*
nh
;
...
@@ -6376,6 +6376,7 @@ switch_status_t sofia_glue_send_notify(sofia_profile_t *profile, const char *use
...
@@ -6376,6 +6376,7 @@ switch_status_t sofia_glue_send_notify(sofia_profile_t *profile, const char *use
TAG_IF
(
dst
->
route_uri
,
NUTAG_PROXY
(
route_uri
)),
TAG_IF
(
dst
->
route
,
SIPTAG_ROUTE_STR
(
dst
->
route
)),
TAG_IF
(
dst
->
route_uri
,
NUTAG_PROXY
(
route_uri
)),
TAG_IF
(
dst
->
route
,
SIPTAG_ROUTE_STR
(
dst
->
route
)),
TAG_IF
(
user_via
,
SIPTAG_VIA_STR
(
user_via
)),
TAG_IF
(
user_via
,
SIPTAG_VIA_STR
(
user_via
)),
TAG_IF
(
event
,
SIPTAG_EVENT_STR
(
event
)),
TAG_IF
(
event
,
SIPTAG_EVENT_STR
(
event
)),
TAG_IF
(
call_id
,
SIPTAG_CALL_ID_STR
(
call_id
)),
TAG_IF
(
contenttype
,
SIPTAG_CONTENT_TYPE_STR
(
contenttype
)),
TAG_IF
(
body
,
SIPTAG_PAYLOAD_STR
(
body
)),
TAG_END
());
TAG_IF
(
contenttype
,
SIPTAG_CONTENT_TYPE_STR
(
contenttype
)),
TAG_IF
(
body
,
SIPTAG_PAYLOAD_STR
(
body
)),
TAG_END
());
switch_safe_free
(
contact
);
switch_safe_free
(
contact
);
...
...
src/mod/endpoints/mod_sofia/sofia_presence.c
浏览文件 @
53b0ecce
...
@@ -484,10 +484,10 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event)
...
@@ -484,10 +484,10 @@ static void actual_sofia_presence_mwi_event_handler(switch_event_t *event)
}
}
if
(
for_everyone
)
{
if
(
for_everyone
)
{
sql
=
switch_mprintf
(
"select sip_user,sip_host,contact,profile_name,network_ip,'%q' "
sql
=
switch_mprintf
(
"select sip_user,sip_host,contact,profile_name,network_ip,'%q'
,call_id
"
"from sip_registrations where mwi_user='%q' and mwi_host='%q'"
,
stream
.
data
,
user
,
host
);
"from sip_registrations where mwi_user='%q' and mwi_host='%q'"
,
stream
.
data
,
user
,
host
);
}
else
if
(
call_id
)
{
}
else
if
(
call_id
)
{
sql
=
switch_mprintf
(
"select sip_user,sip_host,contact,profile_name,network_ip,'%q' "
sql
=
switch_mprintf
(
"select sip_user,sip_host,contact,profile_name,network_ip,'%q'
,call_id
"
"from sip_registrations where mwi_user='%q' and mwi_host='%q' and call_id='%q'"
,
stream
.
data
,
user
,
host
,
call_id
);
"from sip_registrations where mwi_user='%q' and mwi_host='%q' and call_id='%q'"
,
stream
.
data
,
user
,
host
,
call_id
);
}
}
...
@@ -1860,6 +1860,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
...
@@ -1860,6 +1860,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
const
char
*
body
=
argv
[
5
];
const
char
*
body
=
argv
[
5
];
const
char
*
o_contact
=
argv
[
2
];
const
char
*
o_contact
=
argv
[
2
];
const
char
*
network_ip
=
argv
[
4
];
const
char
*
network_ip
=
argv
[
4
];
const
char
*
call_id
=
argv
[
6
];
char
*
profile_name
=
argv
[
3
];
char
*
profile_name
=
argv
[
3
];
struct
mwi_helper
*
h
=
(
struct
mwi_helper
*
)
pArg
;
struct
mwi_helper
*
h
=
(
struct
mwi_helper
*
)
pArg
;
...
@@ -1871,7 +1872,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
...
@@ -1871,7 +1872,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
}
}
}
}
sofia_glue_send_notify
(
profile
,
user
,
host
,
event
,
contenttype
,
body
,
o_contact
,
network_ip
);
sofia_glue_send_notify
(
profile
,
user
,
host
,
event
,
contenttype
,
body
,
o_contact
,
network_ip
,
call_id
);
if
(
ext_profile
)
{
if
(
ext_profile
)
{
sofia_glue_release_profile
(
ext_profile
);
sofia_glue_release_profile
(
ext_profile
);
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
53b0ecce
...
@@ -519,7 +519,7 @@ void sofia_reg_send_reboot(sofia_profile_t *profile, const char *user, const cha
...
@@ -519,7 +519,7 @@ void sofia_reg_send_reboot(sofia_profile_t *profile, const char *user, const cha
event
=
"reboot"
;
event
=
"reboot"
;
}
}
sofia_glue_send_notify
(
profile
,
user
,
host
,
event
,
contenttype
,
body
,
contact
,
network_ip
);
sofia_glue_send_notify
(
profile
,
user
,
host
,
event
,
contenttype
,
body
,
contact
,
network_ip
,
NULL
);
}
}
int
sofia_sla_dialog_del_callback
(
void
*
pArg
,
int
argc
,
char
**
argv
,
char
**
columnNames
)
int
sofia_sla_dialog_del_callback
(
void
*
pArg
,
int
argc
,
char
**
argv
,
char
**
columnNames
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论