[Kamailio-Devel] $T_reply_code

Ovidiu Sas osas at voipembedded.com
Tue Oct 21 18:39:08 CEST 2008


Yes it can.  I'm using it all the time:

failure_route[10] {
        xlog("L_INFO", "entering failure_route[11] for reply code
'$T_reply_code'\n");
        ...
}

On Tue, Oct 21, 2008 at 11:25 AM, Juha Heinanen <jh at tutpro.com> wrote:
> while working on tm code, i noticed that tm module exports pseudo
> variable
>
> 1.5.2. $T_reply_code
>
>   $T_reply_code - the code of the reply, as follows: in
>   request_route will be the last stateful sent reply; in
>   reply_route will be the current processed reply; in
>   failure_route will be the negative winning reply. In case of
>   no-reply or error, '0' value is returned.
>
> could this be used to get $rs print the right thing in failure
> route block?
>
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>



More information about the Devel mailing list