Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d08116e7
提交
d08116e7
authored
3月 31, 2014
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-6310 hold up, revert
上级
7532a7e0
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
0 行增加
和
13 行删除
+0
-13
switch_ivr_bridge.c
src/switch_ivr_bridge.c
+0
-13
没有找到文件。
src/switch_ivr_bridge.c
浏览文件 @
d08116e7
...
...
@@ -199,7 +199,6 @@ struct switch_ivr_bridge_data {
switch_input_callback_function_t
input_callback
;
void
*
session_data
;
int
clean_exit
;
int
state_done
;
int
done
;
struct
switch_ivr_bridge_data
*
other_leg_data
;
};
...
...
@@ -228,7 +227,6 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
time_t
answer_limit
=
0
;
const
char
*
exec_app
=
NULL
;
const
char
*
exec_data
=
NULL
;
int
sanity
=
500
;
#ifdef SWITCH_VIDEO_IN_THREADS
switch_thread_t
*
vid_thread
=
NULL
;
...
...
@@ -661,10 +659,6 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session_a
),
SWITCH_LOG_DEBUG
,
"BRIDGE THREAD DONE [%s]
\n
"
,
switch_channel_get_name
(
chan_a
));
switch_channel_clear_flag
(
chan_a
,
CF_BRIDGED
);
while
(
--
sanity
>
0
&&
!
data
->
other_leg_data
->
state_done
)
{
switch_yield
(
10000
);
}
if
(
switch_channel_test_flag
(
chan_a
,
CF_LEG_HOLDING
)
||
switch_channel_test_flag
(
chan_a
,
CF_HANGUP_HELD
))
{
if
(
switch_channel_ready
(
chan_b
)
&&
switch_channel_get_state
(
chan_b
)
!=
CS_PARK
&&
!
data
->
other_leg_data
->
clean_exit
)
{
const
char
*
ext
=
switch_channel_get_variable
(
chan_a
,
"hold_hangup_xfer_exten"
);
...
...
@@ -748,8 +742,6 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses
if
(
switch_channel_test_flag
(
channel
,
CF_INTERCEPTED
))
{
switch_channel_clear_flag
(
channel
,
CF_INTERCEPT
);
switch_channel_clear_flag
(
channel
,
CF_INTERCEPTED
);
bd
->
clean_exit
=
1
;
bd
->
state_done
=
1
;
return
SWITCH_STATUS_FALSE
;
}
else
{
if
(
switch_channel_test_flag
(
channel
,
CF_INTERCEPT
))
{
...
...
@@ -765,15 +757,11 @@ static switch_status_t audio_bridge_on_exchange_media(switch_core_session_t *ses
}
}
bd
->
clean_exit
=
1
;
if
(
switch_channel_get_state
(
channel
)
==
CS_EXCHANGE_MEDIA
)
{
switch_channel_set_variable
(
channel
,
"park_timeout"
,
"3"
);
switch_channel_set_state
(
channel
,
CS_PARK
);
}
bd
->
state_done
=
1
;
return
SWITCH_STATUS_FALSE
;
}
...
...
@@ -1477,7 +1465,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses
switch_channel_stop_broadcast
(
peer_channel
);
a_leg
->
state_done
=
1
;
while
(
switch_channel_get_state
(
peer_channel
)
==
CS_EXCHANGE_MEDIA
)
{
switch_ivr_parse_all_messages
(
session
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论