this should have been moved into agressive nat detection not commented

This commit is contained in:
Anthony Minessale 2010-10-22 11:22:07 -05:00
parent 1166f8d0de
commit 83c8c1254b
1 changed files with 5 additions and 7 deletions

View File

@ -1470,16 +1470,14 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
} else if (port && atoi(port) != network_port) {
is_nat = "via port";
}
if (!is_nat && sip->sip_via->v_port &&
atoi(sip->sip_via->v_port) == 5060 && network_port != 5060 ) {
is_nat = "via port";
}
}
}
/* FS-2773: This causes issues with Cisco phones.
* if (!is_nat && sip && sip->sip_via && sip->sip_via->v_port &&
* atoi(sip->sip_via->v_port) == 5060 && network_port != 5060 ) {
* is_nat = "via port";
* }
*/
if (!is_nat && profile->nat_acl_count) {
uint32_t x = 0;
int ok = 1;