<div>Hi Bogdan, </div>
<div> </div>
<div>I have used the following to add the header to '487 reply' 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("487")) {<br> cache_fetch("local", "dst",$avp(s:dst));<br> append_hf("OS-LB-GW: $avp(s:dst)\r\n");<br>
xlog("487 at reply route");<br> }<br>}</div>
<div>failure_route[1] {<br> if(t_check_status("487")) {<br> cache_fetch("local", "dst",$avp(s:dst));<br> append_hf("OS-LB-GW: $avp(s:dst)\r\n");<br>
xlog("request terminated");<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: "15012" <<a href="mailto:sip%3A15012@172.42.173.241">sip:15012@172.42.173.241</a>>;tag=as26742360<br>
To: <<a href="http://sip:15000@172.42.173.241:5070">sip:15000@172.42.173.241:5070</a>>;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"><<a href="mailto:rajibdk@gmail.com">rajibdk@gmail.com</a>></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"><<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>></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>
"status" keyword to check the code -> append_hf()<br>
<div><br><br>Regards,<br>Bogdan<br><br>rajib deka wrote:<br></div>
<div>> Hi Bogdan,<br>><br>> My situation as follows<br>><br>> asterisk -> opensips -> SIP trunk<br>> I am receiving 487 at asterisk from opensips for CANCEL. I want to add<br>> a header to 487 from opensips reply or failure route, so that i can<br>
> parse it in asterisk to get the header.<br>><br>> Regards<br>> Rajib<br>> On Thu, Mar 25, 2010 at 4:15 PM, Bogdan-Andrei Iancu<br></div>
<div>> <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>><br>> Hi Rajib,<br>
><br>> is this 487 reply received? if so, use onreply_route + append_hf("Foo:<br>> bar \r\n");<br>><br>> Regards,<br>> Bogdan<br>><br>> rajib deka wrote:<br>> > Hi List,<br>
> ><br>> > is it possible to add a header to '487' response. I tried the<br>> same in<br>> > on_reply and failure route but I am not getting it at the UAC end.<br>> > Regards<br>
> > --<br>> > Rajib Deka<br>> > Software Engineer<br>> > Servion Global Solution<br>> > Chennai, India<br>> ><br>> > Mobile No: + 91 80157 09130<br>> ><br>
> ------------------------------------------------------------------------<br>> ><br>> > _______________________________________________<br>> > Users mailing list<br></div>> > <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
<div>> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>> ><br>><br>><br>> --<br>> Bogdan-Andrei Iancu<br>
</div>> <a href="http://www.voice-system.ro/" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro/" target="_blank">http://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> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
<div>
<div></div>
<div>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>><br>><br>><br>><br>> --<br>> Rajib Deka<br>
> Software Engineer<br>> Servion Global Solution<br>> Chennai, India<br>><br>> Mobile No: + 91 80157 09130<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>
><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>