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:
parent
06a68fce64
commit
45dc6306ee
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue