<div dir="ltr"><div><div><div>Hello,<br><br></div>Thank you for your reply,<br><br></div>Unfortunately, it does not work for me. Version : 4.0.3<br><br></div>Regards,<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Mon, Feb 10, 2014 at 10:17 AM, Björn Bylander <span dir="ltr"><<a href="mailto:bjorn.bylander@loxysoft.se" target="_blank">bjorn.bylander@loxysoft.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<br>
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':<br>
<br>
$(hdr(Reason){param.value,cause});<br>
<br>
Cheers,<br>
Björn Bylander<br>
<div class="HOEnZb"><div class="h5"><br>
On 07/02/14 15:09, Tuan Viet Nguyen wrote:<br>
<br>
Hello,<br>
Thanks for your reply<br>
<br>
Here is the field<br>
Reason: Q.850;cause=047<br>
I've tried it in the failure_route block (using t_on_failure before relaying a SIP INVITE).<br>
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.params["tag"] for ex.<br>
In this case, I also have a parsing error in log file<br>
ERROR: <core> [parser/parse_param.c:505]: parse_param(): parse_params(): Invalid character, ; expected<br>
<br>
On Fri, Feb 7, 2014 at 1:17 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br>
Hello,<br>
<br>
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?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 07/02/14 13:14, Tuan Viet Nguyen wrote:<br>
Hello,<br>
How to get ISUP cause in the 'Reason' header field of SIP error reply ?<br>
I've tried a few ways but it did not work<br>
@message.header.Reason.params["cause"]<br>
or<br>
$hdr(Reason) gives null<br>
Thanks,<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>