]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix this cuz its wrong
authorBrian West <brian@freeswitch.org>
Fri, 5 Jun 2009 04:12:26 +0000 (04:12 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 5 Jun 2009 04:12:26 +0000 (04:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13630 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 993c002919613643abbf8baefcf7ada7a4a46665..f9493af5b3ccdb596e8a47dbfd944e2184c59bbe 100644 (file)
@@ -1319,7 +1319,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                const char* format;
                const char *alt = NULL;
 
-               if (sofia_glue_check_nat(tech_pvt->profile, tech_pvt->profile->local_network)) {
+               if (sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) {
                        sipip = tech_pvt->profile->extsipip;
                } else {
                        sipip = tech_pvt->profile->extsipip ? tech_pvt->profile->extsipip : tech_pvt->profile->sipip;