Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
ea2c31f0
Unverified
提交
ea2c31f0
authored
10月 10, 2019
作者:
Andrey Volk
提交者:
GitHub
10月 10, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #48 from crienzo/fix-grammar-in-mod_sofia
[mod_sofia] Fix some incorrect word contractions.
上级
6f8d65c3
9d4f4803
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
sofia_glue.c
src/mod/endpoints/mod_sofia/sofia_glue.c
+1
-1
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+2
-2
没有找到文件。
src/mod/endpoints/mod_sofia/sofia_glue.c
浏览文件 @
ea2c31f0
...
@@ -852,7 +852,7 @@ char *sofia_overcome_sip_uri_weakness(switch_core_session_t *session, const char
...
@@ -852,7 +852,7 @@ char *sofia_overcome_sip_uri_weakness(switch_core_session_t *session, const char
stripped
=
sofia_glue_get_url_from_contact
(
stripped
,
0
);
stripped
=
sofia_glue_get_url_from_contact
(
stripped
,
0
);
/* remove our params so we don't make any whiny moronic device piss it
'
s pants and forget who it is for a half-hour */
/* remove our params so we don't make any whiny moronic device piss its pants and forget who it is for a half-hour */
if
((
p
=
(
char
*
)
switch_stristr
(
";fs_"
,
stripped
)))
{
if
((
p
=
(
char
*
)
switch_stristr
(
";fs_"
,
stripped
)))
{
*
p
=
'\0'
;
*
p
=
'\0'
;
}
}
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
ea2c31f0
...
@@ -2929,7 +2929,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
...
@@ -2929,7 +2929,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
if
(
switch_xml_locate_user_merged
(
"id"
,
zstr
(
username
)
?
"nobody"
:
username
,
domain_name
,
ip
,
&
user
,
params
)
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_xml_locate_user_merged
(
"id"
,
zstr
(
username
)
?
"nobody"
:
username
,
domain_name
,
ip
,
&
user
,
params
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Can't find user [%s@%s] from %s
\n
"
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Can't find user [%s@%s] from %s
\n
"
"You must define a domain called '%s' in your directory and add a user with the id=
\"
%s
\"
attribute
\n
"
"You must define a domain called '%s' in your directory and add a user with the id=
\"
%s
\"
attribute
\n
"
"and you must configure your device to use the proper domain in it
'
s authentication credentials.
\n
"
,
username
,
domain_name
,
"and you must configure your device to use the proper domain in its authentication credentials.
\n
"
,
username
,
domain_name
,
ip
,
domain_name
,
username
);
ip
,
domain_name
,
username
);
ret
=
AUTH_FORBIDDEN
;
ret
=
AUTH_FORBIDDEN
;
...
@@ -2937,7 +2937,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
...
@@ -2937,7 +2937,7 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile,
}
else
{
}
else
{
const
char
*
type
=
switch_xml_attr
(
user
,
"type"
);
const
char
*
type
=
switch_xml_attr
(
user
,
"type"
);
if
(
type
&&
!
strcasecmp
(
type
,
"pointer"
))
{
if
(
type
&&
!
strcasecmp
(
type
,
"pointer"
))
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Cant register a pointer.
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"Can
'
t register a pointer.
\n
"
);
ret
=
AUTH_FORBIDDEN
;
ret
=
AUTH_FORBIDDEN
;
goto
end
;
goto
end
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论