FS-8990 - [mod_verto] - Adding verto_login header to verto::client_disconnect event

This commit is contained in:
Italo Rossi 2016-03-29 17:39:40 -03:00
parent 462ab95426
commit ce3f10a702

View File

@ -2006,6 +2006,7 @@ static void *SWITCH_THREAD_FUNC client_thread(switch_thread_t *thread, void *obj
if (switch_event_create_subclass(&s_event, SWITCH_EVENT_CUSTOM, MY_EVENT_CLIENT_DISCONNECT) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_profile_name", jsock->profile->name);
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_client_address", jsock->name);
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_login", switch_str_nil(jsock->uid));
switch_event_fire(&s_event);
}
switch_thread_rwlock_wrlock(jsock->rwlock);