[Freeswitch-svn] [commit] r4072 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Sat Jan 27 22:17:12 EST 2007
Author: anthm
Date: Sat Jan 27 22:17:12 2007
New Revision: 4072
Modified:
freeswitch/trunk/src/switch_ivr.c
Log:
fix sleep to work right on unanswered channels
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Sat Jan 27 22:17:12 2007
@@ -71,7 +71,8 @@
break;
}
- if (switch_channel_test_flag(channel, CF_SERVICE)) {
+ if (switch_channel_test_flag(channel, CF_SERVICE) ||
+ (!switch_channel_test_flag(channel, CF_ANSWERED) && !switch_channel_test_flag(channel, CF_EARLY_MEDIA))) {
switch_yield(1000);
} else {
status = switch_core_session_read_frame(session, &read_frame, left, 0);
More information about the Freeswitch-svn
mailing list