From d83245c1bdd9775082009a570af64e46cf73de4d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 26 Aug 2011 14:10:23 -0500 Subject: [PATCH] fix logic determining which ip to use in contact on re-invites in recovery situations or when remote ip is unknown --- src/mod/endpoints/mod_sofia/sofia_glue.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index e91492b53e..9ccc1c698c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -2112,10 +2112,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) char *ip_addr = tech_pvt->profile->sipip; char *ipv6; - if ( ( tech_pvt->profile->extsipip && !zstr(tech_pvt->remote_ip) ) && - ( sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip) || - switch_check_network_list_ip(tech_pvt->remote_ip, tech_pvt->profile->local_network) - ) ) { + if ( !zstr(tech_pvt->remote_ip) && sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip ) ) { ip_addr = tech_pvt->profile->extsipip; }