<div dir="ltr">Dear All,<br><br>I&#39;m using the below config plan for routing my calls...The issue that forcing rtp proxy is not working well and the rtp proxy is never forced....Can you please provide me a guidance here?<br>
<br><br>        if($rU=~&quot;^00.*&quot; )<br>        {<br>              <br>                <br>                if(!cr_route(&quot;default&quot;, &quot;<a href="http://domain.com">domain.com</a>&quot;, &quot;$rU&quot;, &quot;$rU&quot;, &quot;call_id&quot;)){<br>
                  sl_send_reply(&quot;403&quot;, &quot;Not allowed&quot;);<br>                } else {<br>                <br>                setbflag(6);<br>                route(1);<br>                }<br>                exit; ## this was missing here -bogdan!!!<br>
        }<br>        else<br>        {<br>                route(LOCATION);<br><br>                route(RELAY);<br>        }<br>}<br><br><br><br>############# THIS IS THE GENERIC RELAY ROUTE THAT MUST BE USED ALL THE TIME FOR RELAY<br>
route[1]<br>{<br>        <br>        <br>        # apply any NAT changes?<br>        if(isflagset(5)||isbflagset(6)) {<br>                route(4);<br>        }<br><br>   <br>     <br>        exit;<br>}<br><br>route[4]<br>
{<br><br>        <br>        if (is_method(&quot;BYE|CANCEL&quot;)) {<br>                unforce_rtp_proxy();<br>        } else if (is_method(&quot;INVITE&quot;)){<br>                <br>                if (nat_uac_test(&quot;8&quot;)) {<br>
                    <b>    force_rtp_proxy();</b><br>                } else {<br>                        force_rtp_proxy();<br>                }<br>                xlog(&quot;L_ERR&quot;,&quot;66666666666666666666666666666666666666666&quot;);<br>
                t_on_failure(&quot;1&quot;);<br>                t_on_reply(&quot;1&quot;);<br><br><br>                <br>        };<br><br>The call is going through Route[1] then through Route[4], but rtp proxy is never forced...Any tips please?<br>
<br>Regards<br></div>