From: Brian West Date: Mon, 16 Nov 2009 21:14:38 +0000 (+0000) Subject: if the phone is behind nat with us... don't consider nat processing fixees cases... X-Git-Tag: v1.0.6~1397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=220ebe81757f716f741fbc01487c87fa25fa1ab0;p=thirdparty%2Ffreeswitch.git if the phone is behind nat with us... don't consider nat processing fixees cases where things are EVIL like cisco 79xx git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15486 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 353410baa8..9628e9c286 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -1354,6 +1354,10 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h 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);