mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
FS-10704 [core] add event-uuid-name
this allows for external call control to provide a app name
This commit is contained in:
1 parent
ae7e4d2eaf
commit
96ae6ef4dd
2 files changed
+12
-5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user