提交 405c966a authored 作者: Brian West's avatar Brian West

evil nat scenarios

上级 98a4b3e8
......@@ -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;
......
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论