<div dir="ltr">Hi guys,<div><br></div><div>We have an issue with cache_fetch function. </div><div><br></div><div>In the per_branch_route I store destination numbers as following (we have multiple choice gateways here):</div><div><br></div><div>cache_store(&quot;local&quot;,&quot;bran$ci$rd&quot;,&quot;$rU&quot;,90);</div><div><br></div><div>In the on_reply_route in case of 200-OK I can successfully fetch the destination number:</div><div><br></div><div>cache_fetch(&quot;local&quot;,&quot;bran$ci$si&quot;, $avp(cached_dst));</div><div><br></div><div>But in case of the failed call the same function always return &lt;null&gt;<br clear="all"><div><br></div><div>failure_route[FAILURE_REDIR] {</div><div><br></div><div>  if (!t_check_status(&quot;[1|2|3][0-9][0-9]&quot;)) {<br></div><div><br></div><div>     cache_fetch(&quot;local&quot;,&quot;bran$ci$si&quot;, $avp(cached_dst));</div><div><br></div><div>  }</div><div><br></div><div>}</div><div><br></div><div>Can we use cache_fetch in the on_failure route? </div><div><br></div><div>Please advice</div><div><br></div><div>Thanks,</div><div><br></div>-- <br><div class="gmail_signature">Regards,<br>Arsen.<br></div>
</div></div>