Installing Asterisk Server¶
Document the full procces for install and configuration of the Asterisk Server
TODO:
Prepare the Platform (Linux)
Compile the source code
Configure the Server
Test Terminal (Sip Phone)
Test SofPhone
Release
Set Up Platform¶
Setting the platform be on a virtual machine with Linux Debian 11/12 OS
Process for settin-up …
Branches of Asterisk
Download Asterisk from source¶
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-20-current.tar.gz
Compile Asterisk¶
After downlaod the release change to download dir extract and compile
Install some additional software
sudo apt install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev
we can run the prerequisites script from asterisk code
./contrib/scripts/install_prereq install
Using install_prereq
The install_prereq script is included with every release of Asterisk in the contrib/scripts subdirectory. The script has the following options:
test - print only the libraries to be installed.
install - install package dependencies only. Depending on your distribution of Linux, version of Asterisk, and capabilities you wish to use, this may be sufficient.
install-unpacakged - install dependencies that don’t have packages but only have tarballs. You may need these dependencies for certain capabilities in Asterisk.
1 2 3 4 5 |
|
Now start with the compilation:
1 2 3 |
|
sudo make install
Setup init.d¶
Copy init script for start ,stop , restart control of asterisk
sudo cp asterisk/contrib/init.d/rc.debian.asterisk /etc/init.d/asterisk
Or
sudo make config
prepare exec¶
1 2 3 4 |
|
Directory Permissions¶
set Dir permissions¶
sudo chown -R asterisk /var/spool/asterisk /var/lib/asterisk /var/run/asterisk
sudo cp contrib/init.d/etc_default_asterisk /etc/default/asterisk
#uncomment
AST_USER="asterisk"
AST_GROUP="asterisk"
ambagasdowa@kukulkan:/etc/asterisk$ ps aux | grep asterisk
asterisk 2506501 100 0.6 73484 24880 ? Rs 17:15 0:01 /usr/sbin/asterisk -U asterisk -G asterisk
live_dangerously = no
update-rc.d asterisk defaults
Hardening the setup¶
Testing Sip Phone¶
CC:EF:48:59:F5:E9
AVAYA¶
Ok, i have wasted a lot of time for that and seems no one knows how to actually do it so :
Only 1603SW-I can be used
Logoff, reset phone to factory (mute73738#)
Download configuration file from ftp://ftp.avaya.com/incoming/Up1cku9/tsoweb/46xxsettings/08302015/46xxsettings.txt
Edit it :
1 2 3 4 5 6 |
|
Download SIP firmware https://support.avaya.com/downloads/download-details.action?contentId=C2010882049141200_6&productId=P0468
Copy config file to firmware files
Update firmware by HTTP ( i’ve used IIS, just paste all firmware contents to www root and enable anon read access )
This also should work with any SIP-based PBX.