From fe3e93567f93f8831997be92b0224f1b6053bb6a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 2 Nov 2011 12:37:31 -0500 Subject: [PATCH] add session_id variable --- src/switch_core_session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index a7ab9d8ddc..54a4cd11c4 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -1877,6 +1877,8 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_uuid(switch_ session_manager.session_count++; switch_mutex_unlock(runtime.session_hash_mutex); + switch_channel_set_variable_printf(session->channel, "session_id", "%u", session->id); + return session; }