fix att_xfer reported by woody dickson on the mailing list
This commit is contained in:
parent
dfa78985b4
commit
0559cc50da
|
@ -1066,11 +1066,17 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_eavesdrop_session(switch_core_session
|
||||||
switch_core_session_message_t msg = { 0 };
|
switch_core_session_message_t msg = { 0 };
|
||||||
char cid_buf[1024] = "";
|
char cid_buf[1024] = "";
|
||||||
switch_caller_profile_t *cp = NULL;
|
switch_caller_profile_t *cp = NULL;
|
||||||
|
uint32_t sanity = 600;
|
||||||
|
|
||||||
if (!switch_channel_media_ready(channel)) {
|
if (!switch_channel_media_ready(channel)) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(switch_channel_state_change_pending(tchannel)) {
|
||||||
|
switch_yield(10000);
|
||||||
|
if (!--sanity) break;
|
||||||
|
}
|
||||||
|
|
||||||
if (!switch_channel_media_ready(tchannel)) {
|
if (!switch_channel_media_ready(tchannel)) {
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue