mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-20 10:26:51 +00:00
FS-10704 [core] allow event-uuid (app_uuid) to be used in application
This commit is contained in:
parent
099580022d
commit
ae7e4d2eaf
@ -2765,7 +2765,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
|
||||
if ((app_uuid_var = switch_channel_get_variable(channel, "app_uuid"))) {
|
||||
app_uuid = (char *)app_uuid_var;
|
||||
switch_channel_set_variable(channel, "app_uuid", NULL);
|
||||
} else {
|
||||
switch_uuid_str(uuid_str, sizeof(uuid_str));
|
||||
}
|
||||
@ -2881,6 +2880,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
|
||||
if(app_uuid != uuid_str) {
|
||||
switch_channel_set_variable(channel, "app_uuid", NULL);
|
||||
};
|
||||
|
||||
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