Hi, Yuval!

Those values are null most likely because the 408 Timeout message is not received by OpenSIPS, but locally generated. Therefore, there's no actual reply to get the status/reason from. Therefore it is safe for you to presume that if $rs/$rr is null, there is no response coming from UAS, so you might presume it's a 408 Timeout. Hope this helps.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/25/2018 12:12 PM, Yuval Dinari via Users wrote:
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 <raz...@opensips.org <mailto:raz...@opensips.org>> 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
     > Users@lists.opensips.org <mailto:Users@lists.opensips.org>
     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
     >

-- Răzvan Crainea
    OpenSIPS Core Developer
    http://www.opensips-solutions.com

    _______________________________________________
    Users mailing list
    Users@lists.opensips.org <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to