Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
46a1310d
提交
46a1310d
authored
8月 31, 2012
作者:
Anthony Minessale
提交者:
Ken Rice
9月 11, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pull this code
上级
460d5d9e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
2 行增加
和
16 行删除
+2
-16
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+2
-16
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
46a1310d
...
...
@@ -1069,6 +1069,7 @@ static void our_sofia_event_callback(nua_event_t event,
case
nua_r_bye
:
case
nua_r_unregister
:
case
nua_r_unsubscribe
:
case
nua_i_terminated
:
case
nua_r_publish
:
case
nua_i_error
:
case
nua_i_active
:
...
...
@@ -1092,12 +1093,6 @@ static void our_sofia_event_callback(nua_event_t event,
}
break
;
case
nua_i_terminated
:
if
(
!
session
&&
nh
)
{
nua_handle_destroy
(
nh
);
}
break
;
case
nua_r_cancel
:
{
if
(
status
>
299
&&
nh
)
{
...
...
@@ -1654,7 +1649,6 @@ void sofia_event_callback(nua_event_t event,
{
sofia_dispatch_event_t
*
de
;
int
critical
=
(((
SOFIA_MSG_QUEUE_SIZE
*
mod_sofia_globals
.
max_msg_queues
)
*
900
)
/
1000
);
int
nuke
=
0
;
uint32_t
sess_count
=
switch_core_session_count
();
uint32_t
sess_max
=
switch_core_session_limit
(
0
);
...
...
@@ -1675,17 +1669,9 @@ void sofia_event_callback(nua_event_t event,
switch_core_hash_insert
(
profile
->
chat_hash
,
tech_pvt
->
call_id
,
strdup
(
switch_core_session_get_uuid
(
session
)));
switch_mutex_unlock
(
profile
->
flag_mutex
);
switch_core_session_rwunlock
(
session
);
}
else
{
nuke
++
;
}
}
else
if
(
!
sofia_private
||
zstr
(
sofia_private
->
uuid
)
||
!
switch_ivr_uuid_exists
(
sofia_private
->
uuid
))
{
nuke
++
;
}
if
(
nuke
)
{
nua_handle_destroy
(
nh
);
goto
end
;
}
goto
end
;
case
nua_i_invite
:
case
nua_i_register
:
case
nua_i_options
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论