]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSMOD-61
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 14 Jun 2010 18:43:51 +0000 (13:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 14 Jun 2010 18:43:51 +0000 (13:43 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 442a15a8e8bd6ba5b5d0c3a19415e19c85790695..884e5025b86a0dba50a5915a94230fc0b9f72a42 100644 (file)
@@ -1745,7 +1745,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                }
 
                if (sofia_test_pflag(tech_pvt->profile, PFLAG_AUTO_NAT)) {
-                       if (!zstr(tech_pvt->remote_ip) && !zstr(profile->extsipip) && sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) {
+                       if (!zstr(tech_pvt->remote_ip) && !zstr(tech_pvt->profile->extsipip) && sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) {
                                rpid_domain = tech_pvt->profile->extsipip;
                        } else {
                                rpid_domain = tech_pvt->profile->sipip;