Hi,<br><br>I am trying to achieve high availability in FreeSWITCH using heartbeat and pacemaker and I am able to switch between the server whenever one of the servers crashes. But the problem is one server is able to recover the calls when im invoking sofia recover, but another server is recovering the call one few times.(Mostly not able to recover).<br>
<br><br>I have primary and secondary server installed in two different machines(centos), the FreeSWITCH instances are always running in both the PCs. I am running heartbeat and pacemaker to monitor the IP or sofia fail-over. A floating IP is configure in heartbeat to reach the active server.<br>
I succeeded in switching between the servers whenever IP or FreeSWITCH and once it reaches the another server it invokes sofia recover to recover the calls.<br><br>Both freeswtich instances are using the same configuration and database is shared using ODBC connectivity.<br>
<br>Problem is:<br><br>Call is made using the primary server, and i did fsctl crash in primary server cli. Heartbeat resource switches to secondary server and it invokes "sofia profile internal restart" and "sofia recover". and it recovers the call. The call gets recovered in 4-5 seconds.<br>
<br>At the same time i will start the freeswitch instance in the primary server. Now if i crash the secondary server using fsctl crash, the resources switches to primary server and it invokes "sofia profile internal restart" and "sofia recover". Also the server sends invite request to the clients But it ends in NORMAL_TEMPORARY_FAILURE. Wireshark log says Client is responding with "Invalid CSeq" for the Server's INVITE request. This happens always with the primary server and very few times primary server is also able to recover the calls. <br>
<br>I have the same configurations in both the servers<br>And also i checked by stopping the heartbeat switching, and crashed the primary server's freeswitch. Then if i start freeswitch again in the same server and invoking sofia recover will recover the calls without any problem.<br>
<br><br>I have also attached the cli logs of primary and secondary servers.<br>I am not able to identify the exact problem in this, Please help me out in this problem. <br><br><br>Thanks<br>Rajkumar<br>