From a4ff369a2313f7e91844fac6b0680d520685a189 Mon Sep 17 00:00:00 2001 From: karl anderson Date: Fri, 18 Jan 2013 14:48:45 -0800 Subject: [PATCH] WHISTLE-42: opensips tweaks --- opensips/opensips.tmp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/opensips/opensips.tmp b/opensips/opensips.tmp index ae33401..18166be 100644 --- a/opensips/opensips.tmp +++ b/opensips/opensips.tmp @@ -309,6 +309,9 @@ route xlog("L_INFO", "$ci|log|from $fu"); xlog("L_INFO", "$ci|log|to $tu"); + replace("PolycomSoundPointIP[^\s]*", "PolySPIP"); + replace("PolycomVVX[^\s]*", "PolyVVX"); + # check that hop cound for this request and make sure it is under 10 # to prevent endless loops if (!mf_process_maxfwd_header("10")) @@ -394,13 +397,13 @@ route xlog("L_INFO", "$ci|log|cleaned up call id from cache"); } - else if (isflagset(26)) + else if (isflagset(26) && is_method("INVITE")) { cache_store("local", "$tU", "$avp(i:55)", 3600); xlog("L_INFO", "$ci|log|maintaining associated $tU with media server $avp(i:55)"); } - else if ($ct.fields(uri)) + else if ($ct.fields(uri) && is_method("INVITE")) { cache_store("local", "$(ct.fields(uri){uri.user})", "$avp(i:55)", 3600); @@ -707,7 +710,7 @@ route[external_to_internal_relay] xlog("L_INFO", "$ci|log|X-AUTH-IP: $si"); - $avp(s:final_reply_timer) = 2; + $avp(s:final_reply_timer) = 3; t_on_reply("internal_reply"); @@ -961,7 +964,7 @@ failure_route[internal_fault] } # reset the final reply timer - $avp(s:final_reply_timer) = 2; + $avp(s:final_reply_timer) = 3; t_on_reply("internal_reply");