From 45dc6306eedb54927c8e4727a41f3275e935d31e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 13 Nov 2009 15:52:20 +0000 Subject: [PATCH] add read_frame_callback to gentones git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15459 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_play_say.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 9b34cc7d33..6d3059b1ea 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -808,6 +808,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_gentones(switch_core_session_t *sessi break; } + + if (args && (args->read_frame_callback)) { + if (args->read_frame_callback(session, read_frame, args->user_data) != SWITCH_STATUS_SUCCESS) { + break; + } + } + switch_ivr_parse_all_events(session); if (args && (args->input_callback || args->buf || args->buflen)) {