[Freeswitch-users] Freeswitch and Opensips

Miha miha at softnet.si
Tue Apr 17 14:10:00 MSD 2012


Hi Sherif,

I hope I can give you a bit of help as my knowledge of Opensips is not 
quite good:)

First I have configured opensips as is written on FS wiki 
(http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS). Did 
you fallow steps? This shoud work and opensips should load balacing 
calls to FS box.

Than I have made like this:

if (is_method("INVITE")) {
             if($rU=~"^[0]+"){
                 if (!load_balance("1","pstn","1")) {
                         send_reply("503","Service Unavailable");
                         exit;
                 }
             }
             else{
             rewritehostport("xxx.xxx.xxx.xxx:5060");
             }


         }


Regards,
Miha

On 4/17/2012 11:47 AM, Sherif Omran wrote:
> Hi Miha,
>
> I have a similar problem and would appreciate if you could give me a clue.
> I ve opensips as sbc and FS but i wonder why calls do not reach fs box.
>
> Could you please help me in configuring opensips with freeswitch as u 
> made it?
>
> Thank u in advance
>
> regards,
> Sherif
>
> --- On *Tue, 4/17/12, Miha /<miha at softnet.si>/* wrote:
>
>
>     From: Miha <miha at softnet.si>
>     Subject: [Freeswitch-users] Freeswitch and Opensips
>     To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>     Date: Tuesday, April 17, 2012, 11:41 AM
>
>     Hi to all,
>
>     I have configured opensips that works like load_balancer (wiki on
>     FS page).
>     So, we have SBC, trunk is made to Opensips, than opensips is
>     load_balacing to FSs.
>     When you call from FS, call is going to Opensips, then opensips
>     redirect the call to SBC, if call must go outside.
>
>     My question:
>
>     FSs boxes are all the same (same dialplan, directory
>     configuration, etc.). What happens if call is made to a user,
>     which is registered on one of the FS box? I guess I must change
>     dialplan and set that all trafic FS send to opensips (not
>     internally), because if someone calls to a local user, but user is
>     registered on other FS box, FS will behave as user is not registered.
>
>     So, will opensips know which user is registered on which FS box
>     when opensips will be doing load_balacing?
>
>     Thanks for explenation.
>
>     Regards,
>     Miha
>
>     -----Inline Attachment Follows-----
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org </mc/compose?to=consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     </mc/compose?to=FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120417/ae8474cd/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list