[Freeswitch-svn] [commit] r5179 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN anthm at freeswitch.org
Mon May 14 17:30:32 EDT 2007


Author: anthm
Date: Mon May 14 17:30:31 2007
New Revision: 5179

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c

Log:
update

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Mon May 14 17:30:31 2007
@@ -327,10 +327,16 @@
 	}
 
 	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) {



More information about the Freeswitch-svn mailing list