Platform: Ubuntu 12.04(32bit) [Asterisk server]

client: Windows 7 (64 bit) [x-lite]

Steps:

1.

apt-get install build-essential libxml2-dev ncurses-dev 

2.

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.3.3.tar.gz
tar zxvf asterisk-1.8.3.3.tar.gz

3. If step 2 doesn’t work then download the file from here: https://rapidshare.com/files/2912589240/asterisk-1.8.3.3.tar.gz

then unzip it.

4.  Installation:

cd asterisk-1.8.3.3/
./configure
make
make install
make config
make samples

The installation process is done. Now you need to configure the sip.conf and extension.conf files.

One very important thing is you should backup any file that you are going to modify so I backup these two files:

sudo mkdir /home/ubuntu/backup_asterisk

cp /etc/asterisk/sip.conf /home/ubuntu/backup_asterisk

cp /etc/asterisk/extension.conf /home/ubuntu/backup_asterisk

– Here ‘s the sip.conf file: [ This configuraiotn means that the Asterisk listen all IP, port 5060, and the TCP is enabled. It has two extensions defined for User One and User Two.]

[general]
context = default
bindport = 5060
bindaddr = 0.0.0.0
tcpbindaddr = 0.0.0.0
tcpenable = yes

[1001]
type = friend
callerid = User One <1001>
secret = 1001
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 1001
disallow = all
allow = ulaw
transport = udp

[1002]
type = friend
callerid = User Two <1002>
secret = 1002
host = dynamic
canreinvite = no
dtmfmode = rfc2833
mailbox = 1002
disallow = all
allow = ulaw
transport = udp


– And the extension.conf file: [This config means that there are two accessible extensions existing.]

[general]
static=yes
writeprotect=no

[default]
exten => 1001,1,Answer()
exten => 1001,n,Dial(SIP/1001,20,tr)
exten => 1001,n,Hangup

exten => 1002,1,Answer()
exten => 1002,n,Dial(SIP/1002,20,tr)
exten => 1002,n,Hangup.

– After configuring let start the asterisk:

 /etc/init.d/asterisk start 

After doing all this I install X-lite in windows and configure like this:

But it shows error 408, I don’t know why. I close the firewall, disable antivirus etc etc, but nothing happen.

Reference: https://letitknow.wordpress.com/2011/05/05/how-to-install-asterisk-1-8-on-ubuntu-server-11-04/#comment-250