Building Voice Over IP topology at Home

 Steps to configure VOIP server and VOIP clients in your WLAN

=========================================================================


The below is the topology:

1. Steps to install asterisk voip server in ubuntu machine. 

sudo apt update
sudo apt install asterisk asterisk-dahdi

--> Asterisk will be installed now.

-->check the status of Asterisk voip server using the below command.
sudo systemctl status asterisk



--> now go to the below folder
cd /etc/asterisk

--> take backup of the following files. Just to ensure that the original content in the files which 
we would be editing here after, are preserved.

sudo cp sip.conf sip.conf.backup
sudo cp extensions.conf extensions.conf.backup

--> Now, clear the content of the above 2 files.
echo | sudo tee sip.conf
echo | sudo tee extensions.conf

--> now, update the above 2 files with the below content. Basically, we are adding the details of 2 voip clients that can be registered with the voip asterisk server running on the Ubuntu machine. 

Neelkanth $sudo cat sip.conf

[general]
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp 
srvlookup=yes

[9001]
type=friend
host=dynamic
secret=9001
mailbox=9001@default

[9002]
type=friend
host=dynamic
secret=9002
mailbox=9002@default

Neelkanth $sudo cat extensions.conf

[General]
static=yes
writeprotect=no
priorityjumping=no 
autofallthrough=yes
clearglobalvars=no

[default]
exten => 9001,1,Dial(SIP/9001,10)
exten => 9002,1,Dial(SIP/9002,10)


--> Now, stop and restart the asterisk voip server and check it's running status. 
sudo systemctl restart asterisk
sudo systemctl status asterisk

--> if it's running, then it means that our configuration is working. 


2. Steps to install VOIP application in the clients (i have used an android tablet and an android phone)


1. download "MizuDroid" application in both the devices.

2. Enter the voip server ip address (wlan ip address of the ubuntu machine, on which the asterisk server is running.)
Also, enter the username and Password. 

The username and password are the same. 


--> This is enough to register the above voip clients with the voip "Asterisk" server running in the ubuntu machine.


--> In the below image, you can see that the status of both the voip clients is "Registered". Now, we are ready to make a voip call from one voip client to another voip client via the asterisk server. 




--> Now, dial the phone number of one client from another client's APP.


                                   End of voip experiment.