]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODAPP-182
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 17 Dec 2008 21:50:34 +0000 (21:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 17 Dec 2008 21:50:34 +0000 (21:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10861 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_io.c
src/switch_ivr.c

index 5286bc94e7655865ca00554b4f354d9cf6f5f063..7a65ebd78b7cfbc2bb8c85a15fc9f69b0eb4206f 100644 (file)
@@ -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;
 }
 
index b627252d9051ab98f3ee1a8c1e754a6e7e7f2ac5..64fa497084e8892856b385d87be87ba25a527079 100644 (file)
@@ -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;
 }