[SR-Users] How to get Reason code from reply in failure_route

Mino Haluz mino.haluz at gmail.com
Fri Dec 23 14:21:36 CET 2011


Ok, T_rpl(hdr(reason)) did the thing, however thanks!

On Fri, Dec 23, 2011 at 2:01 PM, Mino Haluz <mino.haluz at gmail.com> wrote:

> I meant the reason specified in the reply as : Reason: Q.850;cause=17 ,
> that is not the SIP response code in fact. T_reply_code relates to the SIP
> response code.
>
>
> On Fri, Dec 23, 2011 at 12:35 PM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> Hello,
>>
>>
>> On 12/23/11 11:44 AM, Mino Haluz wrote:
>>
>>> Hi,
>>>
>>> how can I get the reason code from reply in failure_route ? $hdr(reason)
>>> points to the INVITE request..
>>>
>> you can test it with a regular expression via t_check_status(...) from tm
>> module or get it in a config variable:
>>
>> http://www.kamailio.org/wiki/**cookbooks/3.2.x/**
>> pseudovariables#t_reply_code<http://www.kamailio.org/wiki/cookbooks/3.2.x/pseudovariables#t_reply_code>
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla -- http://www.asipto.com
>> http://linkedin.com/in/miconda -- http://twitter.com/miconda
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111223/b59323ab/attachment.htm>


More information about the sr-users mailing list