mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-3510 --resolve make all instances of execute_on_X uniform with api_on_X and support both prefix vars as before and usage of arrays to push several exexute_on or api_on records into one variable
This commit is contained in:
@@ -2458,6 +2458,8 @@ static switch_status_t tone_on_dtmf(switch_core_session_t *session, const switch
|
||||
cont->list[i].callback(cont->session, cont->list[i].app, cont->list[i].data);
|
||||
} else {
|
||||
switch_channel_execute_on(switch_core_session_get_channel(cont->session), SWITCH_CHANNEL_EXECUTE_ON_TONE_DETECT_VARIABLE);
|
||||
switch_channel_api_on(switch_core_session_get_channel(cont->session), SWITCH_CHANNEL_API_ON_TONE_DETECT_VARIABLE);
|
||||
|
||||
if (cont->list[i].app) {
|
||||
switch_core_session_execute_application_async(cont->session, cont->list[i].app, cont->list[i].data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user