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

FreeSWITCH SVN brian at freeswitch.org
Wed Jun 3 18:05:53 PDT 2009


Author: brian
Date: Wed Jun  3 20:05:52 2009
New Revision: 13601

Log:
forgot to convert these to use sofia_glue_check_nat

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Wed Jun  3 20:05:52 2009
@@ -1417,9 +1417,7 @@
 	}
 
 	contact = sofia_glue_get_url_from_contact(o_contact, 1);
-
-	if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
-		!switch_check_network_list_ip(network_ip, profile->local_network)) {
+	if (sofia_glue_check_nat(profile, network_ip)) {
 		char *ptr = NULL;
 		const char *transport_str = NULL;
 
@@ -1557,8 +1555,7 @@
 
 		sofia_glue_get_addr(nua_current_request(nua), network_ip,  sizeof(network_ip), &network_port);
 
-		if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
-			!switch_check_network_list_ip(network_ip, profile->local_network)) {
+		if (sofia_glue_check_nat(profile, network_ip)) {
 			is_auto_nat = 1;
 		}	
 



More information about the Freeswitch-trunk mailing list