From: Brian West Date: Thu, 12 Sep 2013 20:22:57 +0000 (-0500) Subject: add via_protocol to request so you can be informed if you wish to force expires due... X-Git-Tag: v1.5.6~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5197c726be85f0ef28cbcddadf8dfbabff96d503;p=thirdparty%2Ffreeswitch.git add via_protocol to request so you can be informed if you wish to force expires due to tcp keepalives being on. --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index d0f7dec837..1514d4be4f 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -2614,6 +2614,11 @@ auth_res_t sofia_reg_parse_auth(sofia_profile_t *profile, } } + if (sip->sip_via) { + switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_via_protocol", sofia_glue_transport2str(sofia_glue_via2transport(sip->sip_via))); + } + + if (sip->sip_from) { switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_from_user", sip->sip_from->a_url->url_user); switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "sip_from_host", sip->sip_from->a_url->url_host);