[OpenSIPS-Users] cache_fetch on failure route issue

Arsen arsen.semionov at gmail.com
Tue Mar 29 17:08:40 CEST 2016


Hi guys,

We have an issue with cache_fetch function.

In the per_branch_route I store destination numbers as following (we have
multiple choice gateways here):

cache_store("local","bran$ci$rd","$rU",90);

In the on_reply_route in case of 200-OK I can successfully fetch the
destination number:

cache_fetch("local","bran$ci$si", $avp(cached_dst));

But in case of the failed call the same function always return <null>

failure_route[FAILURE_REDIR] {

  if (!t_check_status("[1|2|3][0-9][0-9]")) {

     cache_fetch("local","bran$ci$si", $avp(cached_dst));

  }

}

Can we use cache_fetch in the on_failure route?

Please advice

Thanks,

-- 
Regards,
Arsen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160329/335b681c/attachment.htm>


More information about the Users mailing list