From bf7120ea8fa3fb3ff0f006c42b5d0988423cee5e Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 5 Jun 2009 04:12:26 +0000 Subject: [PATCH] fix this cuz its wrong git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13630 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 993c002919..f9493af5b3 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -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;