check for signalling in sleep app on channels without media

This commit is contained in:
Anthony Minessale 2012-11-13 12:30:21 -06:00
parent f4e55fb187
commit 580e63ecfa
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
if (!switch_channel_media_ready(channel)) {
for (elapsed=0; elapsed<(ms/20); elapsed++) {
for (elapsed=0; switch_channel_up(channel) && elapsed<(ms/20); elapsed++) {
if (switch_channel_test_flag(channel, CF_BREAK)) {
switch_channel_clear_flag(channel, CF_BREAK);
return SWITCH_STATUS_BREAK;