FreeSWITCH in cluster
Hi, I want configure two FreeSWITCH servers as cluster. As I understand, I need: - Configure one core DB (PostgreSQL) for each FreeSWITCH instances. - Add two A records in DNS to resolve domain name and load balancing. *Scheme, 2 FS servers and one DB.* FS-1 server 192.168.0.1 Core-DB server 192.168.0.100 FS-2 server 192.168.0.2 *Add two A records in DNS* mydomain.com. 43200 IN A 192.168.0.1 mydomain.com. 43200 IN A 192.168.0.2 I expect, FreeSWITCH instances will mirror each other in this configuration. So, if Bob register on 192.168.0.1 server, and Alice register on 192.168.0.2, they can call each other like local users. Also, in this case, SIP messages from Bob during the call session will sending to any of nodes, depend on DNS resolve. Am I right? Is this correct way to build cluster? Please direct me in right way. BR, Dmitry
Hello Dmitry, I guess the below link with help you: http://saevolgo.blogspot.in/2012/07/freeswitch-with-sip-users-in-mysql-mod.h... Thanks, Chandra. On Sun, Apr 10, 2016 at 1:21 PM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hi,
I want configure two FreeSWITCH servers as cluster.
As I understand, I need: - Configure one core DB (PostgreSQL) for each FreeSWITCH instances. - Add two A records in DNS to resolve domain name and load balancing.
*Scheme, 2 FS servers and one DB.*
FS-1 server 192.168.0.1 Core-DB server 192.168.0.100 FS-2 server 192.168.0.2
*Add two A records in DNS*
mydomain.com. 43200 IN A 192.168.0.1 mydomain.com. 43200 IN A 192.168.0.2
I expect, FreeSWITCH instances will mirror each other in this configuration.
So, if Bob register on 192.168.0.1 server, and Alice register on 192.168.0.2, they can call each other like local users. Also, in this case, SIP messages from Bob during the call session will sending to any of nodes, depend on DNS resolve.
Am I right? Is this correct way to build cluster?
Please direct me in right way.
BR, Dmitry
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you Chandra! Yes, in my case I need use external DB for xml_curl. Main different, I don't want use SIP Proxy as load balancer, I want balance calls with DNS. And I worrying about FreeSWITHes behavior. Imagine one steps, Bob register and make a call: 1. Bob send REGISTER to @mydomain.com. DNS will resolve @mydomain.com to 192.168.0.1 (FS-1 server). Ok, registered! 2. Bob send INVITE to @mydomain.com. DNS will/may resolve @mydomain.com next time to second node 192.168.0.2 (FS-2 server). 3. Bob send BYE to @mydomain.com. DNS will/may resolve @mydomain.com next time to first node again 192.168.0.1 (FS-1 server). I don't know FS behavior on 2 and 3 steps Step 2. FS on FS-2 server must to know Bob, which registered on FS-1 server Step 3. FS on FS-1 server must inform FS-2 to finish the Bob's call BR, Dmitry On 04/10/2016 12:04 PM, Chandramouli P wrote:
Hello Dmitry,
I guess the below link with help you:
http://saevolgo.blogspot.in/2012/07/freeswitch-with-sip-users-in-mysql-mod.h...
Thanks, Chandra.
On Sun, Apr 10, 2016 at 1:21 PM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hi,
I want configure two FreeSWITCH servers as cluster.
As I understand, I need: - Configure one core DB (PostgreSQL) for each FreeSWITCH instances. - Add two A records in DNS to resolve domain name and load balancing.
*Scheme, 2 FS servers and one DB.*
FS-1 server 192.168.0.1 Core-DB server 192.168.0.100 FS-2 server 192.168.0.2
*Add two A records in DNS*
mydomain.com <http://mydomain.com>. 43200 IN A 192.168.0.1 mydomain.com <http://mydomain.com>. 43200 IN A 192.168.0.2
I expect, FreeSWITCH instances will mirror each other in this configuration.
So, if Bob register on 192.168.0.1 server, and Alice register on 192.168.0.2, they can call each other like local users. Also, in this case, SIP messages from Bob during the call session will sending to any of nodes, depend on DNS resolve.
Am I right? Is this correct way to build cluster?
Please direct me in right way.
BR, Dmitry
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@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@lists.freeswitch.org <mailto:FreeSWITCH-users@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Chandramouli P
-
Dmitry Mordovin