<div dir="ltr">Thanks!<div>Another related issue I encountered is that the $<reply>rs and $<reply>rr are null in the failure_route for some errors (e.g. 408), and for other errors they have the expected values.</div><div>Any idea why and how to always get those values?</div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jun 25, 2018 at 10:17 AM Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Yuval!<br>
<br>
Note that you may have multiple responses for a transaction until it <br>
fails, so you should wonder which response you should look the header <br>
into. IMO the best way to achieve this is to check for the header <br>
existance in the onreply_route[], and save the header's value in an AVP, <br>
that can be queried in the failure_route.<br>
You can also use the context of a pseudo-variable, something like: <br>
$(<reply>hdr(Contact)). Note that this will return the Contact header of <br>
the final reply of the transaction. Hope this helps.<br>
<br>
Best regards,<br>
Răzvan<br>
<br>
On 06/24/2018 03:44 PM, Yuval Dinari via Users wrote:<br>
> How do I access the response in a failure_route ?<br>
> Specifically I want to check for the existence of some header, but <br>
> is_present_hf() runs on the original request.<br>
> Thanks<br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
   <a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>