From c260989b3d54068752abab34ee0526f7736e2baf Mon Sep 17 00:00:00 2001 From: K Anderson Date: Thu, 6 Oct 2011 07:57:43 -0700 Subject: [PATCH] oops, it was late...put logic inside block when it should have been outside --- opensips/opensips.tmp | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/opensips/opensips.tmp b/opensips/opensips.tmp index ba1efd4..8884d9a 100644 --- a/opensips/opensips.tmp +++ b/opensips/opensips.tmp @@ -388,22 +388,18 @@ route } else if (isflagset(26)) { - if (isflagset(26)) - { - cache_store("local", "$tU", "$avp(i:55)", 3600); + 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)) - { - cache_store("local", "$(ct.fields(uri){uri.user})", "$avp(i:55)", 3600); - - xlog("L_INFO", "$ci|log|maintaining associated $(ct.fields(uri){uri.user}) with media server $avp(i:55)"); - } + xlog("L_INFO", "$ci|log|maintaining associated $tU with media server $avp(i:55)"); + } + else if ($ct.fields(uri)) + { + cache_store("local", "$(ct.fields(uri){uri.user})", "$avp(i:55)", 3600); - cache_store("local", "$ci", "$avp(i:55)", 3600); + xlog("L_INFO", "$ci|log|maintaining associated $(ct.fields(uri){uri.user}) with media server $avp(i:55)"); } + cache_store("local", "$ci", "$avp(i:55)", 3600); } xlog("L_INFO", "$ci|log|forwarding based on the route set"); @@ -906,3 +902,4 @@ failure_route[internal_fault] # if no new branch is generated or no reply is forced over, by default, # the winning reply will be sent back to UAC. } +