Setup asterisk PBX



Update repositories and install Ansterisk
Figure 1 - Update repositories and install Ansterisk

sudo apt-get update
sudo apt-get install asterisk

Open Asterisk folder
Figure 2 - Open Asterisk folder

cd /etc/asterisk

Open sip config file
Figure 3 - Open SIP config file

sudo nano sip.conf

Create SIP users
Figure 4 - Create SIP users

[100]
type=friend
username=100
callerid=100
secret=100
context=test
host=dynamic
allow=all
 
[101]
type=friend
username=101
callerid=101
secret=101
context=test
host=dynamic
allow=all

[102]
type=friend
username=102
callerid=102
secret=102
context=test
host=dynamic
allow=all

Open extensions config file
Figure 5 - Open extensions config file

sudo nano extensions.conf

Create dial plans
Figure 6 - Create dial plans

[test]
exten => 100,1,Dial(SIP/100)
exten => 101,1,Dial(SIP/101)
exten => 102,1,Dial(SIP/102)

Start Asterisk service
Figure 7 - Start Asterisk service

sudo service asterisk start

More information