Hello, <div><br></div><div>Your script seems to be ok. I would insert an exit after  xlog(&quot;L_INFO&quot;, &quot;No conditional forward found&quot;); 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">&lt;<a href="mailto:kenny@cititone.net">kenny@cititone.net</a>&gt;</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(&quot;L_INFO&quot;, &quot;conditional call forward checking&quot;);<br>
            if(avp_db_load(&quot;$ru/username&quot;,&quot;$avp(s:cvm)&quot;))<br>
            {<br>
                        $avp(s:divert_reason)=&quot;cvm&quot;;<br>
                        prefix(&quot;VMR_&quot;);<br>
                        rewritehostport(&quot;<a href="http://vm.example.com:5060" target="_blank">vm.example.com:5060</a>&quot;);<br>
                        append_branch();<br>
                        if (!t_relay()) {<br>
                                    xlog(&quot;L_INFO&quot;,&quot;sl reply error&quot;);<br>
                                    sl_reply_error();<br>
                        }<br>
                        exit;<br>
            }<br>
            xlog(&quot;L_INFO&quot;, &quot;No conditional forward found&quot;);<br>
}<br>
<br>
failure_route[1] {<br>
            if (t_was_cancelled())<br>
            {<br>
                        xlog(&quot;L_INFO&quot;, &quot;call was cancelled&quot;);<br>
                        exit;<br>
            }<br>
<br>
            if (t_check_status(&quot;3[0-9][0-9]&quot;))<br>
            {<br>
                        t_reply(&quot;404&quot;,&quot;Not found&quot;);<br>
                        exit;<br>
            }<br>
<br>
            if (t_check_status(&quot;48[0-9]|408&quot;))<br>
            {<br>
                        xlog(&quot;L_INFO&quot;, &quot;failed call forward, failure_route - call forward to Voice Mail - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n&quot;);<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>