Hi Dinusha,
What you have in route[1] has to go into local route. And from
onreply_route, to the b2b_reply_route :).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 07/12/2012 03:13 PM, Dinusha Kannangara wrote:
Thank you for the quick reply :) and the REFER scenario is working
fine without rtp.
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.
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.
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.
route
{
.....
if(is_method("INVITE"))
{
do load balancing
route(1);
}
}
route[1]
{
.....
.....
if( is_method("INVITE"))
{
engage_rtpproxy();
}
else if( is_method("BYE" || "CANCEL"))
{
unforce_rtpproxy();
}
}
onreply_route[1]
{
if (isbflagset(6))
{
log("\n\n\n-------ON REPLY ROUTE FIX NATED
CONTACT-------\n\n\n");
search_append('Contact:.*sip:[^>[:cntrl:]]*', ';nat=yes');
fix_nated_contact();
}
}
On Wed, Jul 11, 2012 at 8:19 PM, Bogdan-Andrei Iancu
<[email protected] <mailto:[email protected]>> wrote:
Move to the "local" and "b2b_reply" routes only the part regarding
insertion of RTPproxy.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 07/11/2012 05:21 PM, Dinusha Kannangara wrote:
Thanks for the reply, I will try that for sure :)
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 ?
On Tue, Jul 10, 2012 at 3:59 PM, Bogdan-Andrei Iancu
<[email protected] <mailto:[email protected]>> wrote:
Hi Dinusha,
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.
Of course, I assume that LB and B2B are on the same instance
of OpenSIPS.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 07/06/2012 06:44 PM, Dinusha Kannangara wrote:
Hi all,
I currently have my opensips configured with a rtpproxy and
uses the nathelper module and everything seem to be working
fine.
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.
I've seen that b2bua module is capable of this and I also
had a look at the example done on opensips.org
<http://opensips.org>.
Here's my scenario,
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.
Here are my questions :
1) The rtpproxy module re-writes SDP and how does this
affect if I use b2bua module to handle REFER messages ?
2) Will the work done by nathelper and rtpproxy be undone if
I call b2b_init_request on the initial INVITE ?
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 ?
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 ?
Thank You, :)
Regards,
Dinusha.
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users