don't kick in nat mode on polycom tcp unless its not in the local network

This commit is contained in:
Anthony Minessale 2014-03-07 08:34:26 +05:00
parent 5aa955b5c9
commit 0da8c6331d
1 changed files with 2 additions and 1 deletions

View File

@ -8232,7 +8232,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
}
if (profile->server_rport_level >= 2 && sip->sip_user_agent && sip->sip_user_agent->g_string &&
if (!switch_check_network_list_ip(network_ip, profile->local_network) &&
profile->server_rport_level >= 2 && sip->sip_user_agent && 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) )) {
broken_device = 1;