[OpenSIPS-Users] Failure Route Question

Alexander Perkins alexanderhenryperkins at gmail.com
Thu May 17 09:45:29 EDT 2018


Hi All. I have a question regarding the failure route.  Currently, my
failure route is logging the failed attempts to a database.  However, I've
noticed that I am getting all the failures.  Is it possible to get the
failure reason from the route?  For example, it was a 404 or a 503, etc.
Here's my logic.  I'd like to include the failure code on there, if
possible.

failure_route[1] {
        if(is_method("INVITE")) {
             avp_db_query("INSERT INTO
RoutingFailures(FromNumber,ToNumber,FromIP,ToIP)
VALUES('$fU','$tU','$si','$td')","","2");;
        }
    }

Any help is appreciated.

Thank you,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180517/e6ec368a/attachment.html>


More information about the Users mailing list