[asterisk-users] asterisk+heartbeat

Nhadie nhadie at gmail.com
Wed Oct 15 23:26:27 CDT 2008



Edgar Guadamuz wrote:
> Version 2 of Linux-HA allows order constraints, so you can first set the 
> IP and then start asterisk. (service asterisk should be down until IP 
> address moves)

hi sir,

i think this should do the trick for me. asterisk should be stopped, 
then when it gets the VIP, i will start asterisk and bind it to the VIP.

is this how i should do it?

asterisk-2 \
         LVSSyncDaemonSwap::master \
         IPaddr2::10.10.10.3/28/eth1/10.10.10.15 asterisk

TIA.

Regards,
Ron

> 
> 
>  
> On Wed, Oct 15, 2008 at 7:17 PM, Nhadie <nhadie at gmail.com 
> <mailto:nhadie at gmail.com>> wrote:
> 
> 
> 
>     Gleim, Jason wrote:
>      > How did you define the secondary IP address? Did you actually set
>     that
>      > up in the network scripts and bind it to eth0 or did you just
>     define it
>      > in /etc/ha.d/haresources? You should only have the virtual IP
>     defined in
>      > haresources along with the primary server and what you want to do on
>      > node up/down.
> 
>     hi sir,
> 
>     secondary is asisgned by heartbeat via haresources.
> 
>      >
>      > My haresources file has a single line:
>      > ohasterisk01 10.191.32.31 <http://10.191.32.31/>
>     MailTo::<user>@<domain>.com::Asterisk
>      > fonulator asterisk
> 
>     does this mean asterisk will run after it takes over the IP?
>     can i do this without the fonulator script?
> 
>      >
>      > We're obviously using the redFone FoneBRIDGE for our T1 connection as
>      > you can see we're firing the fonulator script and then asterisk.
>      >
>      > HTH!
>      >
>      > Jason
>      >
>      >
>      >> -----Original Message-----
>      >> From: asterisk-users-bounces at lists.digium.com
>     <mailto:asterisk-users-bounces at lists.digium.com>
>     [mailto:asterisk-users- <mailto:asterisk-users->
>      >> bounces at lists.digium.com <mailto:bounces at lists.digium.com>] On
>     Behalf Of Nhadie
>      >> Sent: Tuesday, October 14, 2008 12:47 PM
>      >> To: Asterisk Users Mailing List - Non-Commercial Discussion
>      >> Subject: [asterisk-users] asterisk+heartbeat
>      >>
>      >> Hi,
>      >>
>      >> I'm using heartbeat as a failover for my asterisk server.
>      >>
>      >> on the active server 1 i have
>      >>
>      >> 10.10.10.1 <http://10.10.10.1/> eth0
>      >> 10.10.10.3 <http://10.10.10.3/> secondary eth0
>      >>
>      >> asterisk listens to the secondary ip, so that if server 1 fails,
>      > server
>      >> 2 will then get that IP.
>      >>
>      >> so if server 1 fails, server 2 will have the IP
>      >>
>      >> 10.10.10.2 <http://10.10.10.2/> eth0
>      >> 10.10.10.3 <http://10.10.10.3/> secondary eth0
>      >>
>      >> problem is i have to bind asterisk to the secondary IP if dont,
>     i cant
>      >> make calls. but if server 2 is inactive, asterisk does not run,
>     as on
>      >> the config it is binded on the secondary ip.
>      >>
>      >> anyone uses heartbeat for failover? tia.
>      >>
>      >> regards,
>      >> nhadie
>      >>
>      >> _______________________________________________
>      >> -- Bandwidth and Colocation Provided by
>     http://www.api-digital.com <http://www.api-digital.com/> --
>      >>
>      >> asterisk-users mailing list
>      >> To UNSUBSCRIBE or update options visit:
>      >>    http://lists.digium.com/mailman/listinfo/asterisk-users
>      >
>      > _______________________________________________
>      > -- Bandwidth and Colocation Provided by
>     http://www.api-digital.com <http://www.api-digital.com/> --
>      >
>      > asterisk-users mailing list
>      > To UNSUBSCRIBE or update options visit:
>      >    http://lists.digium.com/mailman/listinfo/asterisk-users
>      >
> 
>     _______________________________________________
>     -- Bandwidth and Colocation Provided by http://www.api-digital.com
>     <http://www.api-digital.com/> --
> 
>     asterisk-users mailing list
>     To UNSUBSCRIBE or update options visit:
>       http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list