Re: [SR-Users] Get information in 'Reason' header field

2014-02-10 Thread Tuan Viet Nguyen
Hello, Thank you for your reply, Unfortunately, it does not work for me. Version : 4.0.3 Regards, On Mon, Feb 10, 2014 at 10:17 AM, Björn Bylander wrote: > Hello, > > The following works for me with a header like 'Reason: > Q.850;cause=16;text="NORMAL_CLEARING".' in the 'RELAY' route when th

Re: [SR-Users] Get information in 'Reason' header field

2014-02-10 Thread Björn Bylander
Hello, The following works for me with a header like 'Reason: Q.850;cause=16;text="NORMAL_CLEARING".' in the 'RELAY' route when the method is 'BYE': $(hdr(Reason){param.value,cause}); Cheers, Björn Bylander On 07/02/14 15:09, Tuan Viet Nguyen wrote: Hello, Thanks for your reply Here is the

Re: [SR-Users] Get information in 'Reason' header field

2014-02-07 Thread Tuan Viet Nguyen
Hello, Thanks for your reply Here is the field Reason: Q.850;cause=047 I've tried it in the failure_route block (using t_on_failure before relaying a SIP INVITE). If I print the From header using $hdr(From) ou @message.header.From, it works, but it is not the case with @message.header.From.para

Re: [SR-Users] Get information in 'Reason' header field

2014-02-07 Thread Daniel-Constantin Mierla
Hello, can you paste the header here and how you used it in the config? Have tried to print it with xlog or in some other expression? Also, in what kind of routing block you try to get it? Cheers, Daniel On 07/02/14 13:14, Tuan Viet Nguyen wrote: Hello, How to get ISUP cause in the 'Reason

[SR-Users] Get information in 'Reason' header field

2014-02-07 Thread Tuan Viet Nguyen
Hello, How to get ISUP cause in the 'Reason' header field of SIP error reply ? I've tried a few ways but it did not work @message.header.Reason.params["cause"] or $hdr(Reason) gives null Thanks, ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-