Merge pull request #1404 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-10704 to master

* commit '96ae6ef4dd22297c803f821ee615ad86993c95a0':
  FS-10704 [core] add event-uuid-name
  FS-10704 [core] allow event-uuid (app_uuid) to be used in application
This commit is contained in:
Mike Jerris committed 2019-02-12 15:28:11 +00:00
commit 6eeaf76bc2
2 files changed
+11 -1

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");
@@ -629,6 +630,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);