[OpenSIPS-Users] Need Help on Handling REFER Messages

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jul 13 17:13:46 CEST 2012


Hi Dinusha,

The dialog module cannot be used in the same time with the b2b module in 
the same instance. Mainly because the dialog module expects a "proxied 
call" while the b2b acts as end-point (user agent server or client)

Best regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 07/13/2012 10:00 AM, Dinusha Kannangara wrote:
> Hi, thanks for the info :) I did what you have told me and now and rtp 
> seem to be working (I need to do more tests and look at the sip traces 
> - and will let you know if I get into trouble again :P).
>
> There's one problem though, I'm seeing that dialogs are not getting 
> deleted when the call ends (again this works fine when not using b2bua 
> - I'm using dialog module - rr_param did to make this happen)
>
> Thanks again, for the responses and they really helped me a lot :)
>
> On Thu, Jul 12, 2012 at 8:11 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     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
>>     <bogdan at opensips.org <mailto:bogdan at opensips.org>> 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
>>>         <bogdan at opensips.org <mailto:bogdan at opensips.org>> 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
>>>>             Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>>>             http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120713/fe1d70b2/attachment.htm>


More information about the Users mailing list