Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
f04fd38c
提交
f04fd38c
authored
10月 04, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3594 if this does not work you will need to give me access to your box
上级
8e2793b4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
10 行删除
+9
-10
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+1
-1
sofia_reg.c
src/mod/endpoints/mod_sofia/sofia_reg.c
+8
-9
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
f04fd38c
...
@@ -808,7 +808,7 @@ static void our_sofia_event_callback(nua_event_t event,
...
@@ -808,7 +808,7 @@ static void our_sofia_event_callback(nua_event_t event,
int
check_destroy
=
1
;
int
check_destroy
=
1
;
if
(
sofia_private
&&
sofia_private
->
de
)
{
if
(
sofia_private
&&
sofia_private
->
is_call
&&
sofia_private
->
de
)
{
sofia_dispatch_event_t
*
qde
=
sofia_private
->
de
;
sofia_dispatch_event_t
*
qde
=
sofia_private
->
de
;
sofia_private
->
de
=
NULL
;
sofia_private
->
de
=
NULL
;
sofia_process_dispatch_event
(
&
qde
);
sofia_process_dispatch_event
(
&
qde
);
...
...
src/mod/endpoints/mod_sofia/sofia_reg.c
浏览文件 @
f04fd38c
...
@@ -68,6 +68,10 @@ static void sofia_reg_new_handle(sofia_gateway_t *gateway_ptr, int attach)
...
@@ -68,6 +68,10 @@ static void sofia_reg_new_handle(sofia_gateway_t *gateway_ptr, int attach)
static
void
sofia_reg_kill_reg
(
sofia_gateway_t
*
gateway_ptr
)
static
void
sofia_reg_kill_reg
(
sofia_gateway_t
*
gateway_ptr
)
{
{
if
(
gateway_ptr
->
nh
)
{
nua_handle_bind
(
gateway_ptr
->
nh
,
NULL
);
}
if
(
gateway_ptr
->
state
!=
REG_STATE_REGED
)
{
if
(
gateway_ptr
->
state
!=
REG_STATE_REGED
)
{
if
(
gateway_ptr
->
nh
)
{
if
(
gateway_ptr
->
nh
)
{
nua_handle_destroy
(
gateway_ptr
->
nh
);
nua_handle_destroy
(
gateway_ptr
->
nh
);
...
@@ -76,19 +80,10 @@ static void sofia_reg_kill_reg(sofia_gateway_t *gateway_ptr)
...
@@ -76,19 +80,10 @@ static void sofia_reg_kill_reg(sofia_gateway_t *gateway_ptr)
return
;
return
;
}
}
/*
if (!gateway_ptr->nh) {
sofia_reg_new_handle(gateway_ptr, SWITCH_FALSE);
}
*/
if
(
gateway_ptr
->
nh
)
{
if
(
gateway_ptr
->
nh
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"UN-Registering %s
\n
"
,
gateway_ptr
->
name
);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_NOTICE
,
"UN-Registering %s
\n
"
,
gateway_ptr
->
name
);
nua_unregister
(
gateway_ptr
->
nh
,
NUTAG_URL
(
gateway_ptr
->
register_url
),
NUTAG_REGISTRAR
(
gateway_ptr
->
register_proxy
),
TAG_END
());
nua_unregister
(
gateway_ptr
->
nh
,
NUTAG_URL
(
gateway_ptr
->
register_url
),
NUTAG_REGISTRAR
(
gateway_ptr
->
register_proxy
),
TAG_END
());
}
}
}
}
void
sofia_reg_fire_custom_gateway_state_event
(
sofia_gateway_t
*
gateway
,
int
status
,
const
char
*
phrase
)
void
sofia_reg_fire_custom_gateway_state_event
(
sofia_gateway_t
*
gateway
,
int
status
,
const
char
*
phrase
)
...
@@ -114,6 +109,10 @@ void sofia_reg_unregister(sofia_profile_t *profile)
...
@@ -114,6 +109,10 @@ void sofia_reg_unregister(sofia_profile_t *profile)
switch_mutex_lock
(
mod_sofia_globals
.
hash_mutex
);
switch_mutex_lock
(
mod_sofia_globals
.
hash_mutex
);
for
(
gateway_ptr
=
profile
->
gateways
;
gateway_ptr
;
gateway_ptr
=
gateway_ptr
->
next
)
{
for
(
gateway_ptr
=
profile
->
gateways
;
gateway_ptr
;
gateway_ptr
=
gateway_ptr
->
next
)
{
if
(
gateway_ptr
->
nh
)
{
nua_handle_bind
(
gateway_ptr
->
nh
,
NULL
);
}
if
(
gateway_ptr
->
sofia_private
)
{
if
(
gateway_ptr
->
sofia_private
)
{
sofia_private_free
(
gateway_ptr
->
sofia_private
);
sofia_private_free
(
gateway_ptr
->
sofia_private
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论