<div dir="ltr">Thanks Bogdan...I'll check this and get back to you<br><br>Regards<br><br><div class="gmail_quote">On Fri, Feb 27, 2009 at 1:34 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi michel,<br>
<br>
Should do something like:<div class="Ih2E3d"><br>
<br>
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){<br>
sl_send_reply("403", "Not allowed");<br>
} else {<br>
# In cas of failure, re-route the request<br>
t_on_failure("1");<br></div>
t_on_reply("1");<div class="Ih2E3d"><br>
force_rtp_proxy();<br>
t_relay();<br>
}<br>
<br>
<br></div>
onreply_route[1] {<br>
if (t_check_status("2[0-9][0-9]")) {<br>
force_rtp_proxy();<br>
}<br>
}<br>
<br>
See : <a href="http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc4" target="_blank">http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc4</a><div class="Ih2E3d"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
michel freiha wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Dear Bogdan,<br>
<br>
Do you mean doing something like that?<br>
<br>
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){<br>
sl_send_reply("403", "Not allowed");<br>
} else {<br>
# In cas of failure, re-route the request<br>
t_on_failure("1");<br>
<br>
force_rtp_proxy();<br>
t_relay();<br>
route(2) ;<br>
}<br>
<br>
<br>
Please let me know how can I force it on route2 for the 200OK reply<br>
<br>
Thanks Bogdan<br>
<br>
<br></div><div class="Ih2E3d">
On Fri, Feb 27, 2009 at 11:54 AM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>
<br>
Hi Michel,<br>
<br>
You have to call twice force_rtp_proxy() in order to complete the<br>
RTP session (and have RTP flowing). First for the INVITE (as you<br>
already do) and second for the 200 OK reply.<br>
<br>
So install a onreply_route and if the reply is 200 OK, call again<br>
force_rtp_proxy.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
michel freiha wrote:<br>
<br>
Dear All,<br>
<br>
I need to make all my rtp traffic through OpenSips to pass<br>
through rtp proxy...I have the following route:<br>
<br>
<br>
if(!cr_route("default", "0", "$rU", "$rU", "call_id")){<br>
sl_send_reply("403", "Not allowed");<br>
} else {<br>
# In cas of failure, re-route the request<br>
t_on_failure("1");<br>
force_rtp_proxy();<br>
t_relay();<br>
}<br>
The call is working fine but with no audio...How can i fix<br>
this issue in order to have 2 way audio through rtpproxy?<br>
<br>
Regards<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div class="Ih2E3d"><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>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>