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

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



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


tar zxvf asterisk-

3. If step 2 doesn’t work then download the file from here:

then unzip it.

4.  Installation:

cd asterisk-
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.]

context = default
bindport = 5060
bindaddr =
tcpbindaddr =
tcpenable = yes

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

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.]


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.