<div dir="ltr"><div>Hi guys.....</div>
<div> </div>
<div>the header searching and saving the Q850 code didn&#39;t work.</div>
<div>here is what i wrote in the cfg, in the failure route:</div>
<div> </div>
<div><em># manage failure routing cases<br>failure_route[MANAGE_FAILURE] {<br>  xlog(&quot;L_CRIT&quot;, &quot;failure \n&quot;);<br> if($avp(CAR)==&quot;CALLOUT&quot;){<br> xlog(&quot;L_CRIT&quot;, &quot;failure in callout \n&quot;);<br>
  ##if(is_present_hf(&quot;Reason&quot;)) {<br>  xlog(&quot;L_CRIT&quot;, &quot;failure in reason\n&quot;);<br>   $avp(Q850)=$(hdr(Reason){param.value,cause}{<a href="http://s.int">s.int</a>});<br>   xlog(&quot;L_CRIT&quot;, &quot;failure in reason $avp(Q850)\n&quot;);<br>
  ##}</em></div>
<div> </div>
<div>here is the log print......</div>
<div> </div>
<div><em> 3(3433) CRITICAL: &lt;script&gt;: failure<br> 3(3433) CRITICAL: &lt;script&gt;: failure in callout<br> 3(3433) CRITICAL: &lt;script&gt;: failure in reason<br> 3(3433) ERROR: &lt;core&gt; [lvalue.c:347]: non existing right pvar<br>
 3(3433) ERROR: &lt;core&gt; [lvalue.c:407]: assignment failed at pos: (524,15-524,54)<br> 3(3433) CRITICAL: &lt;script&gt;: failure in reason &lt;null&gt;</em></div>
<div> </div>
<div> </div>
<div>the command <em>is_present_hf(&quot;Reason&quot;)) </em> is under ## because of tests... when it was in use, the script didn&#39;t even went in the &quot;if&quot;, the command didn&#39;t recognize the header.</div>
<div><em></em> </div>
<div>here is the sip trace for the 486, the header is there...</div>
<div> </div>
<div><em>    Message Header<br>        Call-ID: 6994099017399497785-1328029200-13379<br>        From: &lt;sip:36264529;ss7-cpc=10;cpc=<a href="mailto:ordinary@172.16.10.3">ordinary@172.16.10.3</a>;user=phone&gt;;tag=6994099017399497785<br>
        To: &lt;<a href="mailto:sip%3A39955011@172.16.60.161">sip:39955011@172.16.60.161</a>;user=phone&gt;;tag=9299942026613191738<br>        CSeq: 1 INVITE<br>        Via: SIP/2.0/UDP 172.16.60.161;received=172.16.60.161;branch=z9hG4bK08d6.c653f346.2,SIP/2.0/UDP 172.16.10.3:5060;branch=z9hG4bK-6110080000017439-ac100a03-1<br>
        Supported: timer,100rel<br>        Reason: Q.850;cause=17;text=&quot;UserBusy&quot;<br>            Reason Protocols: Q.850<br>            Cause: 17(0x11)[User busy]<br>        Content-Length: 0</em></div>
<div> </div>
<div><br></div></div>