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
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to