Asterisk 1.2 Branch - Installation Guide for FC6

Asterisk 1.2 Branch - Installation Guide For FC6 – Version 1.0
Also works on RHLE4

Compiled by Max Glucksmann
mglucksmann@comtel-networks.com
Comtel Networks, Corp.

Steps:

1) Reboot with FC6 (Disk1).



2) Enter Setup in text mode: linux text + Enter.
Note: FC6 Graphical mode won't run correctly on lower edge Dell PE1550 servers. Greeter application may not work correctly and could crash.



3) Setup disk layout, IP, hostname.



4) Select packages:
a. Development Libraries
b. Development Tools
c. Editors
d. Web Server
e. System Tools
CDs needed: 1, 2, 3, 4, 5.



5) Setup /etc/iptables-save and add the following line in /etc/rc.local:
a. cat /etc/iptables-save | iptables-restore



6) Edit: /etc/hosts.allow, /etc/hosts.deny, /etc/hosts. See example files in Guide directory: System\hosts\.



7) Checkout * using SVN. See file in System\Asterisk\Checkout containing the checkout commands needed.



8) Disable SELINUX in /etc/selinux/config
a. SELINUX=disabled



9) Verify Packages required (standard needed):
a. rpm –qa | grep –i:
i. bison
ii. libtermcap
iii. libtermcap-devel
iv. newt
v. newt-devel
vi. ncurses
vii. ncurses-devel
viii. kernel-devel
ix. kernel-headers



10) Prepare to compile Asterisk:
a. Edit /usr/src/asterisk-1.2/rtp.c: nano rtp.c:
i. In line 548 of Version 1.2 Branch: Remove condition || rtp->resp == 0 from RFC2833 process trigger conditional.
ii. Prepare MySQL: nano in /usr/src/asterisk-addons-1.2/:
1. Makefile: Add: CFLAGS+=-DMYSQL_LOGUNIQUEID
2. cdr_addonmysql.c: Add: #define MYSQL_LOGUNIQUEID



11) Make symlink:
a. Target: /lib/modules/2.6.18-1.2798.fc6/

b. Name: /usr/src/linux-2.6

c. Use complete kernel version in target as appears in uname –r:
root@host5 src# uname -r
2.6.18-1.2798.fc6

d. Command: ln -s /lib/modules/2.6.18-1.2798.fc6/ /usr/src/linux-2.6

e. Verify:
root@host5 src# ls -lsa /usr/src/linux-2.6
0 lrwxrwxrwx 1 root root 31 Sep 25 17:27 /usr/src/linux-2.6 -> /lib/modules/2.6.18-1.2798.fc6/



12) Install MySQL required packages. From /var/rpms/:
a. rpm -ivh MySQL-devel-5.0.20a-0.glibc23.i386.rpm
b. rpm -ivh MySQL-shared-compat-5.0.20a-0.glibc23.i386.rpm
c. yum install perl-DBI
d. rpm -ivh MySQL-client-5.0.20a-0.glibc23.i386.rpm

Set Correct date before make: date --set="2007-09-13 18:05:00 -0500"



13) Make (within each directory, see the name of each make for reference):

A) /usr/src/libpri-1.2:
i. make clean
ii. make
iii. make install

B) /usr/src/zaptel-1.2:
i. make clean
ii. make config
iii. make linux26
iv. make install

C) /usr/src/asterisk-1.2:
i. make clean
ii. make config (not needed with existing src on RHLE4)
iii. make
iv. make install

D) /usr/src/asterisk-addons-1.2:
i. make clean
ii. make
iii. make install

E) Using sources in System\DBD-mysql-4.001:
i. perl Makefile.PL
ii. make
iii. make install



14) Fill Directories with configuration & program files:
a. /www/ and then:
i. chmod 770 –R /www/
ii. chown apache.root –R /www/

b. /etc/asterisk/

c. /etc/zapata.conf

d. /var/lib/asterisk/

e. /var/lib/astpp/

f. /var/lib/astcc/

g. /usr/lib/asterisk/modules/ (may only copy codec files, format & codec prefixed)

h. /usr/local/astpp/
i. chmod 770 –R /usr/local/astpp/
ii. chown apache.root –R /usr/local/astpp/

i. /var/www/cgi-bin/astpp-auto-admin/
Set permissions and owner:
1. chmod 770 –R /var/www/
2. chown apache.root –R /var/www/

j. mkdir /var/log/astpp

k. setup Visitor Location Register (VLR) - Extension Domain Local Server - configuration file: /etc/asterisk/extension_domain.conf

l. Automated tasks run as root:
i. /root/
ii. /root/asterisk_tester



15) Install screens (Asterisk Tester, Rating Engine and Card Monitor in /etc/rc.local):
a. mkdir /var/log/astpp
b. nano /usr/local/astpp/host.conf
See examples in System\etc\rc.local



16) Install ‘crontab –e’. Use template from System\Crontab\crontab -e.



17) Install Perl Modules for AT, RE and CM:
a. using CPAN:
i. install DBI
ii. install POE
iii. install POE: :Component: :Client: :Asterisk: :Manager
iv. install Asterisk
v. install Sudo 1

1. For proven results and guaranteed performance, change apaches’s password to match root’s and the one used in the Sudo installation.:
passwd apache

2. Edit /etc/sudoers and set:
a. # Defaults requiretty
b. apache ALL=(ALL) ALL

vi. Locale::gettext_pp
vii. CGI::Upload
viii. Date::Calc
ix. SOAP::Lite (for user page listing DIDs).



18) Setup AGI for CCs:
a. Register Test D3 account.
b. Setup Astman config:
/var/lib/astpp/conf/astpp-astman.conf

