I have not looked at your invalid CSeq error, but since you are using pacemaker, you might find this resource agent useful. Here is an example of how to use it:<div><br></div><div><p class="MsoNormal">primitive FreeSWITCH ocf:fssolutions:FreeSWITCH \</p>
<p class="MsoNormal"> params
ips="eth0/<a href="http://217.160.21.196/26:eth1/217.160.21.197/26">217.160.21.196/26:eth1/217.160.21.197/26</a>"
user="freeswitch" group="freeswitch" \</p>
<p class="MsoNormal"> op monitor
interval="3s" role="Master" on-fail="restart" depth="0" \</p>
<p class="MsoNormal"> op monitor
interval="10s" role="Slave" on-fail="restart" depth="0" \</p>
<p class="MsoNormal"> op start
interval="0" timeout="30" \</p>
<p class="MsoNormal"> op stop
interval="0" timeout="60"</p>
<p class="MsoNormal">ms FreeSWITCH-MS FreeSWITCH \</p>
<p class="MsoNormal"> meta
master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" \</p>
<p class="MsoNormal">
notify="false" target-role="Master"</p>
<p class="MsoNormal">location FreeSWITCH-MS-on-ha02 FreeSWITCH-MS 50:
<a href="http://ha02.bkw.org">ha02.bkw.org</a></p>
<p class="MsoNormal">location FreeSWITCH-MS-on-ha01 FreeSWITCH-MS 50:
<a href="http://ha01.bkw.org">ha01.bkw.org</a></p>
<p class="MsoNormal">property $id="cib-bootstrap-options" \</p>
<p class="MsoNormal">
dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \</p>
<p class="MsoNormal">
cluster-infrastructure="corosync" \</p>
<p class="MsoNormal">
expected-quorum-votes="2" \</p>
<p class="MsoNormal">
stonith-enabled="false" \</p>
<p class="MsoNormal">
no-quorum-policy="ignore" \</p>
<p class="MsoNormal">
last-lrm-refresh="1347305291"</p>
<p class="MsoNormal">rsc_defaults $id="rsc-options" \</p>
<p class="MsoNormal">
resource-stickiness="100"</p><div><br></div><div><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 12:03 AM, Rajkumar K <span dir="ltr"><<a href="mailto:rajprithiv88@gmail.com" target="_blank">rajprithiv88@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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<span class="HOEnZb"><font color="#888888"><br>
Rajkumar<br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Eliot Gable<br><br>"We do not inherit the Earth from our ancestors: we borrow it from our children." ~David Brower <br><br>"I decided the words were too conservative for me. We're not borrowing from our children, we're stealing from them--and it's not even considered to be a crime." ~David Brower<br>
<br>"Esse oportet ut vivas, non vivere ut edas." (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero<br>
</div></div>