From: Anthony Minessale Date: Wed, 25 Jun 2008 19:08:01 +0000 (+0000) Subject: wait for broadcast to start when starting async hold to avoid race X-Git-Tag: v1.0.1~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedc61183752f3fb08e6dee46ca990b68009d7c3;p=thirdparty%2Ffreeswitch.git wait for broadcast to start when starting async hold to avoid race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8841 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index d338bb9931..f1b7b86759 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1917,6 +1917,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t * switch_ivr_hold_uuid(switch_channel_get_variable(tech_pvt->channel, SWITCH_SIGNAL_BOND_VARIABLE), NULL, 0); } else { switch_ivr_broadcast(switch_channel_get_variable(tech_pvt->channel, SWITCH_SIGNAL_BOND_VARIABLE), stream, SMF_ECHO_ALEG | SMF_LOOP); + switch_channel_wait_for_flag(tech_pvt->channel, CF_BROADCAST, SWITCH_TRUE, 5000); } } }