mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-01 13:22:40 +00:00
set export park acknowledge_call drop Application event
This commit is contained in:
parent
77959d2389
commit
7f932db494
@ -2964,6 +2964,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
|
||||
application_interface->application_function(session, expanded);
|
||||
|
||||
if (strcmp(application_interface->interface_name, "set") == 0
|
||||
|| strcmp(application_interface->interface_name, "export") == 0
|
||||
|| strcmp(application_interface->interface_name, "park") == 0
|
||||
|| strcmp(application_interface->interface_name, "acknowledge_call") == 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
|
||||
"%s drop Application event\n", application_interface->interface_name);
|
||||
}
|
||||
else{
|
||||
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE) == SWITCH_STATUS_SUCCESS) {
|
||||
const char *resp = switch_channel_get_variable(session->channel, SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE);
|
||||
switch_channel_event_set_data(session->channel, event);
|
||||
@ -2974,6 +2982,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Application-UUID-Name", app_uuid_name);
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
}
|
||||
|
||||
msg.message_id = SWITCH_MESSAGE_INDICATE_APPLICATION_EXEC_COMPLETE;
|
||||
switch_core_session_receive_message(session, &msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user