[Linux-HA] Heartbeat + asterisk / failback
alanr at unix.sh
Wed Oct 5 05:18:01 MDT 2005
Adam Moffett wrote:
> Alan Robertson wrote:
>> Adam Moffett wrote:
>>> I've got my two asterisk PBX's in an Active/passive configuration.
>>> The failover works as I expected. Thing is the auto failback will
>>> disconnect any callers connected to the backup system. I DO want
>>> auto failback, but I would like it to occurr when there are no open
>>> channels in asterisk. Is there some sort of way to do a conditional
>>> auto failback where we repeatedly test for a certain condition and
>>> then perform the failback when that condition is met?
>>> Or perhaps is there an entirely better way to do this?
>> What release are you using?
> I installed the 2.0.2-1 RPM's.
If you've created a CRM (2.0-style) cluster, then you can set the
failback to occur at a certain time - by setting a time-based policy for
failing back at that time (like between 2 and 3 AM).
We don't currently have a policy which lets you decide exactly when to
fail back yourself. But, you could write a program which detects this
condition, and modifies the policy, then waits a while, and changes the
failback policy back to "don't fail back".
Andrew could give you the details on how to do both of these options.
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
More information about the Linux-HA