evil nat scenarios

This commit is contained in:
Brian West 2010-04-27 13:56:37 -05:00
parent 98a4b3e812
commit 405c966a4f
2 changed files with 10 additions and 0 deletions

View File

@ -1751,6 +1751,11 @@ void sofia_presence_handle_sip_i_subscribe(int status,
}
}
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;

View File

@ -1364,6 +1364,11 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
}
}
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;