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);