<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">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">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">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">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">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">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">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">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">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>