FS-10704 [core] add event-uuid-name

this allows for external call control to provide a app name
This commit is contained in:
lazedo committed 2018-06-08 12:24:43 +00:00
1 parent ae7e4d2eaf
commit 96ae6ef4dd
2 files changed
+12 -5

No files matched your search

+4
View File
@@ -550,6 +550,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
if (cmd_hash == CMD_EXECUTE) {
char *app_name = switch_event_get_header(event, "execute-app-name");
char *event_uuid = switch_event_get_header(event, "event-uuid");
char *event_uuid_name = switch_event_get_header(event, "event-uuid-name");
char *app_arg = switch_event_get_header(event, "execute-app-arg");
char *content_type = switch_event_get_header(event, "content-type");
char *loop_h = switch_event_get_header(event, "loops");
@@ -628,6 +629,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
if (event_uuid) {
switch_channel_set_variable(channel, "app_uuid", event_uuid);
}
if (event_uuid_name) {
switch_channel_set_variable(channel, "app_uuid_name", event_uuid_name);
}
switch_channel_set_variable_printf(channel, "current_loop", "%d", x + 1);
switch_channel_set_variable_printf(channel, "total_loops", "%d", loops);