Am going to guide you how to install, configure,run and to make sip call to speak between two different users/computers .
first download and install the windows based softphone called xlite from http://www.counterpath.com/
download and install the following package if it does not exist in your linux box. the asterisk installation will fail if any of the following packages does not exist in the machine.
Packages:
gcc
cpp
glibc-headers
glibc-devel
glibc-kernheaders
gcc-c++
libstdc++-devel
libtermcap-devel
Hope you have all the packages mentioned above.
lets start.
go to the linux machine. create a directory as your choice. here am creating under /usr/local/
command:
mkdir /usr/local/asterisk
go to the newly created directory
command:
cd /usr/local/asterisk/
then am downloading the asterisk package from www.asterisk.org
command:
wget http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.22.tar.gz
once the download completed , unpack the package.
command:
tar -xvzf ./asterisk-1.4.22.tar.gz
note: in the above command the file name is the name of the file which we downloaded before.
once the unpack completed, the package is unpacked into the directory /usr/local/asterisk/ as a folder named asterisk-1.4.22. that is /usr/local/asterisk/asterisk-1.4.22/
now you need to jump into the newly created directory.
command:
cd asterisk-1.4.22
the final step is to compile the package.
commands:
make clean
./configure
make
make install
make samples
make progdocs
note: above listed are six different commands and it needs to be executed one by one.
now almost done. the package is successfully installed. hopefully
now, to make the basic asterisk to run, we need to edit the two configuration files located in /etc/asterisk/
the file names are (with full absolute path)
/etc/asterisk/sip.conf
/etc/asterisk/extensions.conf
first we are going to edit the sip.conf file.
command:
vi /etc/asterisk/sip.conf
go to the bottom of the file and paste the following configuration. this configuration actually creating the sip user accounts. the first line [thiyagu] is the user name. here i used my name thiyagu as the username.
the third line which is secret=thi123 is the place where you need to key in your desired password. here i used the password thi123. am creating two users in the name of thiyagu and jack
[thiyagu]
type=friend
secret=thi123
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=internal
[jack]
type=friend
secret=jack123
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=internal
the sip.conf is now completed. the next one is extensions.conf. the file is under /etc/asterisk/
here we are going to create the extension numbers for each users which we created before.
am assigning the extension number 100 for user thiyagu and 1o1 for jack
command:
vi /etc/asterisk/extensions.conf
go to the bottom of the file and paste the following config.
[internal]
include => outbound
exten => 100,1,Dial(SIP/thiyagu,20,tr)
exten => 101,1,Dial(SIP/jack,20,tr)
thats it . you are done.
now run the asterisk executable
command:
/usr/sbin/asterisk -vvvvc
it should run without any errors. Configure the username we created under sip.conf in xlite softphone in two different machines and call each other.
Have Fun
Hi Admin,
Can you increase the content Font size, it looks too small and its very hard to read… rest are all good…..
krishna