From: Luis Azedo Date: Tue, 3 Oct 2017 03:28:20 +0000 (+0100) Subject: FS-10704 [core] allow event-uuid (app_uuid) to be used in application X-Git-Tag: v1.8.6~1^2~123^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7e4d2eaf30048ab63b74b4430440fda2185d02;p=thirdparty%2Ffreeswitch.git FS-10704 [core] allow event-uuid (app_uuid) to be used in application --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index b57e239f92..e6da6b7a63 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -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);