Well I'll be a son of a monkey's bitch, it was that bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15748 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-12-02 01:58:05 +00:00
parent d5f1861268
commit 56f10fb3c6
2 changed files with 35 additions and 9 deletions
+2 -1
View File
@@ -1363,7 +1363,8 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
goto end;
}
if (is_nat && !sofia_glue_check_nat(profile, network_ip)) {
if (is_nat && profile->local_network && switch_check_network_list_ip(network_ip, profile->local_network)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "IP %s is on local network, not seting NAT mode.\n", network_ip);
is_nat = NULL;
}