提交 0f459d4b authored 作者: Anthony Minessale's avatar Anthony Minessale

check for answer flag in bridge to do display update properly

上级 88a681d4
...@@ -1449,7 +1449,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc ...@@ -1449,7 +1449,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
if (flags & SCF_MINIMAL) return SWITCH_STATUS_SUCCESS; if (flags & SCF_MINIMAL) return SWITCH_STATUS_SUCCESS;
runtime.tipping_point = 0; runtime.tipping_point = 0;
runtime.timer_affinity = -1; runtime.timer_affinity = 0;
runtime.microseconds_per_tick = 20000; runtime.microseconds_per_tick = 20000;
switch_load_core_config("switch.conf"); switch_load_core_config("switch.conf");
......
...@@ -457,6 +457,8 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj) ...@@ -457,6 +457,8 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
} }
} }
if (originator && !ans_b) ans_b = switch_channel_test_flag(chan_b, CF_ANSWERED);
if (originator && !sent_update && ans_a && ans_b && switch_channel_media_ack(chan_a) && switch_channel_media_ack(chan_b)) { if (originator && !sent_update && ans_a && ans_b && switch_channel_media_ack(chan_a) && switch_channel_media_ack(chan_b)) {
switch_ivr_bridge_display(session_a, session_b); switch_ivr_bridge_display(session_a, session_b);
sent_update = 1; sent_update = 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论