Hello, <div><br></div><div>Your script seems to be ok. I would insert an exit after xlog("L_INFO", "No conditional forward found"); Check the Asterisk server, did you issued an answer() before starting the IVR? Use ngrep to troubleshoot the SIP flow and check if the messages are being relayed to the right place. </div>
<div><br></div><div>Regards, </div><div><br></div><div>Flavio<br clear="all"><div> </div><br>
<br><br><div class="gmail_quote">2011/9/5 Kenny Tsang <span dir="ltr"><<a href="mailto:kenny@cititone.net">kenny@cititone.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello guys,<br>
Can anyone help me? I was trying to implement conditional call forward when it was busy or time-out. But the caller can’t hear anything after it was forward to the IVR. It just keep ringing. Any idea why? I’ve installed the Opensips 1.5.2, Asterisk 1.4.27.1 and Mediaproxy 2.3.8.<br>
<br>
route[5]<br>
{<br>
xlog("L_INFO", "conditional call forward checking");<br>
if(avp_db_load("$ru/username","$avp(s:cvm)"))<br>
{<br>
$avp(s:divert_reason)="cvm";<br>
prefix("VMR_");<br>
rewritehostport("<a href="http://vm.example.com:5060" target="_blank">vm.example.com:5060</a>");<br>
append_branch();<br>
if (!t_relay()) {<br>
xlog("L_INFO","sl reply error");<br>
sl_reply_error();<br>
}<br>
exit;<br>
}<br>
xlog("L_INFO", "No conditional forward found");<br>
}<br>
<br>
failure_route[1] {<br>
if (t_was_cancelled())<br>
{<br>
xlog("L_INFO", "call was cancelled");<br>
exit;<br>
}<br>
<br>
if (t_check_status("3[0-9][0-9]"))<br>
{<br>
t_reply("404","Not found");<br>
exit;<br>
}<br>
<br>
if (t_check_status("48[0-9]|408"))<br>
{<br>
xlog("L_INFO", "failed call forward, failure_route - call forward to Voice Mail - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n");<br>
route(5);<br>
}<br>
}<br>
<br>
Regards,<br>
Kenny<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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>
</blockquote></div><br></div>