From 2a5b1a9a60932955e278fcc8e3744ed0e35e3d97 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 8 Jul 2008 23:13:02 +0000 Subject: [PATCH] add another missing bit to sleep git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8946 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index f3d8d574ff..6e3c20b2a2 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -66,6 +66,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, break; } + if (switch_core_session_private_event_count(session)) { + switch_ivr_parse_all_events(session); + } + if (args && (args->input_callback || args->buf || args->buflen)) { switch_dtmf_t dtmf; @@ -86,7 +90,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, status = SWITCH_STATUS_BREAK; } } - + if (args->input_callback) { switch_event_t *event = NULL;