[Freeswitch-svn] [commit] r8413 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Thu May 15 11:57:29 EDT 2008
Author: anthm
Date: Thu May 15 11:57:29 2008
New Revision: 8413
Modified:
freeswitch/trunk/src/switch_channel.c
freeswitch/trunk/src/switch_ivr_originate.c
Log:
fix pesteredo's bug
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Thu May 15 11:57:29 2008
@@ -776,6 +776,8 @@
channel->state_flags = 0;
}
+ switch_clear_flag(channel, CF_TAGGED);
+
if (channel->state >= CS_ROUTING) {
switch_clear_flag(channel, CF_TRANSFER);
switch_channel_presence(channel, "unknown", (char *) state_names[state]);
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Thu May 15 11:57:29 2008
@@ -39,7 +39,7 @@
switch_channel_t *channel = switch_core_session_get_channel(session);
if (!switch_channel_test_flag(channel, CF_PROXY_MODE)) {
- while(switch_channel_get_state(channel) == CS_CONSUME_MEDIA) {
+ while(switch_channel_get_state(channel) == CS_CONSUME_MEDIA && !switch_channel_test_flag(channel, CF_TAGGED)) {
switch_ivr_sleep(session, 10);
}
}
More information about the Freeswitch-svn
mailing list