<div dir="ltr">This method isn't permitted at failure_route.<br><br><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 2:11 PM, Daniel Ribeiro <span dir="ltr"><<a href="mailto:ribeiro.danielf@gmail.com">ribeiro.danielf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">One more detail...<br>I'm trying to implement this scenario.<br><a href="http://www.tech-invite.com/Ti-sip-service-8.html#fig4" target="_blank">http://www.tech-invite.com/Ti-sip-service-8.html#fig4</a><div>
<div></div><div class="h5"><br><br><br><div class="gmail_quote">
On Fri, Mar 19, 2010 at 2:05 PM, Daniel Ribeiro <span dir="ltr"><<a href="mailto:ribeiro.danielf@gmail.com" target="_blank">ribeiro.danielf@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hello guys,<br><br>I'm trying to implement the call forward after a busy message following some internet examples but without success.<br>How can I generate an 181 message after a error 486.<br>I'm trying with this cfg for failure_route.<br>
<br>failure_route[1] {<br> if (t_was_cancelled()) {<br> exit;<br> }<br><br> # uncomment the following lines if you want to block client <br> # redirect based on 3xx replies.<br> ##if (t_check_status("3[0-9][0-9]")) {<br>
##t_reply("404","Not found");<br> ## exit;<br> ##}<br><br> # Redirect busy calls to another destination<br> if (t_check_status("486")) {<br> xlog("Redirect busy calls\n");<br>
xlog("before revert $ru\n");<br> revert_uri();<br> xlog("after revert $ru\n");<br> #If there is an AVP called fwdbusy send to it<br> if(avp_db_load("$ru","$avp(s:fwdbusy)")) {<br>
$ru = $avp(s:fwdbusy); <br> xlog("forwarded to: $ru");<br> }<br> t_relay();<br> }<br>}<br><br><br>The log output was:<br>Mar 19 13:34:49 danielribeiro /usr/local/sbin/opensips[26188]: new branch at <a href="mailto:sip%3A11@192.168.1.2" target="_blank">sip:11@192.168.1.2</a> <br>
Mar 19 13:34:49 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>Mar 19 13:34:49 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>Mar 19 13:34:50 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>
Mar 19 13:34:50 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>Mar 19 13:34:58 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>Mar 19 13:34:58 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>
Mar 19 13:34:58 danielribeiro /usr/local/sbin/opensips[26188]: ACC: transaction answered: timestamp=1269016498;method=INVITE;from_tag=286496395;to_tag=192.168.1.2+1+1060000+dca82b99;call_id=<a href="mailto:3F0187FE-C3FE-E6DF-A2F3-457DF8E17B14@192.168.1.200" target="_blank">3F0187FE-C3FE-E6DF-A2F3-457DF8E17B14@192.168.1.200</a>;code=200;reason=OK <br>
Mar 19 13:34:58 danielribeiro /usr/local/sbin/opensips[26188]: ACC: request acknowledged: timestamp=1269016498;method=ACK;from_tag=286496395;to_tag=192.168.1.2+1+1060000+dca82b99;call_id=<a href="mailto:3F0187FE-C3FE-E6DF-A2F3-457DF8E17B14@192.168.1.200" target="_blank">3F0187FE-C3FE-E6DF-A2F3-457DF8E17B14@192.168.1.200</a>;code=200;reason=OK <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: new branch at <a href="mailto:sip%3A11@192.168.1.2" target="_blank">sip:11@192.168.1.2</a> <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply error 486 <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: ACC: call missed: timestamp=1269016500;method=INVITE;from_tag=c298fc07-e331-df11-91ee-002421899f1c;to_tag=192.168.1.2+1+1080000+b729333f;call_id=fc95fc07-e331-df11-91ee-002421899f1c@danielribeiro;code=486;reason=Busy Here <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: Redirect busy calls <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: before revert <a href="mailto:sip%3A11@192.168.1.2" target="_blank">sip:11@192.168.1.2</a> <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: after revert <a href="mailto:sip%3A11@192.168.1.200" target="_blank">sip:11@192.168.1.200</a> <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: forwarded to: <a href="mailto:sip%3A13@192.168.1.200" target="_blank">sip:13@192.168.1.200</a><br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: new branch at <a href="mailto:sip%3A13@192.168.1.200" target="_blank">sip:13@192.168.1.200</a> <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: new branch at <a href="mailto:sip%3A13@192.168.1.2" target="_blank">sip:13@192.168.1.2</a> <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: ACC: call missed: timestamp=1269016500;method=INVITE;from_tag=c298fc07-e331-df11-91ee-002421899f1c;to_tag=192.168.1.2+1+1080000+b729333f;call_id=fc95fc07-e331-df11-91ee-002421899f1c@xxxxxxx;code=482;reason=Loop Detected <br>
Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: incoming reply <br>Mar 19 13:35:00 danielribeiro /usr/local/sbin/opensips[26188]: onreply invite <br><br><br>-- <br>Daniel Ribeiro<br>
</div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br>Daniel Ribeiro<br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>Daniel Ribeiro<br>
</div>