<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 02.12.2020 18:16, Mark Allen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADaqb1t=KPbi=fiL_2SkhXK_KTqoayT-TO=VVmdFWWO_4UJDnQ@mail.gmail.com">Thanks
so much for your help Liviu. In the end, I used the $shv()
approach you suggested. It worked like a dream! :-)
<div><br>
</div>
<div>
<div>In opensips.cfg:</div>
<div><br>
</div>
<div><font face="monospace"> loadmodule "cfgutils.so"<br>
modparam("cfgutils", "shvset", "cacheValid=i:0")<br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace"> route{<br>
</font></div>
<div><font face="monospace"> if ($shv(cacheValid) == 0) {</font></div>
</div>
</blockquote>
<p><tt>Glad it worked! Depending on the volume of traffic flowing
through your instance, maybe it would be better to perform the
"is cache valid" check within a timer route [1] at a frequency
of your choosing, rather than on each SIP request.</tt></p>
<p><tt>[1]:
<a class="moz-txt-link-freetext" href="https://www.opensips.org/Documentation/Script-Routes-3-2#toc8">https://www.opensips.org/Documentation/Script-Routes-3-2#toc8</a></tt><br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
</body>
</html>