Thank you for the quick reply :) and the REFER scenario is working fine without rtp.<br><br>I'm sorry for being such a noob on this as I'm new to opensips and even sip message handling :( I have tried out adding code to local route and b2b_reply_route sections but rtp is not working - I think it has to do with how I've wrote the config.<br>
<br>before adding the b2bua I had my rtpproxy_engage() called on my route[1] before I call t_relay() and had the fix_nated_contact on my onreply _route.<br><br>here's a summarized version on my config. Can you please look at it and tell me which methods should be moved on to local route and b2b_reply_route.<br>
<br>route<br>{<br> .....<br> if(is_method("INVITE"))<br> {<br> do load balancing<br> route(1);<br> }<br>}<br><br>route[1]<br>{<br> .....<br> .....<br> if( is_method("INVITE"))<br> {<br>
engage_rtpproxy();<br> }<br> else if( is_method("BYE" || "CANCEL"))<br> {<br> unforce_rtpproxy();<br> }<br>}<br><br>onreply_route[1]<br>{<br> if (isbflagset(6))<br> {<br>
log("\n\n\n-------ON REPLY ROUTE FIX NATED CONTACT-------\n\n\n");<br> search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');<br> fix_nated_contact();<br>
}<br><br>}<br><br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 8:19 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
<tt>Move to the "local" and "b2b_reply" routes only the part
regarding insertion of RTPproxy.<br>
<br>
Regards,<br>
</tt><div class="im">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<br></div><div><div class="h5">
On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:
<blockquote type="cite">Thanks for the reply, I will try that for sure :)<br>
<br>
Just to clarify, so whatever I had on request route and reply
route (including rtp proxy and nathelper methods) should be
written on b2b_request and b2b_reply, right ?<br>
<br>
<div class="gmail_quote">On Tue, Jul 10, 2012 at 3:59 PM,
Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"> <tt>Hi Dinusha,<br>
<br>
How I see it is: do LB, after LB, trigger B2B with
REFER-handling scenario, and on the outbound part of b2b
(using local route for INVITE and b2b_reply for incoming
replies) insert rtpproxy. <br>
<br>
Of course, I assume that LB and B2B are on the same
instance of OpenSIPS.<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div> <br>
On 07/06/2012 06:44 PM, Dinusha Kannangara wrote: </div>
</div>
<blockquote type="cite">
<div>
<div>Hi all,<br>
<br>
I currently have my opensips configured with a
rtpproxy and uses the nathelper module and everything
seem to be working fine.<br>
<br>
Now, I have a new requirement where my opensips should
have to handle REFER messages generated from a media
server and I'm not sure what I should do.<br>
<br>
I've seen that b2bua module is capable of this and I
also had a look at the example done on <a href="http://opensips.org" target="_blank">opensips.org</a>.<br>
<br>
Here's my scenario,<br>
<br>
User1(softphone) calls opensips server and opensips do
load balancing and redirect the call to a Media
Server. Then, Media Server will send a REFER message
to opensips specifying a refer-to User2(another
softphone) and the media server should remove itself
from the call and let User1 and User2 connect to each
other through opensips.<br>
<br>
Here are my questions :<br>
<br>
1) The rtpproxy module re-writes SDP and how does this
affect if I use b2bua module to handle REFER messages
?<br>
2) Will the work done by nathelper and rtpproxy be
undone if I call b2b_init_request on the initial
INVITE ?<br>
3) Do I have to have a separate IP for b2bua server or
is it ok to run it on the same ip which the opensips
is running ?<br>
4) I have seen some people block the INVITE's coming
from b2bua server IP at initial INVITE.. do I have to
do this too ?<br>
<br>
Thank You, :)<br>
<br>
Regards, <br>
Dinusha. <br>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
</blockquote>
</div></div></div>
</blockquote></div><br>