Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
64080300
提交
64080300
authored
10月 07, 2008
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cleanup
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@9871
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
ff3f04f1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+9
-9
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
64080300
...
...
@@ -909,7 +909,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
gateway
->
retry_seconds
=
atoi
(
retry_seconds
);
if
(
gateway
->
retry_seconds
<
10
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"
INVALID: retry-seconds of %d on gateway %s correcting the value to 30
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"
invalid retry-seconds of %d on gateway %s, using the value of 30 instead.
\n
"
,
gateway
->
retry_seconds
,
name
);
gateway
->
retry_seconds
=
30
;
}
...
...
@@ -954,7 +954,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
gateway
->
expires_str
=
switch_core_strdup
(
gateway
->
pool
,
expire_seconds
);
if
((
gateway
->
freq
=
atoi
(
gateway
->
expires_str
))
<
5
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"I
NVALID: register-frequency of %d on gateway %s to 3600
\n
"
,
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"I
nvalid register-frequency of %d on gateway %s, using the value of 3600 instead
\n
"
,
gateway
->
freq
,
name
);
gateway
->
freq
=
3600
;
}
...
...
@@ -4046,7 +4046,7 @@ static void set_variable_sip_param(switch_channel_t *channel, char *header_type,
/* Build the static part of the sip_header_name variable from */
/* the header_type. If the header type is "referred_by" then */
/* sip_header_name = "sip_referred_by_". */
/* sip_header_name = "sip_referred_by_".
*/
sh
=
sip_header_name
;
sh_end
=
sh
+
sizeof
(
sip_header_name
)
-
1
;
for
(
cp
=
var1
;
*
cp
;
cp
++
,
sh
++
)
{
...
...
@@ -4056,7 +4056,7 @@ static void set_variable_sip_param(switch_channel_t *channel, char *header_type,
/* Copy the header_type to the sip_header_name. Before copying */
/* each character, check that we aren't going to overflow the */
/* the sip_header_name buffer. We have to account for the */
/* the sip_header_name buffer. We have to account for the
*/
/* trailing underscore and NULL that will be added to the end. */
for
(
cp
=
header_type
;
(
*
cp
&&
(
sh
<
(
sh_end
-
1
)));
cp
++
,
sh
++
)
{
*
sh
=
*
cp
;
...
...
@@ -4067,26 +4067,26 @@ static void set_variable_sip_param(switch_channel_t *channel, char *header_type,
/* sh now points to the NULL at the end of the partially built */
/* sip_header_name variable. This is also the start of the */
/* variable part of the sip_header_name built from the lvalue */
/* of the par
ms data.
*/
/* of the par
ams data.
*/
sh_save
=
sh
;
while
(
params
&&
params
[
0
])
{
/* Copy the params data to the sip_header_name variable until */
/* the end of the params string is reached, an '=' is detected */
/* or until the sip_header_name buffer has been exhausted. */
/* or until the sip_header_name buffer has been exhausted.
*/
for
(
cp
=
(
char
*
)
(
*
params
);
((
*
cp
!=
'='
)
&&
*
cp
&&
(
sh
<
sh_end
));
cp
++
,
sh
++
)
{
*
sh
=
*
cp
;
}
/* cp now points to either the end of the parms data or the */
/* equal (=) sign s
pearating the lvalue and rvalue.
*/
/* cp now points to either the end of the par
a
ms data or the */
/* equal (=) sign s
eparating the lvalue and rvalue.
*/
if
(
*
cp
==
'='
)
cp
++
;
*
sh
=
'\0'
;
switch_channel_set_variable
(
channel
,
sip_header_name
,
cp
);
/* Bump pointer to next param in the list. Also reset the */
/* Bump pointer to next param in the list. Also reset the
*/
/* sip_header_name pointer to the beginning of the dynamic area */
params
++
;
sh
=
sh_save
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论