From: Josh Allmann Date: Thu, 13 Oct 2016 19:38:24 +0000 (-0400) Subject: mod_sofia: Add 'username' header for expiration events. X-Git-Tag: v1.8.0~1167^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bb6742b440d6fdce44bc6d4f2fafd68cbb0004a;p=thirdparty%2Ffreeswitch.git mod_sofia: Add 'username' header for expiration events. More consistent with the naming in other events, eg register and unregister. --- 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]);