<div>Hi Bogdan, </div>
<div> </div>
<div>I have used the following to add the header to &#39;487 reply&#39; but I am not getting it on the other end. Is something wrong with the script.</div>
<div> </div>
<div>onreply_route[1] {<br>        if(t_check_status(&quot;487&quot;)) {<br>                cache_fetch(&quot;local&quot;, &quot;dst&quot;,$avp(s:dst));<br>                append_hf(&quot;OS-LB-GW: $avp(s:dst)\r\n&quot;);<br>
                xlog(&quot;487 at reply route&quot;);<br>        }<br>}</div>
<div>failure_route[1] {<br>        if(t_check_status(&quot;487&quot;)) {<br>                cache_fetch(&quot;local&quot;, &quot;dst&quot;,$avp(s:dst));<br>                append_hf(&quot;OS-LB-GW: $avp(s:dst)\r\n&quot;);<br>
                xlog(&quot;request terminated&quot;);<br>        }</div>
<div> </div>
<div> </div>
<div>SIP/2.0 487 Request Terminated<br>Via: SIP/2.0/UDP 172.42.173.241:5060;branch=z9hG4bK15d71bf9;rport=5060<br>From: &quot;15012&quot; &lt;<a href="mailto:sip%3A15012@172.42.173.241">sip:15012@172.42.173.241</a>&gt;;tag=as26742360<br>
To: &lt;<a href="http://sip:15000@172.42.173.241:5070">sip:15000@172.42.173.241:5070</a>&gt;;tag=0f79c926a81c7a4b8accb9b5fcafd151-c141<br>Call-ID: <a href="mailto:5d5f8bce5345208e206f9213508cc5fc@172.42.173.241">5d5f8bce5345208e206f9213508cc5fc@172.42.173.241</a><br>
CSeq: 102 INVITE<br>Server: Servion SIP Proxy<br>Content-Length: 0<br><br>Regards</div>
<div>Rajib<br><br></div>
<div class="gmail_quote">On Thu, Mar 25, 2010 at 7:08 PM, rajib deka <span dir="ltr">&lt;<a href="mailto:rajibdk@gmail.com">rajibdk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Yes :), CANCEL message send by asterisk to cancel the INVITE. Thank you.</div>
<div> </div>
<div>Regards</div>
<div>Rajib <font color="#888888"><br><br></font></div>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Thu, Mar 25, 2010 at 6:55 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">you mean the 487 in for INVITE that was cancelled and not for the CANCEL<br>itself ;).<br><br>if, you can use the onreply_route for the INVITE transaction and use<br>
&quot;status&quot; keyword to check the code -&gt; append_hf()<br>
<div><br><br>Regards,<br>Bogdan<br><br>rajib deka wrote:<br></div>
<div>&gt; Hi Bogdan,<br>&gt;<br>&gt; My situation as follows<br>&gt;<br>&gt; asterisk -&gt; opensips -&gt; SIP trunk<br>&gt; I am receiving 487 at asterisk from opensips for CANCEL. I want to add<br>&gt; a header to 487 from opensips reply or failure route, so that i can<br>
&gt; parse it in asterisk to get the header.<br>&gt;<br>&gt; Regards<br>&gt; Rajib<br>&gt; On Thu, Mar 25, 2010 at 4:15 PM, Bogdan-Andrei Iancu<br></div>
<div>&gt; &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>&gt;<br>&gt;     Hi Rajib,<br>
&gt;<br>&gt;     is this 487 reply received? if so, use onreply_route + append_hf(&quot;Foo:<br>&gt;     bar \r\n&quot;);<br>&gt;<br>&gt;     Regards,<br>&gt;     Bogdan<br>&gt;<br>&gt;     rajib deka wrote:<br>&gt;     &gt; Hi List,<br>
&gt;     &gt;<br>&gt;     &gt; is it possible to add a header to &#39;487&#39; response. I tried the<br>&gt;     same in<br>&gt;     &gt; on_reply and failure route but I am not getting it at the UAC end.<br>&gt;     &gt; Regards<br>
&gt;     &gt; --<br>&gt;     &gt; Rajib Deka<br>&gt;     &gt; Software Engineer<br>&gt;     &gt; Servion Global Solution<br>&gt;     &gt; Chennai, India<br>&gt;     &gt;<br>&gt;     &gt; Mobile No: + 91 80157 09130<br>&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>&gt;     &gt;<br>&gt;     &gt; _______________________________________________<br>&gt;     &gt; Users mailing list<br></div>&gt;     &gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;<br>

<div>&gt;     &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;     &gt;<br>&gt;<br>&gt;<br>&gt;     --<br>&gt;     Bogdan-Andrei Iancu<br>
</div>&gt;     <a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro/" target="_blank">http://www.voice-system.ro/</a>&gt;<br>&gt;<br>&gt;<br>&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>&gt;     <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;<br>

<div>
<div></div>
<div>&gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Rajib Deka<br>
&gt; Software Engineer<br>&gt; Servion Global Solution<br>&gt; Chennai, India<br>&gt;<br>&gt; Mobile No: + 91 80157 09130<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>
&gt; Users mailing list<br>&gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br><br><br>--<br>Bogdan-Andrei Iancu<br><a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a><br><br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>

<div>
<div></div>
<div class="h5">Rajib Deka<br>Software Engineer<br>Servion Global Solution<br>Chennai, India<br><br>Mobile No: + 91 80157 09130<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Rajib Deka<br>Software Engineer<br>
Servion Global Solution<br>Chennai, India<br><br>Mobile No: + 91 80157 09130<br>