Merge pull request #232 in FS/freeswitch from ~ITALOROSSI/freeswitch:bugfix/FS-7242-delayed-bye-after-REFER to master

* commit 'beeea0172411f6274effdac8b90f970fa317b159':
  FS-7242 Waiting for state CS_PARK when receiving REFER.
This commit is contained in:
Mike Jerris 2015-06-01 13:10:43 -05:00
commit bd02432d03
1 changed files with 1 additions and 0 deletions

View File

@ -8041,6 +8041,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) {