Asterisk Installation on Lenny: Difference between revisions
(Compile asterisk) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
= Compile Asterisk = | = Compile Asterisk = | ||
If you have a previous version of asterik first Backup config files /ets/asterisk and then uninstall it. From the original source files | |||
#make uninstall-all | |||
Get the latest version from http://www.asterisk.org/downloads | Get the latest version from http://www.asterisk.org/downloads | ||
Line 22: | Line 23: | ||
Go to the asterisk 1.6.1.1 folder and launch the install script | Go to the asterisk 1.6.1.1 folder and launch the install script | ||
#./install | # ./configure | ||
I had a C++ preprocessor "/lib/cpp" fails sanity check and needed to install g++ | |||
#apt-get install g++ | |||
Go to the | #make menuselect (OPTIONAL) | ||
#make | |||
#make install | |||
#make samples | |||
#make config | |||
+---- Asterisk Installation Complete -------+ | |||
+ + | |||
+ YOU MUST READ THE SECURITY DOCUMENT + | |||
+ + | |||
+ Asterisk has successfully been installed. + | |||
+ If you would like to install the sample + | |||
+ configuration files (overwriting any + | |||
+ existing config files), run: + | |||
+ + | |||
+ make samples + | |||
+ + | |||
+----------------- or ---------------------+ | |||
+ + | |||
+ You can go ahead and install the asterisk + | |||
+ program documentation now or later run: + | |||
+ + | |||
+ make progdocs + | |||
+ + | |||
+ **Note** This requires that you have + | |||
+ doxygen installed on your local system + | |||
== Compile DAHDI == | |||
Go to the dahdi folder | |||
# make | |||
# make install | |||
################################################### | |||
### | |||
### DAHDI installed successfully. | |||
### If you have not done so before, install the package | |||
### dahdi-tools. | |||
### | |||
Go to dahdi-tools | |||
First run the configure script or you get a error "no rule to make target 'makeopts'" | |||
#./configure | |||
# make | |||
# make install | |||
################################################### | |||
### | |||
### DAHDI tools installed successfully. | |||
### If you have not done so before, install init scripts with: | |||
### | |||
### make config | |||
### | |||
################################################### | |||
Go to the DAHDI tools folder | |||
# make config | |||
install -D dahdi.init /etc/init.d/dahdi | |||
/usr/bin/install -c -D -m 644 init.conf.sample /etc/dahdi/init.conf | |||
/usr/bin/install -c -D -m 644 modules.sample /etc/dahdi/modules | |||
/usr/bin/install -c -D -m 644 xpp/genconf_parameters /etc/dahdi/genconf_parameters | |||
/usr/bin/install -c -D -m 644 modprobe.conf.sample /etc/modprobe.d/dahdi | |||
/usr/bin/install -c -D -m 644 blacklist.sample /etc/modprobe.d/dahdi.blacklist | |||
/usr/sbin/update-rc.d dahdi defaults 15 30 | |||
Adding system startup for /etc/init.d/dahdi ... | |||
/etc/rc0.d/K30dahdi -> ../init.d/dahdi | |||
/etc/rc1.d/K30dahdi -> ../init.d/dahdi | |||
/etc/rc6.d/K30dahdi -> ../init.d/dahdi | |||
/etc/rc2.d/S15dahdi -> ../init.d/dahdi | |||
/etc/rc3.d/S15dahdi -> ../init.d/dahdi | |||
/etc/rc4.d/S15dahdi -> ../init.d/dahdi | |||
/etc/rc5.d/S15dahdi -> ../init.d/dahdi | |||
DAHDI has been configured. | |||
List of detected DAHDI devices: | |||
pci:0000:04:05.0 wctdm24xxp+ d161:8005 Wildcard TDM410P | |||
run 'dahdi_genconf modules' to load support for only | |||
the DAHDI hardware installed in this system. By | |||
default support for all DAHDI hardware is loaded at | |||
DAHDI start. | |||
darktower:/usr/src/dahdi-tools-2.2.0# |
Latest revision as of 15:29, 19 August 2009
Asterisk installation on Lenny can be performed with ease using Aptitude. This brings you Asterisk version 1.4.20. Since this has a graphical GUI manager, it might be wise to add X to your server.
Compile Asterisk
If you have a previous version of asterik first Backup config files /ets/asterisk and then uninstall it. From the original source files
#make uninstall-all
Get the latest version from http://www.asterisk.org/downloads
#cd /usr/src
Get asterisk version 1.6.1.1
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.1.1.tar.gz
Get the DAHDI linux drivers
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux/releases/dahdi-linux-2.2.0.1.tar.gz
Get the DAHDI linux tools
wget http://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-2.2.0.tar.gz
Get the ISDN drivers (not sure if its still needed even if you don't have ISDN)
wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-1.4.10.1.tar.gz
Get the Addon
wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.1.0.tar.gz
Unpack all the tarballs
Go to the asterisk 1.6.1.1 folder and launch the install script
# ./configure
I had a C++ preprocessor "/lib/cpp" fails sanity check and needed to install g++
#apt-get install g++
#make menuselect (OPTIONAL) #make #make install #make samples #make config
+---- Asterisk Installation Complete -------+ + + + YOU MUST READ THE SECURITY DOCUMENT + + + + Asterisk has successfully been installed. + + If you would like to install the sample + + configuration files (overwriting any + + existing config files), run: + + + + make samples + + + +----------------- or ---------------------+ + + + You can go ahead and install the asterisk + + program documentation now or later run: + + + + make progdocs + + + + **Note** This requires that you have + + doxygen installed on your local system +
Compile DAHDI
Go to the dahdi folder
# make
# make install
################################################### ### ### DAHDI installed successfully. ### If you have not done so before, install the package ### dahdi-tools. ###
Go to dahdi-tools First run the configure script or you get a error "no rule to make target 'makeopts'"
#./configure # make # make install
################################################### ### ### DAHDI tools installed successfully. ### If you have not done so before, install init scripts with: ### ### make config ### ###################################################
Go to the DAHDI tools folder
# make config
install -D dahdi.init /etc/init.d/dahdi /usr/bin/install -c -D -m 644 init.conf.sample /etc/dahdi/init.conf /usr/bin/install -c -D -m 644 modules.sample /etc/dahdi/modules /usr/bin/install -c -D -m 644 xpp/genconf_parameters /etc/dahdi/genconf_parameters /usr/bin/install -c -D -m 644 modprobe.conf.sample /etc/modprobe.d/dahdi /usr/bin/install -c -D -m 644 blacklist.sample /etc/modprobe.d/dahdi.blacklist /usr/sbin/update-rc.d dahdi defaults 15 30 Adding system startup for /etc/init.d/dahdi ... /etc/rc0.d/K30dahdi -> ../init.d/dahdi /etc/rc1.d/K30dahdi -> ../init.d/dahdi /etc/rc6.d/K30dahdi -> ../init.d/dahdi /etc/rc2.d/S15dahdi -> ../init.d/dahdi /etc/rc3.d/S15dahdi -> ../init.d/dahdi /etc/rc4.d/S15dahdi -> ../init.d/dahdi /etc/rc5.d/S15dahdi -> ../init.d/dahdi DAHDI has been configured.
List of detected DAHDI devices:
pci:0000:04:05.0 wctdm24xxp+ d161:8005 Wildcard TDM410P
run 'dahdi_genconf modules' to load support for only the DAHDI hardware installed in this system. By default support for all DAHDI hardware is loaded at DAHDI start. darktower:/usr/src/dahdi-tools-2.2.0#