Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
c58b1508
提交
c58b1508
authored
7月 03, 2013
作者:
Ken Rice
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--resolve FS-5426
上级
42916f81
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
21 行增加
和
1 行删除
+21
-1
internal.xml
conf/vanilla/sip_profiles/internal.xml
+4
-0
sofia.conf.xml
src/mod/endpoints/mod_sofia/conf/sofia.conf.xml
+4
-0
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+1
-0
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+4
-1
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+8
-0
没有找到文件。
conf/vanilla/sip_profiles/internal.xml
浏览文件 @
c58b1508
...
@@ -178,6 +178,10 @@
...
@@ -178,6 +178,10 @@
<!-- if you want to send any special bind params of your own -->
<!-- if you want to send any special bind params of your own -->
<!--<param name="bind-params" value="transport=udp"/>-->
<!--<param name="bind-params" value="transport=udp"/>-->
<!--<param name="unregister-on-options-fail" value="true"/>-->
<!--<param name="unregister-on-options-fail" value="true"/>-->
<!-- Send an OPTIONS packet to all registered endpoints -->
<!--<param name="all-reg-options-ping" value="true"/>-->
<!-- Send an OPTIONS packet to NATed registered endpoints. Can be 'true' or 'udp-only'. --!>
<!--<param name="nat-options-ping" value="true"/>-->
<!-- TLS: disabled by default, set to "true" to enable -->
<!-- TLS: disabled by default, set to "true" to enable -->
<param
name=
"tls"
value=
"$${internal_ssl_enable}"
/>
<param
name=
"tls"
value=
"$${internal_ssl_enable}"
/>
...
...
src/mod/endpoints/mod_sofia/conf/sofia.conf.xml
浏览文件 @
c58b1508
...
@@ -205,6 +205,10 @@
...
@@ -205,6 +205,10 @@
<!-- if you want to send any special bind params of your own -->
<!-- if you want to send any special bind params of your own -->
<!-- <param name="bind-params" value="transport=udp"/> -->
<!-- <param name="bind-params" value="transport=udp"/> -->
<!-- <param name="unregister-on-options-fail" value="true"/> -->
<!-- <param name="unregister-on-options-fail" value="true"/> -->
<!-- Send an OPTIONS packet to all registered endpoints -->
<!--<param name="all-reg-options-ping" value="true"/>-->
<!-- Send an OPTIONS packet to NATed registered endpoints. Can be 'true' or 'udp-only
<!--<param name="nat-options-ping" value="true"/>-->
<!-- TLS: disabled by default, set to "true" to enable -->
<!-- TLS: disabled by default, set to "true" to enable -->
<param
name=
"tls"
value=
"$${internal_ssl_enable}"
/>
<param
name=
"tls"
value=
"$${internal_ssl_enable}"
/>
...
...
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
c58b1508
...
@@ -240,6 +240,7 @@ typedef enum {
...
@@ -240,6 +240,7 @@ typedef enum {
PFLAG_DISABLE_NAPTR
,
PFLAG_DISABLE_NAPTR
,
PFLAG_AUTOFLUSH
,
PFLAG_AUTOFLUSH
,
PFLAG_NAT_OPTIONS_PING
,
PFLAG_NAT_OPTIONS_PING
,
PFLAG_UDP_NAT_OPTIONS_PING
,
PFLAG_ALL_REG_OPTIONS_PING
,
PFLAG_ALL_REG_OPTIONS_PING
,
PFLAG_AUTOFIX_TIMING
,
PFLAG_AUTOFIX_TIMING
,
PFLAG_MESSAGE_QUERY_ON_REGISTER
,
PFLAG_MESSAGE_QUERY_ON_REGISTER
,
...
...
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
c58b1508
...
@@ -4282,10 +4282,13 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
...
@@ -4282,10 +4282,13 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
}
else
if
(
!
strcasecmp
(
var
,
"contact-user"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"contact-user"
))
{
profile
->
contact_user
=
switch_core_strdup
(
profile
->
pool
,
val
);
profile
->
contact_user
=
switch_core_strdup
(
profile
->
pool
,
val
);
}
else
if
(
!
strcasecmp
(
var
,
"nat-options-ping"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"nat-options-ping"
))
{
if
(
switch_true
(
val
))
{
if
(
!
strcasecmp
(
val
,
"udp-only"
))
{
sofia_set_pflag
(
profile
,
PFLAG_UDP_NAT_OPTIONS_PING
);
}
else
if
(
switch_true
(
val
))
{
sofia_set_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
);
sofia_set_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
);
}
else
{
}
else
{
sofia_clear_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
);
sofia_clear_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
);
sofia_clear_pflag
(
profile
,
PFLAG_UDP_NAT_OPTIONS_PING
);
}
}
}
else
if
(
!
strcasecmp
(
var
,
"all-reg-options-ping"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"all-reg-options-ping"
))
{
if
(
switch_true
(
val
))
{
if
(
switch_true
(
val
))
{
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
c58b1508
...
@@ -802,6 +802,14 @@ void sofia_reg_check_expire(sofia_profile_t *profile, time_t now, int reboot)
...
@@ -802,6 +802,14 @@ void sofia_reg_check_expire(sofia_profile_t *profile, time_t now, int reboot)
" from sip_registrations where hostname='%s' and "
" from sip_registrations where hostname='%s' and "
"profile_name='%s'"
,
mod_sofia_globals
.
hostname
,
profile
->
name
);
"profile_name='%s'"
,
mod_sofia_globals
.
hostname
,
profile
->
name
);
sofia_glue_execute_sql_callback
(
profile
,
profile
->
dbh_mutex
,
sql
,
sofia_reg_nat_callback
,
profile
);
switch_safe_free
(
sql
);
}
else
if
(
sofia_test_pflag
(
profile
,
PFLAG_UDP_NAT_OPTIONS_PING
))
{
sql
=
switch_mprintf
(
"select call_id,sip_user,sip_host,contact,status,rpid,"
"expires,user_agent,server_user,server_host,profile_name"
" from sip_registrations where status like '%%UDP-NAT%%' "
"and hostname='%s' and profile_name='%s'"
,
mod_sofia_globals
.
hostname
,
profile
->
name
);
sofia_glue_execute_sql_callback
(
profile
,
profile
->
dbh_mutex
,
sql
,
sofia_reg_nat_callback
,
profile
);
sofia_glue_execute_sql_callback
(
profile
,
profile
->
dbh_mutex
,
sql
,
sofia_reg_nat_callback
,
profile
);
switch_safe_free
(
sql
);
switch_safe_free
(
sql
);
}
else
if
(
sofia_test_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
))
{
}
else
if
(
sofia_test_pflag
(
profile
,
PFLAG_NAT_OPTIONS_PING
))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论