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