[Freeswitch-users] HA: Starting FreeSWITCH empties the calls table?

Anthony Minessale anthony.minessale at gmail.com
Thu Nov 3 21:57:35 MSK 2011


it deletes based on hostname= so set the hostname different on the 2 boxes
or use the switchname param in switch.conf.xml to give difft virtual
hostnames



On Thu, Nov 3, 2011 at 7:45 AM, peely <freeswitch at peely.com> wrote:

> Hi,
>
> I've been playing about with the HA setup, and have set something up
> similar
> to the HA page on the Wiki with two FS boxes using MySQL Master <> Master
> replication and FreeSWITCH on the secondary box listening on un-mounted
> IPs.
>
> This bit all works very nicely and when both boxes are up I can "fsctl
> crash" the current active box, then mount the IPs on the soon-to-be-live
> box
> then issue "sofia recover", it's all very impressive!
>
> What I notice though is that when I bring the "crashed" box back up,
> starting the freeswitch process causes all calls in the database to be
> removed which are then replicated across to the active box's database, if I
> issue a "show calls count" on both boxes the figure goes to 0 immediately
> after the freeswitch process is started on the secondary.
>
> >From what I can see this doesn't affect things on the newly active box, a
> "status" shows channels in use, much greater than the number of calls,
> which
> gradually picks up again.
>
> I'm guessing freeswitch issues something like 'delete from calls' when it
> starts? For HA setups is this an appropriate thing to do?
>
> For reference, I'm currently running FreeSWITCH Version 1.0.head
> (git-fa3fa30 2011-10-07 11-20-36 -0500).
>
>
> Cheers,
>
>
>
> Neil.
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/HA-Starting-FreeSWITCH-empties-the-calls-table-tp6958891p6958891.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111103/72a62495/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list