Revision
15486
Author
brian
Date
2009-11-16 15:14:38 -0600 (Mon, 16 Nov 2009)

Log Message

 if the phone is behind nat with us... don't consider nat processing fixees cases where things are EVIL like cisco 79xx

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (15485 => 15486)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2009-11-16 20:09:27 UTC (rev 15485)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	2009-11-16 21:14:38 UTC (rev 15486)
@@ -1354,6 +1354,10 @@
 		nua_respond(nh, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
 		goto end;
 	}
+	
+	if (is_nat && !sofia_glue_check_nat(profile, network_ip)) {
+		is_nat = NULL;
+	}
 
 	sofia_reg_handle_register(nua, profile, nh, sip, type, key, sizeof(key), &v_event, is_nat);