On 02.12.2020 18:16, Mark Allen wrote:
Thanks so much for your help Liviu. In the end, I used the $shv()
approach you suggested. It worked like a dream! :-)
In opensips.cfg:
loadmodule "cfgutils.so"
modparam("cfgutils", "shvset", "cacheValid=i:0")
route{
if ($shv(cacheValid) == 0) {
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.
[1]: https://www.opensips.org/Documentation/Script-Routes-3-2#toc8
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users