fix att_xfer reported by woody dickson on the mailing list

This commit is contained in:
Anthony Minessale 2010-10-13 20:23:55 -05:00 committed by Brian West
parent dfa78985b4
commit 0559cc50da
1 changed files with 6 additions and 0 deletions

View File

@ -1066,11 +1066,17 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
switch_core_session_message_t msg = { 0 };
char cid_buf[1024] = "";
switch_caller_profile_t *cp = NULL;
uint32_t sanity = 600;
if (!switch_channel_media_ready(channel)) {
goto end;
}
while(switch_channel_state_change_pending(tchannel)) {
switch_yield(10000);
if (!--sanity) break;
}
if (!switch_channel_media_ready(tchannel)) {
goto end;
}