<div dir="ltr">Hi all,<br><br>I'm working in a HA in Freeswitch v1.8, but i found a lot of troubles for do that, i follow the guide that I found here <a href="https://freeswitch.org/confluence/display/FREESWITCH/High+Availability">https://freeswitch.org/confluence/display/FREESWITCH/High+Availability</a> , but i can't solve my problem, following I will present my configuration<br><br>I use keepalived to solve the problem with the floating IP, now the IP starts in master, when that goes down, the IP change to the slave, and when the master goes up, the IP comes other time to him, in that part I don't have problems.<br><br>Then I use PostgreSQL for the database that i need to recover calls, in bot servers i have the same configuration of postgresql<br><br>----------------------------------------------------------------------------------------------------------<br> /var/lib/pgsql/data/postgresql.conf<br> <br> listen_addresses = '*'<br> <br> and in<br> <br>  /var/lib/pgsql/data/pg_hba.conf<br>  <br># TYPE  DATABASE        USER            ADDRESS                 METHOD<br><br># "local" is for Unix domain socket connections only<br>local   all             all                                     md5<br># IPv4 local connections:<br>host    all             all             all                     md5<br># IPv6 local connections:<br>host    all             all             ::1/128                 md5<br><br>----------------------------------------------------------------------------------------------------------------<br><br>Both databases are accessible both from freeswitch and from the other server<br><br><br>Then that is my configuration in master<br>--------------------------------------------------------------------------------------------------------------------<br>In /usr/local/freeswitch/conf/sip_profiles/internal.xml and in /usr/local/freeswitch/conf/sip_profiles/external.xml i have<br><br><br>    <param name="track-calls" value="true"/><br>    <br>/usr/local/freeswitch/conf/autoload_configs/switch.conf.xml<br><br>    <param name="core-db-dsn" value="pgsql://hostaddr= ip_master dbname=freeswitch user=postgres password='password' options='-c client_min_messages=NOTICE'  application_name='freeswitch'"/><br>    <param name="core-recovery-db-dsn" value="pgsql://hostaddr= ip_slave dbname=freeswitch user=postgres password='password' options='-c client_min_messages=NOTICE'  application_name='freeswitch'"/><br><br>----------------------------------------------------------------------------------<br><br>That is the configuration in slave<br>In /usr/local/freeswitch/conf/sip_profiles/internal.xml and in /usr/local/freeswitch/conf/sip_profiles/external.xml i have<br>    <param name="track-calls" value="true"/><br>   <br>/usr/local/freeswitch/conf/autoload_configs/switch.conf.xml<br><br>    <param name="core-db-dsn" value="pgsql://hostaddr= ip_slave dbname=freeswitch user=postgres password='password' options='-c client_min_messages=NOTICE'  application_name='freeswitch'"/><br>    <param name="core-recovery-db-dsn" value="pgsql://hostaddr= ip_master dbname=freeswitch user=postgres password='password' options='-c client_min_messages=NOTICE'  application_name='freeswitch'"/><br><br>--------------------------------------------------------------------------------------------------------------<br>When i make a call, i can see it in the local database of the server that perfors it, but no in the other<br><br>when i goes to fs_cli and make a db_cache status i recieved that<br><br>------------------------------------------------------------------------------------------------------<br><br><br>freeswitch@freeswitch> db_cache status<br>db="freeswitch",type="core_db"<br>        Type: CORE_DB<br>        Last used: 1<br>        Total used: 5372<br>        Flags: Unlocked, Detached(0)<br>        Creator: sofia_glue.c:2499<br>        Last User: sofia_glue.c:2535<br>db="hostaddr= ip dbname=freeswitch user=postgres password=",type="odbc"<br>        Type: PGSQL<br>        Last used: 0<br>        Total used: 6477<br>        Flags: Unlocked, Detached(0)<br>        Creator: src/switch_console.c:255<br>        Last User: src/switch_console.c:255<br>db="fifo",type="core_db"<br>        Type: CORE_DB<br>        Last used: 64648<br>        Total used: 1<br>        Flags: Locked, Attached(1)<br>        Creator: src/switch_core_sqldb.c:2058<br>        Last User:<br>db="freeswitch",type="core_db"<br>        Type: CORE_DB<br>        Last used: 64650<br>        Total used: 2<br>        Flags: Locked, Attached(1)<br>        Creator: sofia_glue.c:2268<br>        Last User: src/switch_core_sqldb.c:2058<br>db="freeswitch",type="core_db"<br>        Type: CORE_DB<br>        Last used: 64650<br>        Total used: 2<br>        Flags: Locked, Attached(1)<br>        Creator: sofia_glue.c:2268<br>        Last User: src/switch_core_sqldb.c:2058<br>db="hostaddr= ip dbname=freeswitch user=postgres password=",type="odbc"<br>        Type: PGSQL<br>        Last used: 64650<br>        Total used: 2<br>        Flags: Locked, Attached(1)<br>        Creator: src/switch_core_sqldb.c:3375<br>        Last User: src/switch_core_sqldb.c:2058<br>6 total. 4 in use.<br><br><br>---------------------------------------------------------------------------------------------------------<br>With this information, i think the problem is with the "core-recovery-db-dsn" but i can solve it, someone know how to solve this issue?<br></div>