Good point - I'll do that
On Wed, 2 Dec 2020 at 16:33, Liviu Chircu <[email protected]> wrote:
> 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 Chircuwww.twitter.com/liviuchircu | www.opensips-solutions.com
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users