<div dir="ltr">Dear All,<br><br>I'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=~"^00.*" )<br> {<br> <br> <br> if(!cr_route("default", "<a href="http://domain.com">domain.com</a>", "$rU", "$rU", "call_id")){<br>
sl_send_reply("403", "Not allowed");<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("BYE|CANCEL")) {<br> unforce_rtp_proxy();<br> } else if (is_method("INVITE")){<br> <br> if (nat_uac_test("8")) {<br>
<b> force_rtp_proxy();</b><br> } else {<br> force_rtp_proxy();<br> }<br> xlog("L_ERR","66666666666666666666666666666666666666666");<br>
t_on_failure("1");<br> t_on_reply("1");<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>