From: Italo Rossi Date: Wed, 8 Apr 2015 01:11:27 +0000 (-0300) Subject: FS-7242 Waiting for state CS_PARK when receiving REFER. X-Git-Tag: v1.6.2~591^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beeea0172411f6274effdac8b90f970fa317b159;p=thirdparty%2Ffreeswitch.git FS-7242 Waiting for state CS_PARK when receiving REFER. --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f8ccbd6f67..19ea978b01 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -8042,6 +8042,7 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t sofia_clear_flag_locked(tech_pvt, TFLAG_HOLD_LOCK); switch_channel_set_variable(channel_b, "park_timeout", "2:attended_transfer"); switch_channel_set_state(channel_b, CS_PARK); + switch_channel_wait_for_state_timeout(channel_b, CS_PARK, 5000); } else { if (!br_a && !br_b) {