[Freeswitch-users] Websocket Load Balancing freeswitch

Anthony Minessale anthony.minessale at gmail.com
Wed Jun 17 01:27:33 MSD 2015


If you are setting up services like the ones described and don't know about
PROXYs, its probably best to start learning.

We usually have one or both the more popular sip proxy teams at ClueCon
every year.  I think there is even a class on Monday for one of them.

With Verto, you would have to use FS gateways the same way and convert all
the calls to SIP.



On Tue, Jun 16, 2015 at 4:24 PM, Victor Medina <victor.medina at cibersys.com>
wrote:

> Yeap!
>
> But it is also a good choice if one only knows about FS and not other
> servers.
> The other thing is... what if one wants to use Verto? Can we "proxy" verto
> and scale just as we would using a pure websocket aproach?
>
>
>
>
>
> 2015-06-16 16:11 GMT-04:30 Anthony Minessale <anthony.minessale at gmail.com>
> :
>
>> Yes, if you use additional FreeSWITCH servers just for that.  You might
>> not get the same density from that as you might from a proxy but only way
>> to know for sure is a case study.
>>
>>
>> On Tue, Jun 16, 2015 at 3:15 PM, Victor Medina <
>> victor.medina at cibersys.com> wrote:
>>
>>> If you use a front facing pure websocket server (fs) that fowards all
>>> calls to another group of freeswitch servers (udp/tcp) in the backgound,
>>> can't they do recovery? Communication between them is still udp/tcp and
>>> communications with the front is udp/tcp.
>>>
>>> =) im still learning master!
>>>
>>> 2015-06-16 15:37 GMT-04:30 Anthony Minessale <
>>> anthony.minessale at gmail.com>:
>>>
>>>> Incorrect,
>>>>
>>>> The recovery features in FS work on SIP and on Verto but not SIP over
>>>> Websockets.  SIP over Websockets is not possible to recover because the FS
>>>> cannot make an outbound invite to a client who is not connected.  Verto
>>>> actually has special features coded into the protocol for this that are not
>>>> possible with SIP.
>>>>
>>>> Using a PROXY to turn the SIP from Websocket transport to udp is
>>>> probably the easiest.
>>>>
>>>>
>>>>
>>>> On Tue, Jun 16, 2015 at 3:00 PM, Victor Medina <
>>>> victor.medina at cibersys.com> wrote:
>>>>
>>>>> You could also use something like OverSIP which is a proxy
>>>>> specifically design for sip/websocket. It can be put in front of  UDP/Sip
>>>>> servers. it can use DNS/SRV records to load balancing between servers.
>>>>> Kamailio/OpenSips servers are also a great choice.
>>>>>
>>>>> But! As far as i know, Freeswitch can do this also, all without a
>>>>> proxy. You could configure a few fron facing fs servers acting as
>>>>> sip/websocket/proxy and then bypass all communications to background
>>>>> servers. this servers can recieve request in a round robing fashion; sofia
>>>>> can do HA and recover calls.
>>>>>
>>>>> All without leaving Freeswitch.
>>>>>
>>>>> 2015-06-16 14:43 GMT-04:30 Sergey Safarov <s.safarov at gmail.com>:
>>>>>
>>>>>> As a said Anthony, use sip proxy
>>>>>> http://www.slideshare.net/crocodilertc/sip-over-websocket-on-kamailio
>>>>>>
>>>>>> On Tue, Jun 16, 2015 at 9:16 PM, Murugan Pandian <
>>>>>> manpower13.cse at gmail.com> wrote:
>>>>>>
>>>>>>> Anthony
>>>>>>>
>>>>>>> Any link or doc to conver websocket to UDP SIP
>>>>>>>
>>>>>>> On Tue, Jun 16, 2015 at 11:45 PM, Murugan Pandian <
>>>>>>> manpower13.cse at gmail.com> wrote:
>>>>>>>
>>>>>>>> Sergey
>>>>>>>>
>>>>>>>> you mean like this
>>>>>>>>
>>>>>>>>
>>>>>>>>  |---------->FS 1(192.168.1.2:5060)
>>>>>>>>                                                          |
>>>>>>>> SIPJS(WebRTC)---->nginx------------|
>>>>>>>>                                                          |
>>>>>>>>
>>>>>>>>  |----------->FS(192.168.1.3:5060)
>>>>>>>>
>>>>>>>>
>>>>>>>> If like above nginx handle websocket request and UDP connected
>>>>>>>> through FS1(UDP),if i need to connect with fs1 i need public ip here nginx
>>>>>>>> only have public IP(How i can handle UDP  )  because nginx dont support UDP
>>>>>>>> traffic sorry if i am wrong
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jun 16, 2015 at 11:18 PM, Anthony Minessale <
>>>>>>>> anthony.minessale at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Also all the SIP proxies support websockets so you can translate
>>>>>>>>> them to udp SIP.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Jun 16, 2015 at 12:37 PM, Sergey Safarov <
>>>>>>>>> s.safarov at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> When call is arrive to FS1 Nginx and media is proxyed by FS, then
>>>>>>>>>> ip address of FS1 will be sended to WebRTC client for RTP media. Media is
>>>>>>>>>> sended directly to correct FS.
>>>>>>>>>> If media is bypassed, then jedia sended directly to bleg endpoint.
>>>>>>>>>>
>>>>>>>>>> On Tue, Jun 16, 2015, 18:15 Murugan Pandian <
>>>>>>>>>> manpower13.cse at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>         |---------->FS
>>>>>>>>>>>                              (websosked and UDP)       |
>>>>>>>>>>> SIPJS(WebRTC)---->LoadBalancing------------|
>>>>>>>>>>>
>>>>>>>>>>>         |
>>>>>>>>>>>
>>>>>>>>>>>         |----------->FS
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Luis,It's clear to you
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Sergey Safarov ,If i go with NGINX or DNS how to handle UDP
>>>>>>>>>>> traffic
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Jun 16, 2015 at 9:30 AM, Sergey Safarov <
>>>>>>>>>>> s.safarov at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> You can use dns load balancing or simply reverse proxy like
>>>>>>>>>>>> Nginx.
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Jun 16, 2015, 02:27 Murugan Pandian <
>>>>>>>>>>>> manpower13.cse at gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>>      How i can handle load balancing websocket request and how
>>>>>>>>>>>>> to scale FS for WEBRTC
>>>>>>>>>>>>>
>>>>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>>>>> consulting at freeswitch.org
>>>>>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>>>>>
>>>>>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>>>>> http://confluence.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
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>>>> consulting at freeswitch.org
>>>>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>>>>
>>>>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>>>> http://confluence.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
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>>> consulting at freeswitch.org
>>>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>>>
>>>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>>> http://confluence.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
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>> consulting at freeswitch.org
>>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>>
>>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>> http://confluence.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
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>>>>>>>>
>>>>>>>>>http://freeswitch.org/http://cluecon.com/>>>>>>>>> http://twitter.com/FreeSWITCH
>>>>>>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>>>>>>> <http://freeswitch.org/g+>*
>>>>>>>>>
>>>>>>>>> ClueCon Weekly Development Call
>>>>>>>>> [image: ☎] sip:888 at conference.freeswitch.org  [image: ☎]
>>>>>>>>> +19193869900
>>>>>>>>>
>>>>>>>>> https://www.youtube.com/watch?v=9XXgW34t40s
>>>>>>>>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _________________________________________________________________________
>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>> consulting at freeswitch.org
>>>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>>>
>>>>>>>>> Official FreeSWITCH Sites
>>>>>>>>> http://www.freeswitch.org
>>>>>>>>> http://confluence.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
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _________________________________________________________________________
>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>> consulting at freeswitch.org
>>>>>>> http://www.freeswitchsolutions.com
>>>>>>>
>>>>>>> Official FreeSWITCH Sites
>>>>>>> http://www.freeswitch.org
>>>>>>> http://confluence.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
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________________
>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>> consulting at freeswitch.org
>>>>>> http://www.freeswitchsolutions.com
>>>>>>
>>>>>> Official FreeSWITCH Sites
>>>>>> http://www.freeswitch.org
>>>>>> http://confluence.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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>> Víctor E. Medina M.
>>>>> Platform Architect / Chief Infrastructure
>>>>> +58424 291 4561
>>>>> BB #79A8AFA2
>>>>> @VMCibersys
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.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
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>>>
>>>>http://freeswitch.org/http://cluecon.com/>>>> http://twitter.com/FreeSWITCH
>>>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>>>> <http://freeswitch.org/g+>*
>>>>
>>>> ClueCon Weekly Development Call
>>>> [image: ☎] sip:888 at conference.freeswitch.org  [image: ☎] +19193869900
>>>>
>>>> https://www.youtube.com/watch?v=9XXgW34t40s
>>>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.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
>>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>> Víctor E. Medina M.
>>> Platform Architect / Chief Infrastructure
>>> +58424 291 4561
>>> BB #79A8AFA2
>>> @VMCibersys
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.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
>>>
>>
>>
>>
>> --
>> Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>>
>>http://freeswitch.org/http://cluecon.com/>> http://twitter.com/FreeSWITCH
>> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
>> <http://freeswitch.org/g+>*
>>
>> ClueCon Weekly Development Call
>> [image: ☎] sip:888 at conference.freeswitch.org  [image: ☎] +19193869900
>>
>> https://www.youtube.com/watch?v=9XXgW34t40s
>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
>
> --
>
>
>
> Víctor E. Medina M.
> Platform Architect / Chief Infrastructure
> +58424 291 4561
> BB #79A8AFA2
> @VMCibersys
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>



-- 
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*

ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150616/186e3141/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 3053 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150616/186e3141/attachment-0001.png 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list