Infact if kamailio goes down heartbeat restarts it again !! how do I stop heartbeat doing it and let the other node take over the resource!<div><br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 6:05 PM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@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">Hi again,<div><br></div><div>Some progress.. I have configured heartbeat and with the crm option to set kamailio as resource i.e</div>
<div><br></div><div>crm(test-conf)configure# <b>primitive Kamailio lsb::kamailio op monitor interval=15s</b><br>
<br>I can see that if I put the primary node on standby the kamailio instance starts on secondary node ! but this isn&#39;t working other way around e.g If Kamailio crashes the secondary node doesn&#39;t do anything. </div>

<div><br></div><div>I&#39;ve read people that they used sipsak and some piece of code that pings Kamailio and if it fails to respond it triggers to heartbeat. Is there any help on this !</div><div><br></div><div>Regards,</div>

<div>Sammy G.</div><div class="HOEnZb"><div class="h5"><div><br></div><div><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 5:20 PM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@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">OK thanks,<div>I&#39;m trying this all for myself. once I try this, test this, and get something done I will post the tutorial for all.<u> I may need help in this.</u><br>

Regards,</div><div>Sammy</div><div><div><div><br><div class="gmail_quote">
On Mon, Jun 11, 2012 at 5:15 PM, Juha Heinanen <span dir="ltr">&lt;<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>SamyGo writes:<br>
<br>
&gt; Really appreciate that. Would you please like to contribute the whole<br>
&gt; procedure so that everyone knows whats happening here !!<br>
<br>
</div>i&#39;m not able write a tutorial on how to setup and use<br>
heartbeat/pacemaker.  virtual-ip and sip-proxy could be configured<br>
something like this (i haven&#39;t tested it):<br>
<br>
primitive virtual-ip ocf:heartbeat:IPaddr2 params ip=192.75.101.10 broadcast=192.75.101.255 cidr_netmask=24 op monitor interval=15s<br>
<br>
primitive sip-proxy lsb:sip-proxy op monitor interval=15s timeout=15s start-delay=60s<br>
<br>
order virtual-ip-before-sip-proxy mandatory: virtual-ip:start sip-proxy<br>
<br>
colocation sip-proxy-on-virtual-ip inf: sip-proxy virtual-ip<br>
<div><div><br>
-- juha<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>