]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
if the phone is behind nat with us... don't consider nat processing fixees cases...
authorBrian West <brian@freeswitch.org>
Mon, 16 Nov 2009 21:14:38 +0000 (21:14 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 16 Nov 2009 21:14:38 +0000 (21:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15486 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 353410baa81087f7b9f97677e704940829412f6a..9628e9c286635e2f94a9dca329182dea437757a3 100644 (file)
@@ -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);