From: Anthony Minessale Date: Wed, 17 Dec 2008 21:50:34 +0000 (+0000) Subject: MODAPP-182 X-Git-Tag: v1.0.2~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b1ce53bc415f54968aceecb30e4e0f63fa3430;p=thirdparty%2Ffreeswitch.git MODAPP-182 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10861 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 5286bc94e7..7a65ebd78b 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -539,6 +539,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi switch_mutex_unlock(session->read_codec->mutex); switch_mutex_unlock(session->codec_read_mutex); + if (switch_core_session_private_event_count(session)) { + switch_ivr_parse_all_events(session); + } + return status; } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index b627252d90..64fa497084 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -539,6 +539,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_all_events(switch_core_session_ { while (switch_ivr_parse_next_event(session) == SWITCH_STATUS_SUCCESS); + switch_ivr_sleep(session, 0, SWITCH_TRUE, NULL); + return SWITCH_STATUS_SUCCESS; }