Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
b2941205
提交
b2941205
authored
10月 25, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fold reconfig_sofia into config_sofia so we don't have 2 difft config funcs
上级
68e0b7e8
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
151 行增加
和
894 行删除
+151
-894
mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.c
+8
-3
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+8
-2
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+135
-889
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.c
浏览文件 @
b2941205
...
...
@@ -3636,7 +3636,7 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t
switch_xml_reload
(
&
err
);
stream
->
write_function
(
stream
,
"Reload XML [%s]
\n
"
,
err
);
if
(
config_sofia
(
1
,
argv
[
0
])
==
SWITCH_STATUS_SUCCESS
)
{
if
(
config_sofia
(
SOFIA_CONFIG_RESCAN
,
argv
[
0
])
==
SWITCH_STATUS_SUCCESS
)
{
stream
->
write_function
(
stream
,
"%s started successfully
\n
"
,
argv
[
0
]);
}
else
{
stream
->
write_function
(
stream
,
"Failure starting %s
\n
"
,
argv
[
0
]);
...
...
@@ -3713,7 +3713,7 @@ static switch_status_t cmd_profile(char **argv, int argc, switch_stream_handle_t
switch_xml_reload
(
&
err
);
stream
->
write_function
(
stream
,
"Reload XML [%s]
\n
"
,
err
);
if
(
reconfig_sofia
(
profil
e
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
config_sofia
(
SOFIA_CONFIG_RESCAN
,
profile
->
nam
e
)
==
SWITCH_STATUS_SUCCESS
)
{
stream
->
write_function
(
stream
,
"+OK scan complete
\n
"
);
}
else
{
stream
->
write_function
(
stream
,
"-ERR cannot find config for profile %s
\n
"
,
profile
->
name
);
...
...
@@ -5707,8 +5707,13 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load)
/* start one message thread */
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_INFO
,
"Starting initial message thread.
\n
"
);
sofia_msg_thread_start
(
0
);
if
(
config_sofia
(
0
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
if
(
sofia_init
()
!=
SWITCH_STATUS_SUCCESS
)
{
return
SWITCH_STATUS_GENERR
;
}
if
(
config_sofia
(
SOFIA_CONFIG_LOAD
,
NULL
)
!=
SWITCH_STATUS_SUCCESS
)
{
mod_sofia_globals
.
running
=
0
;
return
SWITCH_STATUS_GENERR
;
}
...
...
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
b2941205
...
...
@@ -138,6 +138,12 @@ typedef struct private_object private_object_t;
#include <sofia-sip/msg.h>
#include <sofia-sip/uniqueid.h>
typedef
enum
{
SOFIA_CONFIG_LOAD
=
0
,
SOFIA_CONFIG_RESCAN
,
SOFIA_CONFIG_RESPAWN
}
sofia_config_t
;
typedef
enum
{
DTMF_2833
,
DTMF_INFO
,
...
...
@@ -966,7 +972,7 @@ void sofia_presence_event_handler(switch_event_t *event);
void
sofia_presence_cancel
(
void
);
switch_status_t
config_sofia
(
in
t
reload
,
char
*
profile_name
);
switch_status_t
config_sofia
(
sofia_config_
t
reload
,
char
*
profile_name
);
void
sofia_reg_auth_challenge
(
sofia_profile_t
*
profile
,
nua_handle_t
*
nh
,
sofia_dispatch_event_t
*
de
,
sofia_regtype_t
regtype
,
const
char
*
realm
,
int
stale
);
auth_res_t
sofia_reg_parse_auth
(
sofia_profile_t
*
profile
,
sip_authorization_t
const
*
authorization
,
...
...
@@ -1118,7 +1124,6 @@ switch_status_t sofia_glue_tech_choose_video_port(private_object_t *tech_pvt, in
switch_status_t
sofia_glue_tech_set_video_codec
(
private_object_t
*
tech_pvt
,
int
force
);
char
*
sofia_glue_get_register_host
(
const
char
*
uri
);
const
char
*
sofia_glue_strip_proto
(
const
char
*
uri
);
switch_status_t
reconfig_sofia
(
sofia_profile_t
*
profile
);
void
sofia_glue_del_gateway
(
sofia_gateway_t
*
gp
);
void
sofia_glue_gateway_list
(
sofia_profile_t
*
profile
,
switch_stream_handle_t
*
stream
,
int
up
);
void
sofia_glue_del_every_gateway
(
sofia_profile_t
*
profile
);
...
...
@@ -1199,6 +1204,7 @@ void crtp_init(switch_loadable_module_interface_t *module_interface);
int
sofia_recover_callback
(
switch_core_session_t
*
session
);
void
sofia_glue_set_name
(
private_object_t
*
tech_pvt
,
const
char
*
channame
);
private_object_t
*
sofia_glue_new_pvt
(
switch_core_session_t
*
session
);
switch_status_t
sofia_init
(
void
);
/* For Emacs:
* Local Variables:
...
...
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
b2941205
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论