[Users] Geting status and reason in failure_route
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Nov 14 15:30:21 CET 2005
Hello,
On 11/13/05 05:18, Taras Bendik wrote:
> Hi
>
> -----------------------------
> failure_route[1]
> {
> if (t_check_status("408|500|503"))
> {
> t_reply("503", "Sorry");
> }
> }
> -----------------------------
>
> Is it posible to add loging in failure route, so User get 503, but I
> get acctual info on what happen, because $rs $rr work only in
> onreply_route, but I need them or any equivalent in failure_route? So
> I can log exactly what happen.
To understand why is not possible to access the reply's reason and
status code you should know that in the failure route in processed the
initial request (I guess INVITE in this case), and there is no way to
access the received replies from config file.
Cheers,
Daniel
>
> Regards,
> Taras
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list