Asterisk 1.2 Branch - Installation Guide For FC6 – Version 1.0
Also works on RHLE4

Compiled by Max Glucksmann
mglucksmann@comtel-networks.com
Comtel Networks, Corp.

Steps:

1) Reboot with FC6 (Disk1).



2) Enter Setup in text mode: linux text + Enter.
Note: FC6 Graphical mode won't run correctly on lower edge Dell PE1550 servers. Greeter application may not work correctly and could crash.



3) Setup disk layout, IP, hostname.



4) Select packages:
a. Development Libraries
b. Development Tools
c. Editors
d. Web Server
e. System Tools
CDs needed: 1, 2, 3, 4, 5.



5) Setup /etc/iptables-save and add the following line in /etc/rc.local:
a. cat /etc/iptables-save | iptables-restore



6) Edit: /etc/hosts.allow, /etc/hosts.deny, /etc/hosts. See example files in Guide directory: System\hosts\.



7) Checkout * using SVN. See file in System\Asterisk\Checkout containing the checkout commands needed.



8) Disable SELINUX in /etc/selinux/config
a. SELINUX=disabled



9) Verify Packages required (standard needed):
a. rpm –qa | grep –i:
i. bison
ii. libtermcap
iii. libtermcap-devel
iv. newt
v. newt-devel
vi. ncurses
vii. ncurses-devel
viii. kernel-devel
ix. kernel-headers



10) Prepare to compile Asterisk:
a. Edit /usr/src/asterisk-1.2/rtp.c: nano rtp.c:
i. In line 548 of Version 1.2 Branch: Remove condition || rtp->resp == 0 from RFC2833 process trigger conditional.
ii. Prepare MySQL: nano in /usr/src/asterisk-addons-1.2/:
1. Makefile: Add: CFLAGS+=-DMYSQL_LOGUNIQUEID
2. cdr_addonmysql.c: Add: #define MYSQL_LOGUNIQUEID



11) Make symlink:
a. Target: /lib/modules/2.6.18-1.2798.fc6/

b. Name: /usr/src/linux-2.6

c. Use complete kernel version in target as appears in uname –r:
root@host5 src# uname -r
2.6.18-1.2798.fc6

d. Command: ln -s /lib/modules/2.6.18-1.2798.fc6/ /usr/src/linux-2.6

e. Verify:
root@host5 src# ls -lsa /usr/src/linux-2.6
0 lrwxrwxrwx 1 root root 31 Sep 25 17:27 /usr/src/linux-2.6 -> /lib/modules/2.6.18-1.2798.fc6/



12) Install MySQL required packages. From /var/rpms/:
a. rpm -ivh MySQL-devel-5.0.20a-0.glibc23.i386.rpm
b. rpm -ivh MySQL-shared-compat-5.0.20a-0.glibc23.i386.rpm
c. yum install perl-DBI
d. rpm -ivh MySQL-client-5.0.20a-0.glibc23.i386.rpm

Set Correct date before make: date --set="2007-09-13 18:05:00 -0500"



13) Make (within each directory, see the name of each make for reference):

A) /usr/src/libpri-1.2:
i. make clean
ii. make
iii. make install

B) /usr/src/zaptel-1.2:
i. make clean
ii. make config
iii. make linux26
iv. make install

C) /usr/src/asterisk-1.2:
i. make clean
ii. make config (not needed with existing src on RHLE4)
iii. make
iv. make install

D) /usr/src/asterisk-addons-1.2:
i. make clean
ii. make
iii. make install

E) Using sources in System\DBD-mysql-4.001:
i. perl Makefile.PL
ii. make
iii. make install



14) Fill Directories with configuration & program files:
a. /www/ and then:
i. chmod 770 –R /www/
ii. chown apache.root –R /www/

b. /etc/asterisk/

c. /etc/zapata.conf

d. /var/lib/asterisk/

e. /var/lib/astpp/

f. /var/lib/astcc/

g. /usr/lib/asterisk/modules/ (may only copy codec files, format & codec prefixed)

h. /usr/local/astpp/
i. chmod 770 –R /usr/local/astpp/
ii. chown apache.root –R /usr/local/astpp/

i. /var/www/cgi-bin/astpp-auto-admin/
Set permissions and owner:
1. chmod 770 –R /var/www/
2. chown apache.root –R /var/www/

j. mkdir /var/log/astpp

k. setup Visitor Location Register (VLR) - Extension Domain Local Server - configuration file: /etc/asterisk/extension_domain.conf

l. Automated tasks run as root:
i. /root/
ii. /root/asterisk_tester



15) Install screens (Asterisk Tester, Rating Engine and Card Monitor in /etc/rc.local):
a. mkdir /var/log/astpp
b. nano /usr/local/astpp/host.conf
See examples in System\etc\rc.local



16) Install ‘crontab –e’. Use template from System\Crontab\crontab -e.



17) Install Perl Modules for AT, RE and CM:
a. using CPAN:
i. install DBI
ii. install POE
iii. install POE: :Component: :Client: :Asterisk: :Manager
iv. install Asterisk
v. install Sudo 1

1. For proven results and guaranteed performance, change apaches’s password to match root’s and the one used in the Sudo installation.:
passwd apache

2. Edit /etc/sudoers and set:
a. # Defaults requiretty
b. apache ALL=(ALL) ALL

vi. Locale::gettext_pp
vii. CGI::Upload
viii. Date::Calc
ix. SOAP::Lite (for user page listing DIDs).



18) Setup AGI for CCs:
a. Register Test D3 account.
b. Setup Astman config:
/var/lib/astpp/conf/astpp-astman.conf

Created by: mglucksmann, Last modification: Mon 10 of Mar, 2008 (06:21 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+