add read_frame_callback to gentones

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15459 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-11-13 15:52:20 +00:00
parent 06a68fce64
commit 45dc6306ee
1 changed files with 7 additions and 0 deletions

View File

@ -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)) {