From 0da8c6331d1ad1da6e45174797b7fd40b20c5c4c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Mar 2014 08:34:26 +0500 Subject: [PATCH] don't kick in nat mode on polycom tcp unless its not in the local network --- src/mod/endpoints/mod_sofia/sofia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 915a6dee64..09d66c7ae2 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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;