Thanks!
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.
Any idea why and how to always get those values?
Thanks

On Mon, Jun 25, 2018 at 10:17 AM Răzvan Crainea <[email protected]> wrote:

> Hi, Yuval!
>
> Note that you may have multiple responses for a transaction until it
> fails, so you should wonder which response you should look the header
> into. IMO the best way to achieve this is to check for the header
> existance in the onreply_route[], and save the header's value in an AVP,
> that can be queried in the failure_route.
> You can also use the context of a pseudo-variable, something like:
> $(<reply>hdr(Contact)). Note that this will return the Contact header of
> the final reply of the transaction. Hope this helps.
>
> Best regards,
> Răzvan
>
> On 06/24/2018 03:44 PM, Yuval Dinari via Users wrote:
> > How do I access the response in a failure_route ?
> > Specifically I want to check for the existence of some header, but
> > is_present_hf() runs on the original request.
> > Thanks
> >
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> --
> Răzvan Crainea
> OpenSIPS Core Developer
>    http://www.opensips-solutions.com
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to