[ILUG-Cochin.org] HA for Asterisk

John Joseph jjk_saji at yahoo.com
Thu Feb 4 09:47:24 IST 2010


Hi All
I did try out "hearbeat" to implement HA for asterisk based PBX system and it was success .
Right now I have different asterisk front end GUI on my server. The reason for that is to find which is better.May be later I will switch both the server to the selected one .
On "Asterisk Server 1" I have "druid" installed and I have named it as "druid".
On " Asterisk Server 2" I have "elastix" installed and I have name it as "elastik" .
My aim is to make the switch over happen whenever "the link to Asterisk server 1" service is down .

I would like to post the "conf" files for others.

### My configuration file *****

# haresources

[root at druid ha.d]# pwd
/etc/ha.d
[root at druid ha.d]# cat haresources
druid 192.168.21.84 asterisk
[root at druid ha.d]#

// ie 'hostname of primary server ' 'floating IP address' 'names of service to be executed during failover

*** ha.cf ******
debugfile /var/log/ha- debug
logfile /var/log/ha- log
keepalive 2
deadtime 10
bcast eth0
node druid elastix
auto_failback off
############ ######### #####

***** /etc/hosts ********
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdoma in localhost
127.0.0.1 asterisk
192.168.21.158 druid druid
192.168.21.156 elastik elastik

############ ######### ######

This setup is for test purpose , I plan to do it for a call centre solution , Once the project is over I plan to post to the LUG full details 
with 
# Hardware selected 
# SOftware evaluated 
# implementation and howto do 

Thanks
Joseph John 


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/



More information about the Mailinglist mailing list