mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
add kirk wireless servers to safe as they do not do rport
This commit is contained in:
parent
4d08e07237
commit
83c6f4250b
@ -3103,7 +3103,8 @@ int agent_check_request_via(nta_agent_t *agent,
|
|||||||
}
|
}
|
||||||
else if (agent->sa_server_rport == 2 ||
|
else if (agent->sa_server_rport == 2 ||
|
||||||
(agent->sa_server_rport == 3 && sip && sip->sip_user_agent &&
|
(agent->sa_server_rport == 3 && sip && sip->sip_user_agent &&
|
||||||
sip->sip_user_agent->g_string && !strncasecmp(sip->sip_user_agent->g_string, "Polycom", 7))) {
|
sip->sip_user_agent->g_string &&
|
||||||
|
(!strncasecmp(sip->sip_user_agent->g_string, "Polycom", 7) || !strncasecmp(sip->sip_user_agent->g_string, "KIRK Wireless Server", 20)))) {
|
||||||
rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port));
|
rport = su_sprintf(msg_home(msg), "rport=%u", ntohs(from->su_port));
|
||||||
msg_header_replace_param(msg_home(msg), v->v_common, rport);
|
msg_header_replace_param(msg_home(msg), v->v_common, rport);
|
||||||
}
|
}
|
||||||
|
@ -1357,7 +1357,8 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (profile->server_rport_level == 3 && sip->sip_user_agent &&
|
if (profile->server_rport_level == 3 && sip->sip_user_agent &&
|
||||||
sip->sip_user_agent->g_string && !strncasecmp(sip->sip_user_agent->g_string, "Polycom", 7)) {
|
sip->sip_user_agent->g_string &&
|
||||||
|
( !strncasecmp(sip->sip_user_agent->g_string, "Polycom", 7) || !strncasecmp(sip->sip_user_agent->g_string, "KIRK Wireless Server", 20) )) {
|
||||||
if (sip && sip->sip_via) {
|
if (sip && sip->sip_via) {
|
||||||
const char *host = sip->sip_via->v_host;
|
const char *host = sip->sip_via->v_host;
|
||||||
const char *c_port = sip->sip_via->v_port;
|
const char *c_port = sip->sip_via->v_port;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user