[OpenSIPS-Users] Accessing the response in a failure_route
Răzvan Crainea
razvan at opensips.org
Mon Jun 25 03:16:24 EDT 2018
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
More information about the Users
mailing list