[Freeswitch-users] Websocket Load Balancing freeswitch

Anthony Minessale anthony.minessale at gmail.com
Wed Jun 17 00:07:08 MSD 2015


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
☎ 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/fc082e73/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/fc082e73/attachment-0001.png 


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