]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 May 2007 21:30:31 +0000 (21:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 May 2007 21:30:31 +0000 (21:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5179 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index b9d19652b9d9ace55991388cf3959e3fec92e8b1..6ee49373a856b701855b7c6ccbbbff4318d6f8c0 100644 (file)
@@ -327,10 +327,16 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
        }
 
        if (authorization) {
+               char *v_contact_str;
                if ((auth_res = sofia_reg_parse_auth(profile, authorization, sip->sip_request->rq_method_name, key, keylen, network_ip, v_event)) == AUTH_STALE) {
                        stale = 1;
                }
                
+               if ((v_contact_str = switch_event_get_header(*v_event, "forced-contact"))) {
+                       switch_copy_string(contact_str, v_contact_str, sizeof(contact_str));
+               }
+
+
                if (auth_res != AUTH_OK && !stale) {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "send %s for [%s@%s]\n", forbidden ? "forbidden" : "challange", from_user, from_host);
                        if (auth_res == AUTH_FORBIDDEN) {