check for answer flag in bridge to do display update properly

This commit is contained in:
Anthony Minessale 2011-08-05 09:31:21 -05:00
parent 88a681d47c
commit 0f459d4b45
2 changed files with 3 additions and 1 deletions

View File

@ -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;
runtime.tipping_point = 0;
runtime.timer_affinity = -1;
runtime.timer_affinity = 0;
runtime.microseconds_per_tick = 20000;
switch_load_core_config("switch.conf");

View File

@ -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)) {
switch_ivr_bridge_display(session_a, session_b);
sent_update = 1;