<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<b>AsteriskHA1</b>:~# more /etc/drbd.conf<br>
global {<br>
usage-count yes;<br>
}<br>
common {<br>
protocol C;<br>
}<br>
<br>
resource "shared" {<br>
<br>
handlers { pri-on-incon-degr "echo 'DRBD: primary requested but
inconsistent!' | wall; sleep 300000"; }<br>
startup { wfc-timeout 0; degr-wfc-timeout 120; }<br>
disk { on-io-error detach; } #<br>
syncer {<br>
rate 120M;<br>
}<br>
<br>
on AsteriskHA1 {<br>
device /dev/drbd0;<br>
disk /dev/hda4;<br>
address 10.255.255.1:7789;<br>
meta-disk internal;<br>
}<br>
<br>
on AsteriskHA2 {<br>
device /dev/drbd0;<br>
disk /dev/hda4;<br>
address 10.255.255.2:7789;<br>
meta-disk internal;<br>
}<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<b>AsteriskHA1</b>:~# more /etc/ha.d/haresources<br>
AsteriskHA1 drbddisk::shared Filesystem::/dev/drbd0::/share::ext3
192.168.0.245/24/eth1 asterisk<br>
<br>
<br>
<b>AsteriskHA1</b>:~# more /etc/ha.d/ha.cf<br>
logfacility local0<br>
keepalive 25ms<br>
deadtime 1<br>
warntime 50ms<br>
initdead 5<br>
udpport 694<br>
bcast eth0 <br>
auto_failback on<br>
node AsteriskHA1 AsteriskHA2<br>
<b>AsteriskHA1</b>:~#<br>
<br>
/etc/asterisk<br>
/var/lib/asterisk/<br>
/var/spool/asterisk<br>
<br>
are placed on /share partion and symlinks are made. floating IP
192.168.0.245, interconnect between node's gbit link<br>
<br>
Luis Jimenez pisze:
<blockquote
id="mid_a5f67c5f0806170609s64e94fd3y3e3864fad27e28c2_mail_gmail_com"
cite="mid:a5f67c5f0806170609s64e94fd3y3e3864fad27e28c2@mail.gmail.com"
type="cite">Hello, can you share your HA config??<br>
<br>
<br>
<div class="gmail_quote">2008/6/17 Marcin J. Kowalczyk
<a class="moz-txt-link-rfc2396E" href="mailto:marcin.kowalczyk@ccig.pl"><marcin.kowalczyk@ccig.pl></a>:<br>
<blockquote id="StationeryCiteGenerated_1" class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">Hi All,<br>
<br>
I have configured Asterisk failover with floating IP (heartbeat),
shared /etc/asterisk /var/lib/asterisk/ /var/spool/asterik via drbd
between two nodes.<br>
When I do failover Active -> Passive (eg reboot nodeA) I lose calls
which are managed by * (ex on wait extenesion). I've tried to setup
following in sip.conf:<br>
<br>
<blockquote id="StationeryCiteGenerated_2">rtcachefriends=yes<br>
rtsavesysname=yes<br>
rtupdate=yes<br>
rtautoclear=yes<br>
ignoreregexpire=yes<br>
</blockquote>
<br>
but it didn't help. Is there a way to share also call-leg status?<br>
<br>
Marcin<br>
</div>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a moz-do-not-send="true"
href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-ha-clustering mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a moz-do-not-send="true"
href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering"
target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><br>
</blockquote>
</div>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-ha-clustering mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Pozdrawiam serdecznie
Marcin Kowalczyk
System Administrator
Call Center Inter Galactica
ul. Jana Kilinskiego 30, 50-264 Wroclaw, Poland
telefon: +48 71 722 72 91 e-mail: <a class="moz-txt-link-abbreviated" href="mailto:marcin.kowalczyk@ccig.pl">marcin.kowalczyk@ccig.pl</a> </pre>
</body>
</html>