FS-7242 Waiting for state CS_PARK when receiving REFER.

This commit is contained in:
Italo Rossi 2015-04-07 22:11:27 -03:00
parent d55c4a053b
commit beeea01724
1 changed files with 1 additions and 0 deletions

View File

@ -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); sofia_clear_flag_locked(tech_pvt, TFLAG_HOLD_LOCK);
switch_channel_set_variable(channel_b, "park_timeout", "2:attended_transfer"); switch_channel_set_variable(channel_b, "park_timeout", "2:attended_transfer");
switch_channel_set_state(channel_b, CS_PARK); switch_channel_set_state(channel_b, CS_PARK);
switch_channel_wait_for_state_timeout(channel_b, CS_PARK, 5000);
} else { } else {
if (!br_a && !br_b) { if (!br_a && !br_b) {