From 5bb6742b440d6fdce44bc6d4f2fafd68cbb0004a Mon Sep 17 00:00:00 2001 From: Josh Allmann Date: Thu, 13 Oct 2016 15:38:24 -0400 Subject: [PATCH] mod_sofia: Add 'username' header for expiration events. More consistent with the naming in other events, eg register and unregister. --- src/mod/endpoints/mod_sofia/sofia_reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 424e6d598f..0ce4b64904 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -712,6 +712,7 @@ int sofia_reg_del_callback(void *pArg, int argc, char **argv, char **columnNames switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "profile-name", argv[10]); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "call-id", argv[0]); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "user", argv[1]); + switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "username", argv[1]); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "host", argv[2]); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "contact", argv[3]); switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "expires", argv[6]);