Shared core database between 2 Freeswitches

Status
Not open for further replies.

babak

Member
Dec 4, 2016
36
3
8
50
I installed Fusionpbx with install script on one virtual machine.
Set the config to save internal freeswitch database in postgresql.everything is ok intenal database tables was created.
I copied virtual machine and changed its IP address.
In second virtual machine I set core database to IP and password of first virtual machine and set same switchname in switch.conf.xml
But in second virtual machine even freeswitch didnot start.
What is problem? Is there any firwal rules closing database access from another IP except 127.0.0.1 ?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,038
556
113
@babak Yes, other things must be considered for example pg_hba.conf.

If you are going to pint multiple instances to one DB take a look at using haproxy, its very simple to set up.
 

babak

Member
Dec 4, 2016
36
3
8
50
In pg_hba.conf I changed my IP :
host all all 10.10.10.0/24 md5
In postgresql.conf I put my IP:
listen_addresses='10.10.10.10'
after restart it was working.
also changed config.php config.lua to use first virtual machine databases


@DigitalDaz
now I have 2 virtual machine with 2 IP addresses they are like 2 separate tenant , users are separate...
I want to sip phones can register in both of them . what should I do ?
 
Last edited:

babak

Member
Dec 4, 2016
36
3
8
50
I used same domain and now I can register sipphones in both servers and see them in other server.
but if I call a sip phone registered in another server it bridges it directly not through second server.

what should I do?
 
Last edited:
Status
Not open for further replies.