]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add via_protocol to request so you can be informed if you wish to force expires due...
authorBrian West <brian@freeswitch.org>
Thu, 12 Sep 2013 20:22:57 +0000 (15:22 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 12 Sep 2013 20:24:08 +0000 (15:24 -0500)
src/mod/endpoints/mod_sofia/sofia_reg.c

index ed8001bc32673cef71023416561a7ebc35237332..bc2ec29b2bf6e99209fbf4ab3976da8df8656405 100644 (file)
@@ -2466,6 +2466,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);