Hi,<div><br></div><div>Thanks for your response.. i got the solution it was the timing mismatch between the two servers...</div><div>Thanks for your time Eliot...</div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">
On Sat, Nov 10, 2012 at 4:33 AM, Eliot Gable <span dir="ltr">&lt;<a href="mailto:egable+freeswitch@gmail.com" target="_blank">egable+freeswitch@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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=&quot;eth0/<a href="http://217.160.21.196/26:eth1/217.160.21.197/26" target="_blank">217.160.21.196/26:eth1/217.160.21.197/26</a>&quot;
user=&quot;freeswitch&quot; group=&quot;freeswitch&quot; \</p>

<p class="MsoNormal">        op monitor
interval=&quot;3s&quot; role=&quot;Master&quot; on-fail=&quot;restart&quot; depth=&quot;0&quot; \</p>

<p class="MsoNormal">        op monitor
interval=&quot;10s&quot; role=&quot;Slave&quot; on-fail=&quot;restart&quot; depth=&quot;0&quot; \</p>

<p class="MsoNormal">        op start
interval=&quot;0&quot; timeout=&quot;30&quot; \</p>

<p class="MsoNormal">        op stop
interval=&quot;0&quot; timeout=&quot;60&quot;</p>

<p class="MsoNormal">ms FreeSWITCH-MS FreeSWITCH \</p>

<p class="MsoNormal">        meta
master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot;
clone-node-max=&quot;1&quot; \</p>

<p class="MsoNormal">               
notify=&quot;false&quot; target-role=&quot;Master&quot;</p>

<p class="MsoNormal">location FreeSWITCH-MS-on-ha02 FreeSWITCH-MS 50:
<a href="http://ha02.bkw.org" target="_blank">ha02.bkw.org</a></p>

<p class="MsoNormal">location FreeSWITCH-MS-on-ha01 FreeSWITCH-MS 50:
<a href="http://ha01.bkw.org" target="_blank">ha01.bkw.org</a></p>

<p class="MsoNormal">property $id=&quot;cib-bootstrap-options&quot; \</p>

<p class="MsoNormal">       
dc-version=&quot;1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14&quot; \</p>

<p class="MsoNormal">       
cluster-infrastructure=&quot;corosync&quot; \</p>

<p class="MsoNormal">       
expected-quorum-votes=&quot;2&quot; \</p>

<p class="MsoNormal">       
stonith-enabled=&quot;false&quot; \</p>

<p class="MsoNormal">       
no-quorum-policy=&quot;ignore&quot; \</p>

<p class="MsoNormal">       
last-lrm-refresh=&quot;1347305291&quot;</p>

<p class="MsoNormal">rsc_defaults $id=&quot;rsc-options&quot; \</p>

<p class="MsoNormal">       
resource-stickiness=&quot;100&quot;</p><div><br></div><div><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 7, 2012 at 12:03 AM, Rajkumar K <span dir="ltr">&lt;<a href="mailto:rajprithiv88@gmail.com" target="_blank">rajprithiv88@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">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 &quot;sofia profile internal restart&quot; and &quot;sofia recover&quot;. 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 &quot;sofia profile internal restart&quot; and &quot;sofia recover&quot;. Also the server sends invite request to the clients But it ends in NORMAL_TEMPORARY_FAILURE. Wireshark log says Client is responding with &quot;Invalid CSeq&quot; for the Server&#39;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&#39;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><font color="#888888"><br>
Rajkumar<br>
</font></span><br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Eliot Gable<br><br>&quot;We do not inherit the Earth from our ancestors: we borrow it from our children.&quot; ~David Brower <br>
<br>&quot;I decided the words were too conservative for me. We&#39;re not borrowing from our children, we&#39;re stealing from them--and it&#39;s not even considered to be a crime.&quot; ~David Brower<br>
<br>&quot;Esse oportet ut vivas, non vivere ut edas.&quot; (Thou shouldst eat to live; not live to eat.) ~Marcus Tullius Cicero<br>
</font></span></div></div>
<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>