[Freeswitch-svn] [commit] r10655 - freeswitch/trunk/src
FreeSWITCH SVN
anthm at freeswitch.org
Mon Dec 8 09:08:26 PST 2008
Author: anthm
Date: Mon Dec 8 12:08:26 2008
New Revision: 10655
Log:
parse private events during originate
Modified:
freeswitch/trunk/src/switch_ivr_originate.c
Modified: freeswitch/trunk/src/switch_ivr_originate.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_originate.c (original)
+++ freeswitch/trunk/src/switch_ivr_originate.c Mon Dec 8 12:08:26 2008
@@ -225,6 +225,10 @@
*progress = 1;
}
+ if (switch_core_session_private_event_count(peer_sessions[i])) {
+ switch_ivr_parse_all_events(peer_sessions[i]);
+ }
+
state = switch_channel_get_state(peer_channels[i]);
if (state >= CS_HANGUP || state == CS_RESET || switch_channel_test_flag(peer_channels[i], CF_TRANSFER) ||
switch_channel_test_flag(peer_channels[i], CF_REDIRECT) ||
@@ -1328,6 +1332,10 @@
check_per_channel_timeouts(peer_channels, per_channel_timelimit_sec, per_channel_progress_timelimit_sec, and_argc, start);
+ if (session && switch_core_session_private_event_count(session)) {
+ switch_ivr_parse_all_events(session);
+ }
+
if (!sent_ring && !progress && (progress_timelimit_sec && elapsed > (time_t) progress_timelimit_sec)) {
idx = IDX_TIMEOUT;
goto notready;
More information about the Freeswitch-svn
mailing list