add session_id variable

This commit is contained in:
Anthony Minessale 2011-11-02 12:37:31 -05:00
parent 31152c6894
commit fe3e93567f
1 changed files with 2 additions and 0 deletions

View File

@ -1877,6 +1877,8 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_uuid(switch_
session_manager.session_count++; session_manager.session_count++;
switch_mutex_unlock(runtime.session_hash_mutex); switch_mutex_unlock(runtime.session_hash_mutex);
switch_channel_set_variable_printf(session->channel, "session_id", "%u", session->id);
return session; return session;
} }