<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2><A 
href="http://www.clusterlabs.org/wiki/Documentation">http://www.clusterlabs.org/wiki/Documentation</A></FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=Avi@aMarcus.com href="mailto:Avi@aMarcus.com">Avi Marcus</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users Help</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 02, 2011 2:09 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] 
  FreeSWITCH &amp; Heartbeat / Pacemaker - Please Help setting up</DIV>
  <DIV><BR></DIV>
  <DIV dir=ltr>a) Sounds great. I've googled several times. Where are the docs 
  that you suggest I start with?&nbsp;
  <DIV>b) Even so, it's been partially documented on the FreeSWITCH wiki and 
  would be great to be finished.</DIV>
  <DIV>-Avi<BR><BR>
  <DIV class=gmail_quote>On Sun, Jan 2, 2011 at 8:57 PM, Madovsky <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:infos@madovsky.org">infos@madovsky.org</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV bgcolor="#ffffff">
    <DIV><FONT size=2>Avi,</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>I think this thread is more related to 
    HB/Pacemaker.</FONT></DIV>
    <DIV><FONT size=2>they have a lot of doc of how to create a 
    cluster.</FONT></DIV>
    <DIV><FONT size=2>Maybe go to check it, because as I said to you you 
    can't</FONT></DIV>
    <DIV><FONT size=2>build a cluster with only a thread in 
    Freeswitchy</FONT></DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
      <DIV class=im>
      <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
      <DIV style="FONT: 10pt arial; BACKGROUND: #e4e4e4"><B>From:</B> <A 
      title=Avi@aMarcus.com href="mailto:Avi@aMarcus.com" target=_blank>Avi 
      Marcus</A> </DIV>
      <DIV style="FONT: 10pt arial"><B>To:</B> <A 
      title=freeswitch-users@lists.freeswitch.org 
      href="mailto:freeswitch-users@lists.freeswitch.org" 
      target=_blank>FreeSWITCH Users Help</A> </DIV></DIV>
      <DIV class=im>
      <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 02, 2011 10:38 
      AM</DIV>
      <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] 
      FreeSWITCH &amp; Heartbeat / Pacemaker - Please Help setting up</DIV>
      <DIV><BR></DIV></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV dir=ltr>Yes, yes:&nbsp;fs_cli -x "sofia recover" 
      I&nbsp;understand&nbsp;the freeswitch parts. 
      <DIV>Now how does that get set up with heartbeat/pacemaker?</DIV>
      <DIV><BR></DIV>
      <DIV>You seem to assume I have a working pacemaker understanding, which I 
      do not. I wouldn't mind learning about it *if I saw any docs that made 
      sense.*</DIV>
      <DIV>-Avi<BR><BR>
      <DIV class=gmail_quote>On Sun, Jan 2, 2011 at 12:31 PM, Steven Ayre <SPAN 
      dir=ltr>&lt;<A href="mailto:steveayre@gmail.com" 
      target=_blank>steveayre@gmail.com</A>&gt;</SPAN> wrote:<BR>
      <BLOCKQUOTE 
      style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
      class=gmail_quote>It's an API command that you can run via ESL. You can 
        do that from a<BR>script using fs_cli and its -x/--execute 
        option.<BR><BR>Something like this:<BR><BR>fs_cli --host=otherhost 
        --password=secretpasswd --execute="sofia recover"<BR><BR>-Steve<BR>
        <DIV>
        <DIV></DIV>
        <DIV><BR><BR>On 2 January 2011 09:43, Avi Marcus &lt;<A 
        href="mailto:Avi@amarcus.com" target=_blank>Avi@amarcus.com</A>&gt; 
        wrote:<BR>&gt; Thanks, I noticed the -nonat already.<BR>&gt; What do you 
        mean by running sofia recover from my init script? I<BR>&gt; 
        don't&nbsp;understand&nbsp;how that would be triggered by 
        heartbeat/pacemaker. Any<BR>&gt; explanatory docs on the issue would be 
        nice, but everything I've seen was<BR>&gt; explaining exact parts and 
        nothing ever seemed to explain the general syntax<BR>&gt; of 
        everything.<BR>&gt; Does anyone have a working example that they can 
        wikify and explain?<BR>&gt; Thanks,<BR>&gt; Avi<BR>&gt;<BR>&gt; On Sun, 
        Jan 2, 2011 at 4:06 AM, Seven Du &lt;<A 
        href="mailto:dujinfang@gmail.com" 
        target=_blank>dujinfang@gmail.com</A>&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt; 
        the wiki page already said you can start the spare FS ahead to 
        speed<BR>&gt;&gt; switch over up.<BR>&gt;&gt;<BR>&gt;&gt; it means if 
        you use ip_nonlocal_bind and start the spare FS ahead, you<BR>&gt;&gt; 
        only need to run sofia recover in you init script without waiting 
        for<BR>&gt;&gt; the actually FS start process.<BR>&gt;&gt;<BR>&gt;&gt; 
        On Sun, Jan 2, 2011 at 7:58 AM, Steven Ayre &lt;<A 
        href="mailto:steveayre@gmail.com" 
        target=_blank>steveayre@gmail.com</A>&gt; wrote:<BR>&gt;&gt; &gt; 1) It 
        seems freeswitch takes 8 seconds to restart. So if it 
        crashes<BR>&gt;&gt; &gt; (unlikely) calls 
        should&nbsp;immediately&nbsp;get shunted over to the other 
        box.<BR>&gt;&gt; &gt; How<BR>&gt;&gt; &gt; do I set that up?<BR>&gt;&gt; 
        &gt;<BR>&gt;&gt; &gt; Just a tip, I start fs with -nonat and find that 
        makes it start faster.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Steve on 
        iPhone<BR>&gt;&gt; &gt; On 1 Jan 2011, at 20:20, Avi Marcus 
        &lt;Avi@aMarcus.com&gt; wrote:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Hi - 
        I'm setting up 2 parallel computers for a HA setup. (low volume 
        so<BR>&gt;&gt; &gt; far,<BR>&gt;&gt; &gt; no need to load 
        balance.)<BR>&gt;&gt; &gt; I already have heartbeat able to grab the 
        public IP if the first box<BR>&gt;&gt; &gt; goes<BR>&gt;&gt; &gt; down, 
        but since I'm basically completely unfamiar with pacemaker, 
        I'd<BR>&gt;&gt; &gt; like<BR>&gt;&gt; &gt; some help.<BR>&gt;&gt; &gt; 
        I'd imagine I'm not the only one doing this, there should be no 
        reason<BR>&gt;&gt; &gt; for<BR>&gt;&gt; &gt; me to recreate the 
        wheel.<BR>&gt;&gt; &gt; Info should be on:&nbsp;<A 
        href="http://wiki.freeswitch.org/wiki/Freeswitch_HA" 
        target=_blank>http://wiki.freeswitch.org/wiki/Freeswitch_HA</A><BR>&gt;&gt; 
        &gt; Specifically:<BR>&gt;&gt; &gt; 1) It seems freeswitch takes 8 
        seconds to restart. So if it crashes<BR>&gt;&gt; &gt; (unlikely) calls 
        should&nbsp;immediately&nbsp;get shunted over to the other 
        box.<BR>&gt;&gt; &gt; How<BR>&gt;&gt; &gt; do I set that up?<BR>&gt;&gt; 
        &gt; 2) How do I automatically trigger a sofia recover? I know via 
        commanline<BR>&gt;&gt; &gt; it's "fs_cli -x "sofia recover" but where do 
        I tell pacemaker to do<BR>&gt;&gt; &gt; that?<BR>&gt;&gt; &gt; And I 
        suppose a reload_xml before (maybe after?) is a good idea, 
        too.<BR>&gt;&gt; &gt; Also, can I put&nbsp;&lt;param name="track-calls" 
        value="true"/&gt; in a global<BR>&gt;&gt; &gt; file,<BR>&gt;&gt; &gt; or 
        does it need to be in the actual profile files?<BR>&gt;&gt; &gt; And 
        anything else I may be overlooking.<BR>&gt;&gt; &gt; Thanks 
        guys!<BR>&gt;&gt; &gt; -Avi Marcus<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; 
        _______________________________________________<BR>&gt;&gt; &gt; 
        FreeSWITCH-users mailing list<BR>&gt;&gt; &gt; <A 
        href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
        target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt;&gt; &gt; 
        <A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt;&gt; 
        &gt; UNSUBSCRIBE:<A 
        href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt;&gt; 
        &gt; <A href="http://www.freeswitch.org" 
        target=_blank>http://www.freeswitch.org</A><BR>&gt;&gt; &gt;<BR>&gt;&gt; 
        &gt; _______________________________________________<BR>&gt;&gt; &gt; 
        FreeSWITCH-users mailing list<BR>&gt;&gt; &gt; <A 
        href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
        target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt;&gt; &gt; 
        <A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt;&gt; 
        &gt; UNSUBSCRIBE:<A 
        href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt;&gt; 
        &gt; <A href="http://www.freeswitch.org" 
        target=_blank>http://www.freeswitch.org</A><BR>&gt;&gt; &gt;<BR>&gt;&gt; 
        &gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; --<BR>&gt;&gt; 
        About: <A href="http://about.me/dujinfang" 
        target=_blank>http://about.me/dujinfang</A><BR>&gt;&gt; Blog: <A 
        href="http://www.dujinfang.com" 
        target=_blank>http://www.dujinfang.com</A><BR>&gt;&gt; Proj:&nbsp; <A 
        href="http://www.freeswitch.org.cn" 
        target=_blank>http://www.freeswitch.org.cn</A><BR>&gt;&gt;<BR>&gt;&gt; 
        _______________________________________________<BR>&gt;&gt; 
        FreeSWITCH-users mailing list<BR>&gt;&gt; <A 
        href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
        target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt;&gt; <A 
        href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt;&gt; 
        UNSUBSCRIBE:<A 
        href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt;&gt; 
        <A href="http://www.freeswitch.org" 
        target=_blank>http://www.freeswitch.org</A><BR>&gt;<BR>&gt;<BR>&gt; 
        _______________________________________________<BR>&gt; FreeSWITCH-users 
        mailing list<BR>&gt; <A 
        href="mailto:FreeSWITCH-users@lists.freeswitch.org" 
        target=_blank>FreeSWITCH-users@lists.freeswitch.org</A><BR>&gt; <A 
        href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>&gt; 
        UNSUBSCRIBE:<A 
        href="http://lists.freeswitch.org/mailman/options/freeswitch-users" 
        target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR>&gt; 
        <A href="http://www.freeswitch.org" 
        target=_blank>http://www.freeswitch.org</A><BR>&gt;<BR>&gt;<BR><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></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></DIV>
      <P></P>
      <HR>

      <DIV class=im>
      <P></P>_______________________________________________<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></DIV>
      <P></P></BLOCKQUOTE></DIV><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></DIV></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>FreeSWITCH-users 
  mailing 
  list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>