Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
cd316330
提交
cd316330
authored
8月 18, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3511 FS-2875 --resolve we will go with this as-is and just make it a default
上级
c269a58a
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
176 行增加
和
57 行删除
+176
-57
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+2
-0
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+13
-0
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+161
-57
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
cd316330
...
...
@@ -354,6 +354,7 @@ struct mod_sofia_globals {
int
debug_presence
;
int
debug_sla
;
int
auto_restart
;
int
reg_deny_binding_fetch_and_no_lookup
;
/* backwards compatibility */
int
auto_nat
;
int
tracelevel
;
char
*
capture_server
;
...
...
@@ -1116,6 +1117,7 @@ switch_t38_options_t *sofia_glue_extract_t38_options(switch_core_session_t *sess
char
*
sofia_glue_get_multipart
(
switch_core_session_t
*
session
,
const
char
*
prefix
,
const
char
*
sdp
,
char
**
mp_type
);
void
sofia_glue_tech_simplify
(
private_object_t
*
tech_pvt
);
switch_console_callback_match_t
*
sofia_reg_find_reg_url_multi
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
);
switch_console_callback_match_t
*
sofia_reg_find_reg_url_with_positive_expires_multi
(
sofia_profile_t
*
profile
,
const
char
*
user
,
const
char
*
host
);
switch_bool_t
sofia_glue_profile_exists
(
const
char
*
key
);
void
sofia_glue_global_siptrace
(
switch_bool_t
on
);
void
sofia_glue_global_capture
(
switch_bool_t
on
);
...
...
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
cd316330
...
...
@@ -2709,6 +2709,12 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
mod_sofia_globals
.
debug_sla
=
atoi
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"auto-restart"
))
{
mod_sofia_globals
.
auto_restart
=
switch_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"reg-deny-binding-fetch-and-no-lookup"
))
{
/* backwards compatibility */
mod_sofia_globals
.
reg_deny_binding_fetch_and_no_lookup
=
switch_true
(
val
);
/* remove when noone complains about the extra lookup */
if
(
switch_true
(
val
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Enabling reg-deny-binding-fetch-and-no-lookup - this functionality is "
"deprecated and will be removed - let FS devs know if you think it should stay
\n
"
);
}
}
else
if
(
!
strcasecmp
(
var
,
"rewrite-multicasted-fs-path"
))
{
if
(
(
!
strcasecmp
(
val
,
"to_host"
))
||
(
!
strcasecmp
(
val
,
"1"
))
)
{
/* old behaviour */
...
...
@@ -3386,6 +3392,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
}
mod_sofia_globals
.
auto_restart
=
SWITCH_TRUE
;
mod_sofia_globals
.
reg_deny_binding_fetch_and_no_lookup
=
SWITCH_FALSE
;
/* handle backwards compatilibity - by default use new behavior */
mod_sofia_globals
.
rewrite_multicasted_fs_path
=
SWITCH_FALSE
;
if
((
settings
=
switch_xml_child
(
cfg
,
"global_settings"
)))
{
...
...
@@ -3402,6 +3409,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
mod_sofia_globals
.
debug_sla
=
atoi
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"auto-restart"
))
{
mod_sofia_globals
.
auto_restart
=
switch_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"reg-deny-binding-fetch-and-no-lookup"
))
{
/* backwards compatibility */
mod_sofia_globals
.
reg_deny_binding_fetch_and_no_lookup
=
switch_true
(
val
);
/* remove when noone complains about the extra lookup */
if
(
switch_true
(
val
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Enabling reg-deny-binding-fetch-and-no-lookup - this functionality is "
"deprecated and will be removed - let FS devs know if you think it should stay
\n
"
);
}
}
else
if
(
!
strcasecmp
(
var
,
"rewrite-multicasted-fs-path"
))
{
if
(
(
!
strcasecmp
(
val
,
"to_host"
))
||
(
!
strcasecmp
(
val
,
"1"
))
)
{
/* old behaviour */
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
cd316330
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论