<div dir="ltr"><div><div><div><div>Hello,<br><br></div><div>Thanks for your reply<br></div><div><br></div>Here is the field<br>Reason: Q.850;cause=047<br><br></div>I've tried it in the failure_route block (using t_on_failure before relaying a SIP INVITE).<br>

<br></div>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><br></div>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></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 1:17 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    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<div><div class="h5"><br>
    <br>
    <div>On 07/02/14 13:14, Tuan Viet Nguyen
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hello,<br>
                <br>
              </div>
              How to get ISUP cause in the 'Reason' header field of SIP
              error reply ?<br>
              <br>
            </div>
            I've tried a few ways but it did not work<br>
            @message.header.Reason.params["cause"]<br>
          </div>
          or <br>
          $hdr(Reason) gives null<br>
          <br>
        </div>
        Thanks,<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<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><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
  </font></span></div>

<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>
<br></blockquote></div><br></div>