Ernest G. Wilson II's Debian Asterisk 1.6x Instructions

Prerequisite: Basic Debian Install


# Install PWLib
cd /var/local
wget http://superb-west.dl.sourceforge.net/sourceforge/openh323/ptlib-v1_12_0-src.tar.gz
tar xvf ptlib-v1_12_0-src.tar.gz
cd ptlib_v1_12_0/
./configure
make
make install
PWLIBDIR=/var/local/ptlib_v1_12_0 && export PWLIBDIR


# Install Open323
cd /var/local
wget http://voxel.dl.sourceforge.net/sourceforge/h323plus/h323plus-v1_19_7-src.tar.gz
tar xvf h323plus-v1_19_7-src.tar.gz
cd h323plus
chmod +x configure
./configure
make
cp lib/libh323_linux_x86_r.so.1.19-beta7 lib/libh323_linux_x86_r.so.1.19.7
make install
OPENH323DIR=/usr/src/h323plus && export OPENH323DIR


# Install DAHDI Linux Complete
cd /var/local
wget http://downloads.digium.com/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-2.1.0.4+2.1.0.2.tar.gz
tar xvf dahdi-linux-complete-2.1.0.4+2.1.0.2.tar.gz
cd dahdi-linux-complete-2.1.0.4+2.1.0.2
make all
make install
make config
# Edit the DAHDI modules needed on your system (comment out all modules unless you need them)
nano /etc/dahdi/modules

# Probe Test
modprobe dahdi_dummy

# Install Asterisk - http://www.asterisk.org
cd /var/local
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.6.0.5.tar.gz
tar xvf asterisk-1.6.0.5.tar.gz
cd asterisk-1.6.0.5

./configure
# Choose which modules and options you want to include
make menuselect
# Build Asterisk
make
make install
make samples
make config
make progdocs


# Install Asterisk Addons
cd /var/local
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.6.0.1.tar.gz
tar xvf asterisk-addons-1.6.0.1.tar.gz
cd asterisk-addons-1.6.0.1
./configure
# Choose which modules and options you want to include (make sure H323 is available and enabled)
make menuselect
make
make install
make samples


reboot
asterisk -r
ooh323 show config

 

# Install Asterisk GUI (Web Interface 2.x) - http://www.asterisk.org/node/48533 and http://asterisknow.org/install-related
cd /var/local
svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
cd asterisk-gui
./configure
make
make install
# Edit the GUI http configuration
nano /etc/asterisk/http.conf
 [general]
 enabled=yes
 enablestatic=yes
 bindaddr=172.28.0.44
 bindport=8088
 prefix=asterisk
 redirect = / /asterisk/static/config/cfgbasic.html
# Edit the GUI manager configuration
nano /etc/asterisk/manager.conf
 [general]
 enabled = yes
 webenabled = yes
 port=5038
 bindaddr=0.0.0.0
 [admin]
 secret = adminpassword
 read = system,call,log,verbose,command,agent,user,config,originate,read,write
 write = system,call,log,verbose,command,agent,user,config,originate,read,write
# Check the GUI configuration
make checkconfig
 

http://172.28.0.44:8088/asterisk/static/config/cfgbasic.html
 

Stuck here in a loop with:
"checking write permission for gui folder"

Notes to self as research continues:
http://forums.digium.com/viewtopic.php?t=66171&highlight=checking+write+permission
Permission issue?
ls -alF /var/lib/asterisk/static-http/
ls -alF /var/lib/asterisk
cd /var/lib/asterisk/static-http/
chmod 777 config/
/var/lib/asterisk/scripts/detectdahdi.sh

 

or?
cd /var/local
svn co http://svn.digium.com/svn/dahdi/linux-complete/tags/2.2.0-rc1+2.2.0-rc1 dahdi-linux-complete
cd dahdi-linux-complete
make all
make install
make config

and

cd /var/local
svn co http://svn.digium.com/svn/asterisk-gui/tags/2.0.4/ asterisk-gui
cd asterisk-gui
./configure
make
make install

touch /etc/asterisk/ztscan.conf
chmod a+r /var/lib/asterisk/gui_backups/
chmod a+w /var/lib/asterisk/gui_backups/

reboot

 

 

 

 

 

Future...


Open Source Line Echo Canceller (OSLEC)
http://www.rowetel.com/ucasterisk/oslec.html





/*EDit Sip.conf*/


[general]
;context=default ; Default context for incoming calls
dtmfmode = rfc2833
context=from-callcentric
srvlookup=yes
register => <username>:<password>@callcentric.com/<username>
disallow=all
allow=ulaw
allow=alaw



externip = 71.***.***.***

localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks

nat=yes


EDit Users.conf
-----------------
userbase = 300

[callcentric]
type=peer
context=from-callcentric
host=callcentric.com
username= 177********
secret= ******
fromuser= 177********
fromdomain=callcentric.com
insecure=port,invite

Edit modules.conf
------------------
#Add this line

load => cdr_addon_mysql.so

cd /var/local/asterisk-addons-1.4.6/cdr
cp cdr_addon_mysql.so /usr/lib/asterisk/modules/


cd /var/local
tar -xzvf Cepstral_Allison-8kHz_i386-linux_5.1.0.tar.gz
cd /var/local/Cepstral_Allison-8kHz_i386-linux_5.1.0
./install.sh


cd /var/local
tar -xzvf app_swift-2.0rc1.gz
cd app_swift-2.0rc1
make install

#edit /etc/ld.so.conf. File should contain

nano /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/opt/swift/lib

#restart config.
ldconfig


cd /opt/swift
swift --reg-voice -d /opt/swift/voices/Allison-8kHz

/Database connectivity needs to be checked in these files
/etc/asterisk/extensions.conf
/etc/asterisk/cdr_mysql.conf
/etc/asterisk/res_mysql.conf



asterisk
asterisk -vvvvvvr