SlideShare a Scribd company logo
1 of 19
Linux Telephony
Voice over IP with Asterisk
Ryan Ellingson Herzing University 3/6/15
1
Table of Contents
I. Executive Summary .......................................................................................................... 2
II. Project Planning ................................................................................................................ 3
Network Diagram
Technical Planning
Server Specifications
Linux Client Specifications
Windows Client Specifications
III. Implementation ................................................................................................................. 5
Installation of Asterisk
Installation of Centos
Installation of Windows 7
Asterisk Web Interface
IV. VOIP Plan Test.................................................................................................................13
V. Conclusion .........................................................................................................................16
VI. Appendix ............................................................................................................................17
Executive Summary
Makingcalls is oftentimes very expensive for companies. Many companies are switchingto VOIPsystems
that oftentimes cost less money or nothingat all. VOIP offers more thansimple calling, but all sorts of
modules like messaging, Google Voice plugins, voicemail, andmuch more. Implementingsystems, such
as Asterisk is a completely free andeasyto configure solution that will reduce costs for any business. It
also adds a simple anduser-friendly way to make calls between clients bothinternally on your network
and externally on other networks, which helps in cuttingdownon trainingtime. WithAsterisk, you do not
need to worry about which operatingsystem your clients use,as longas you can downloada softphone
to the client andconnect to the AsteriskServer.
LINUX TELEPHONY - MARCH 2015
3
Project Planning
For this project, a basic understanding of VOIP (Voice Over IP) is required. Also note that a basic understanding of network
layouts is necessary. Some common terms mentioned are:
Trunk – Pre-defined extension
Extension – (For purposes of this project) The number used to reach a certain client
SIP – Session Initiation Protocol
Softphone – A software program for making telephone calls over the Internet
This project is manageable on both a large-scale network, a small-scale network, or for testing purposes on a virtual machine
without any notable issues.
Network Diagram
Figure 1 Network Diagram
LINUX TELEPHONY - MARCH 2015
4
Technical Planning
The followingspecificationswere used as part of the technical planning of the project entities. These include servers and
client workstations. For this project, make 2 Asterisk servers, 2 Linux (Centos) clients, and 2 Windows(7) clients.
Server Specifications
Operating System AsteriskNow 1.8
Memory 1 GB
Hard Disk 8 GB
Network Cards 2 NICs (Internal & External)
Figure 2 ServerSpecifications
Linux Client Specifications
Operating System Centos 5.6
Memory 1 GB
Hard Disk 20 GB
Network Cards 1 NIC
Figure 3 Linux Client Specifications
Windows Client Specifications
Operating System Windows 7
Memory 2 GB
Hard Disk 20 GB
Network Cards 1 NIC
Figure 4 Windows Client Specifications
LINUX TELEPHONY - MARCH 2015
5
Implementation
Implementation (for the purpose of this project) wasdone on VMware Workstation 10.0.1. Dependingon the size of the
network, the time that implementation will take will vary.
Installation of Asterisk
When installingAsterisk, be sure to have 2 NICs already in the machine.
There will be a prompt for which version of Asterisk the user wantsto install. It is important to select FreePBX 5.211.65
with Asterisk 1.8 Full Install.
Figure 5 Choosing Which Asterisk To Install
When prompted which Network Card you want to set up, select the second one and configure it with your internal network
specifications.
LINUX TELEPHONY - MARCH 2015
6
Figure 6 Setting IP's
Once fully installed, open /etc/sysconfig/network-scripts/ifcfg-eth0 in either vi or nano. Make sure that the MAC address is
the same as the MAC address on your first NIC. Configure the IP Address, Network Mask, and Gateway to be public. Next,
make sure you can ping 8.8.8.8. If you cannot, make sure to go back and check your configurations. Once you can ping
8.8.8.8, reboot your machine. When the Asterisk server starts again, it will install an update for all of itsmodules.
Installation of Centos
Install Centos like normal. Set a user and root password. Make sure to write them down so you will not forget them. On
Centos, for this project, Ekiga is the softphone of choice. Any softphone with SIP capabilitiesshould work fine though.
Ekiga comes pre-installed on Centos.
Installation of Windows 7
Install Windows7 like normal. Set a user and password. Make sure to write themdown so you will not forget it. On
Windows7, for this project, X-Lite is the softphone of choice. Any softphone with SIP capabilitiesshould work fine though.
X-Lite is not pre-installed on Windows7, so you will have to download it (for free) from their website.
Asterisk Web Interface
First, make sure your workstation is set to connect to the second NIC on your Asterisk machine. Once
done, open the browser on any machine on the internal network, andtype intheIP Address ofAsterisk
machine. This will bringyou to the AsteriskWeb Interface.
LINUX TELEPHONY - MARCH 2015
7
Figure 7 Asterisk Web GUI
Click on FreePBX Administration. You will be promptedto make an account. Once the account is made
and you are signedin, you will be brought to a web interface that give a quicklook (with customizable
modules) at your Asterisk machine.
Figure 8 System Status
First, you will need to add a user. At the topofthe page, clickAdmin. Under that, click“User
Management”. Once opened, you will want to add a user. Create the Login Name andPassword. Leave
everythingelse blank. Make sure “none” is selectedfor LinkedExtensions.
LINUX TELEPHONY - MARCH 2015
8
Figure 9 User Settings
Next, click Connectivity at the topofthe page. Then clickon one ofthe sub-categories called “Trunk”.
Once opened, you will want to add a SIP Trunk. Give the Trunka name andleave all the other options
under General Settings blank.
Figure 10 Editing SIP Trunk
Go down to OutgoingSettings. Copy the information inFigure 7 for your first Asterisk Machine. (Be sure to
change the host, username, andfromuser configuration accordingly when configuringyour second
Asteriskmachine.)
LINUX TELEPHONY - MARCH 2015
9
Figure 11 Outgoing Settings
For IncomingSettings, copy the configurationshownin Figure 8. (Be sure to change theUser Context
accordingly to which machine your are doingthe configurations on.)
As for the registeredstring, be sure to copy the configurationshownin Figure 8. (Be sure to change the
User Context accordingly towhichmachine your are doingtheconfigurations on.)
Figure 12 Incoming Settings
Next, under Connectivity at the topofthe page, click on “OutboundRoutes”. You will want to add a
route. For the Route Name, be sure toset a name accordingly to the Trunkyou made inthe previous
step.
LINUX TELEPHONY - MARCH 2015
10
Figure 13 Router Settings
Scroll down to set the extensionroute. Inthis project, we are limitingit to a 3 number pattern witha single
digit for a prefix. Follow the example in Figure 10. Lastly, be sure to set the TrunkSequence for Matched
Routes to the trunkyou previouslymade.
Figure 14 Setting DialPatterns
For the last part intheAsteriskWeb Interface, under Applications at the top ofthe page, click
“Extensions”. We want to create 2 extension (one for each workstation). Create the Display Name and
SIP Alias (as shown inFigure 11). Set a secret (password) so you can login to the account witha
softphone.
Figure 15 Setting Display Alias
LINUX TELEPHONY - MARCH 2015
11
Once all the configurations have been doneon the AsteriskWeb Interface (by clickingthe apply
configurationbutton at the topofthe page), restart the Asterisk server to make sure all the configurations
have been applied.
Softphone Setup (Ekiga)
Once the applicationis opened, go to Account Settings. Addthe account for one ofthe extensions
createdpreviously. Be sure to set the Registrar to the internal IP oft he AsteriskServer. Oncethese settings
are filled out, click the checkbox, and make sure the account is registeredwith the AsteriskServer.
Figure 16 Softphone Setup(Ekiga)
Softphone Setup (X-Lite)
Once the applicationis opened, go to Account Settings. Fill out the settings withtheextensioncreated
previously on the Asterisk Web Interface. Set the Domain to the internal IP ofthe AsteriskServer. Make
sure the account is verified inorder to place calls.
LINUX TELEPHONY - MARCH 2015
12
Figure 17 Softphone Setup(X-Lite)
LINUX TELEPHONY - MARCH 2015
13
VOIP Plan Test
To test all the configurations, simply open the configured softphone on each ofthe clients (both internally
and externally) and make a call. Ifat any point you want to see what is happening on your Asterisk
Server as these calls are beingmade, type the command“asterisk –rvv”
Making Internal Calls
To make an internal call, just input the extension ofthe user you want to call (as shownin Figure 18).
Figure 18 Calling with Ekiga
If everythingis correct, you shouldreceive an answer or decline prompt on the client that the call is
beingmade to.
Figure 19 Incoming Call
LINUX TELEPHONY - MARCH 2015
14
Making External Calls
To make a call to someone that is not on the same network, the only difference is addingthe prefix
number thatyou created when dialing.
Figure 20 Outgoing Call
If everythingis correct, you shouldreceive an answer or decline prompt on the client that the call is
beingmade to. You shouldalso be able to see that you are makingan external call when you go onto
the AsteriskWeb Interface (as shownin figure 20).
LINUX TELEPHONY - MARCH 2015
15
Figure 21 System Status WhileCalling
LINUX TELEPHONY - MARCH 2015
16
Conclusion
To conclude, watch out for misspellingwhile changingconfigurations. Also, watchout for which
configurationyou do on each device, anddo not confusethem. Ifall goes correct, you will be able to
place calls free both internally on any network, andexternally to any other network.
References
Wilson, C. (2014, August). Assistance
Cann, J. (2014, August). Assistance
http://asterisknowtutorial.blogspot.com/
http://www.callcentric.com/support/device/freepbx
http://tyler.anairo.com/?id=3.1.0
http://www.voipvoip.com/asterisk/
http://siptrunkservice.com/pbx-configs/easy-sip-trunk-configuration-for-asterisk/
http://siptrunkservice.com/pbx-configs/how-to-configure-your-sip-trunk-in-asterisk/
LINUX TELEPHONY - MARCH 2015
17
Appendix
Figure 22
Figure 23
LINUX TELEPHONY - MARCH 2015
18
Figure 24
Figure 25

More Related Content

What's hot

Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1Jeremy St. John
 
Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802manikkan
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated newAmolDhoke3
 
Telephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformTelephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformHamid Fadishei
 
Preparing the Sentriant CE150 for Operation Module 7
 - - Training Sample
Preparing the Sentriant CE150 for Operation Module 7
 -  - Training SamplePreparing the Sentriant CE150 for Operation Module 7
 -  - Training Sample
Preparing the Sentriant CE150 for Operation Module 7
 - - Training SampleContent Rules, Inc.
 
rdp remotefx spice arm-linux thin client
rdp remotefx spice arm-linux thin clientrdp remotefx spice arm-linux thin client
rdp remotefx spice arm-linux thin clientliwu.dong
 
Fcm rapid-install-11122-1634210
Fcm rapid-install-11122-1634210Fcm rapid-install-11122-1634210
Fcm rapid-install-11122-1634210raman pattanaik
 
Gce sip-components-configuration
Gce sip-components-configurationGce sip-components-configuration
Gce sip-components-configurationTelcon Bilişim
 
02 asterisk - the future of telecommunications
02   asterisk - the future of telecommunications02   asterisk - the future of telecommunications
02 asterisk - the future of telecommunicationsTran Thanh
 
The 12 tasks of Asterisk
The 12 tasks of AsteriskThe 12 tasks of Asterisk
The 12 tasks of AsteriskElio Rojano
 

What's hot (13)

5th
5th5th
5th
 
Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1Stratix5400_5700_Setup_Rev1
Stratix5400_5700_Setup_Rev1
 
Ccna lab manual 640 802
Ccna lab manual 640 802Ccna lab manual 640 802
Ccna lab manual 640 802
 
Spoto updated new
Spoto updated newSpoto updated new
Spoto updated new
 
Telephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk PlatformTelephony Service Development on Asterisk Platform
Telephony Service Development on Asterisk Platform
 
Preparing the Sentriant CE150 for Operation Module 7
 - - Training Sample
Preparing the Sentriant CE150 for Operation Module 7
 -  - Training SamplePreparing the Sentriant CE150 for Operation Module 7
 -  - Training Sample
Preparing the Sentriant CE150 for Operation Module 7
 - - Training Sample
 
rdp remotefx spice arm-linux thin client
rdp remotefx spice arm-linux thin clientrdp remotefx spice arm-linux thin client
rdp remotefx spice arm-linux thin client
 
Microcontroller part 2
Microcontroller part 2Microcontroller part 2
Microcontroller part 2
 
Fcm rapid-install-11122-1634210
Fcm rapid-install-11122-1634210Fcm rapid-install-11122-1634210
Fcm rapid-install-11122-1634210
 
Gce sip-components-configuration
Gce sip-components-configurationGce sip-components-configuration
Gce sip-components-configuration
 
N at
N atN at
N at
 
02 asterisk - the future of telecommunications
02   asterisk - the future of telecommunications02   asterisk - the future of telecommunications
02 asterisk - the future of telecommunications
 
The 12 tasks of Asterisk
The 12 tasks of AsteriskThe 12 tasks of Asterisk
The 12 tasks of Asterisk
 

Similar to Linux Telephony

Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10용원 이
 
Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10용원 이
 
Group7_EE284_ProjectReport
Group7_EE284_ProjectReportGroup7_EE284_ProjectReport
Group7_EE284_ProjectReportJagbir Kalirai
 
Ch3 v70 project_structure_en
Ch3 v70 project_structure_enCh3 v70 project_structure_en
Ch3 v70 project_structure_enconfidencial
 
Setup VoIP System and Interconnection with LTE network
Setup VoIP System and Interconnection with LTE networkSetup VoIP System and Interconnection with LTE network
Setup VoIP System and Interconnection with LTE networkNazmul Hossain Rakib
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptopProf Kingstan
 
ProjectPurposeThe purpose of this project is to provide an o.docx
ProjectPurposeThe purpose of this project is to provide an o.docxProjectPurposeThe purpose of this project is to provide an o.docx
ProjectPurposeThe purpose of this project is to provide an o.docxwoodruffeloisa
 
26.1.7 lab snort and firewall rules
26.1.7 lab   snort and firewall rules26.1.7 lab   snort and firewall rules
26.1.7 lab snort and firewall rulesFreddy Buenaño
 
Wecon HMI PI Series Q&A
Wecon HMI PI Series Q&AWecon HMI PI Series Q&A
Wecon HMI PI Series Q&ALily Zheng
 
Integra sppt-elastix-asterisk-configuration
Integra sppt-elastix-asterisk-configurationIntegra sppt-elastix-asterisk-configuration
Integra sppt-elastix-asterisk-configurationMohammed Taher Alhomadei
 
Ccna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 AnswersCcna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 Answersccna4discovery
 
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdfHaseebAli795005
 
Client install
Client installClient install
Client installmrt Londeh
 

Similar to Linux Telephony (20)

Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10
 
Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10Cucm bk b1000_f29_00_be6k-install-guide-10
Cucm bk b1000_f29_00_be6k-install-guide-10
 
Group7_EE284_ProjectReport
Group7_EE284_ProjectReportGroup7_EE284_ProjectReport
Group7_EE284_ProjectReport
 
Ch3 v70 project_structure_en
Ch3 v70 project_structure_enCh3 v70 project_structure_en
Ch3 v70 project_structure_en
 
Setup VoIP System and Interconnection with LTE network
Setup VoIP System and Interconnection with LTE networkSetup VoIP System and Interconnection with LTE network
Setup VoIP System and Interconnection with LTE network
 
Raspberry with laptop
Raspberry with laptopRaspberry with laptop
Raspberry with laptop
 
ProjectPurposeThe purpose of this project is to provide an o.docx
ProjectPurposeThe purpose of this project is to provide an o.docxProjectPurposeThe purpose of this project is to provide an o.docx
ProjectPurposeThe purpose of this project is to provide an o.docx
 
AltiGen Max In Sight Manual
AltiGen Max In Sight  ManualAltiGen Max In Sight  Manual
AltiGen Max In Sight Manual
 
26.1.7 lab snort and firewall rules
26.1.7 lab   snort and firewall rules26.1.7 lab   snort and firewall rules
26.1.7 lab snort and firewall rules
 
Wecon HMI PI Series Q&A
Wecon HMI PI Series Q&AWecon HMI PI Series Q&A
Wecon HMI PI Series Q&A
 
Integra sppt-elastix-asterisk-configuration
Integra sppt-elastix-asterisk-configurationIntegra sppt-elastix-asterisk-configuration
Integra sppt-elastix-asterisk-configuration
 
Ccna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 AnswersCcna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 Answers
 
DNS Cache White Paper
DNS Cache White PaperDNS Cache White Paper
DNS Cache White Paper
 
Vpn
VpnVpn
Vpn
 
Kwfsbs67 en-v1
Kwfsbs67 en-v1Kwfsbs67 en-v1
Kwfsbs67 en-v1
 
Project Pt1
Project Pt1Project Pt1
Project Pt1
 
Module1 print
Module1 printModule1 print
Module1 print
 
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf2.1.1.5 Packet Tracer - Create a Simple  Network Using Packet Tracer (3).pdf
2.1.1.5 Packet Tracer - Create a Simple Network Using Packet Tracer (3).pdf
 
Client install
Client installClient install
Client install
 
56_Implementation
56_Implementation56_Implementation
56_Implementation
 

Linux Telephony

  • 1. Linux Telephony Voice over IP with Asterisk Ryan Ellingson Herzing University 3/6/15
  • 2. 1 Table of Contents I. Executive Summary .......................................................................................................... 2 II. Project Planning ................................................................................................................ 3 Network Diagram Technical Planning Server Specifications Linux Client Specifications Windows Client Specifications III. Implementation ................................................................................................................. 5 Installation of Asterisk Installation of Centos Installation of Windows 7 Asterisk Web Interface IV. VOIP Plan Test.................................................................................................................13 V. Conclusion .........................................................................................................................16 VI. Appendix ............................................................................................................................17
  • 3. Executive Summary Makingcalls is oftentimes very expensive for companies. Many companies are switchingto VOIPsystems that oftentimes cost less money or nothingat all. VOIP offers more thansimple calling, but all sorts of modules like messaging, Google Voice plugins, voicemail, andmuch more. Implementingsystems, such as Asterisk is a completely free andeasyto configure solution that will reduce costs for any business. It also adds a simple anduser-friendly way to make calls between clients bothinternally on your network and externally on other networks, which helps in cuttingdownon trainingtime. WithAsterisk, you do not need to worry about which operatingsystem your clients use,as longas you can downloada softphone to the client andconnect to the AsteriskServer.
  • 4. LINUX TELEPHONY - MARCH 2015 3 Project Planning For this project, a basic understanding of VOIP (Voice Over IP) is required. Also note that a basic understanding of network layouts is necessary. Some common terms mentioned are: Trunk – Pre-defined extension Extension – (For purposes of this project) The number used to reach a certain client SIP – Session Initiation Protocol Softphone – A software program for making telephone calls over the Internet This project is manageable on both a large-scale network, a small-scale network, or for testing purposes on a virtual machine without any notable issues. Network Diagram Figure 1 Network Diagram
  • 5. LINUX TELEPHONY - MARCH 2015 4 Technical Planning The followingspecificationswere used as part of the technical planning of the project entities. These include servers and client workstations. For this project, make 2 Asterisk servers, 2 Linux (Centos) clients, and 2 Windows(7) clients. Server Specifications Operating System AsteriskNow 1.8 Memory 1 GB Hard Disk 8 GB Network Cards 2 NICs (Internal & External) Figure 2 ServerSpecifications Linux Client Specifications Operating System Centos 5.6 Memory 1 GB Hard Disk 20 GB Network Cards 1 NIC Figure 3 Linux Client Specifications Windows Client Specifications Operating System Windows 7 Memory 2 GB Hard Disk 20 GB Network Cards 1 NIC Figure 4 Windows Client Specifications
  • 6. LINUX TELEPHONY - MARCH 2015 5 Implementation Implementation (for the purpose of this project) wasdone on VMware Workstation 10.0.1. Dependingon the size of the network, the time that implementation will take will vary. Installation of Asterisk When installingAsterisk, be sure to have 2 NICs already in the machine. There will be a prompt for which version of Asterisk the user wantsto install. It is important to select FreePBX 5.211.65 with Asterisk 1.8 Full Install. Figure 5 Choosing Which Asterisk To Install When prompted which Network Card you want to set up, select the second one and configure it with your internal network specifications.
  • 7. LINUX TELEPHONY - MARCH 2015 6 Figure 6 Setting IP's Once fully installed, open /etc/sysconfig/network-scripts/ifcfg-eth0 in either vi or nano. Make sure that the MAC address is the same as the MAC address on your first NIC. Configure the IP Address, Network Mask, and Gateway to be public. Next, make sure you can ping 8.8.8.8. If you cannot, make sure to go back and check your configurations. Once you can ping 8.8.8.8, reboot your machine. When the Asterisk server starts again, it will install an update for all of itsmodules. Installation of Centos Install Centos like normal. Set a user and root password. Make sure to write them down so you will not forget them. On Centos, for this project, Ekiga is the softphone of choice. Any softphone with SIP capabilitiesshould work fine though. Ekiga comes pre-installed on Centos. Installation of Windows 7 Install Windows7 like normal. Set a user and password. Make sure to write themdown so you will not forget it. On Windows7, for this project, X-Lite is the softphone of choice. Any softphone with SIP capabilitiesshould work fine though. X-Lite is not pre-installed on Windows7, so you will have to download it (for free) from their website. Asterisk Web Interface First, make sure your workstation is set to connect to the second NIC on your Asterisk machine. Once done, open the browser on any machine on the internal network, andtype intheIP Address ofAsterisk machine. This will bringyou to the AsteriskWeb Interface.
  • 8. LINUX TELEPHONY - MARCH 2015 7 Figure 7 Asterisk Web GUI Click on FreePBX Administration. You will be promptedto make an account. Once the account is made and you are signedin, you will be brought to a web interface that give a quicklook (with customizable modules) at your Asterisk machine. Figure 8 System Status First, you will need to add a user. At the topofthe page, clickAdmin. Under that, click“User Management”. Once opened, you will want to add a user. Create the Login Name andPassword. Leave everythingelse blank. Make sure “none” is selectedfor LinkedExtensions.
  • 9. LINUX TELEPHONY - MARCH 2015 8 Figure 9 User Settings Next, click Connectivity at the topofthe page. Then clickon one ofthe sub-categories called “Trunk”. Once opened, you will want to add a SIP Trunk. Give the Trunka name andleave all the other options under General Settings blank. Figure 10 Editing SIP Trunk Go down to OutgoingSettings. Copy the information inFigure 7 for your first Asterisk Machine. (Be sure to change the host, username, andfromuser configuration accordingly when configuringyour second Asteriskmachine.)
  • 10. LINUX TELEPHONY - MARCH 2015 9 Figure 11 Outgoing Settings For IncomingSettings, copy the configurationshownin Figure 8. (Be sure to change theUser Context accordingly to which machine your are doingthe configurations on.) As for the registeredstring, be sure to copy the configurationshownin Figure 8. (Be sure to change the User Context accordingly towhichmachine your are doingtheconfigurations on.) Figure 12 Incoming Settings Next, under Connectivity at the topofthe page, click on “OutboundRoutes”. You will want to add a route. For the Route Name, be sure toset a name accordingly to the Trunkyou made inthe previous step.
  • 11. LINUX TELEPHONY - MARCH 2015 10 Figure 13 Router Settings Scroll down to set the extensionroute. Inthis project, we are limitingit to a 3 number pattern witha single digit for a prefix. Follow the example in Figure 10. Lastly, be sure to set the TrunkSequence for Matched Routes to the trunkyou previouslymade. Figure 14 Setting DialPatterns For the last part intheAsteriskWeb Interface, under Applications at the top ofthe page, click “Extensions”. We want to create 2 extension (one for each workstation). Create the Display Name and SIP Alias (as shown inFigure 11). Set a secret (password) so you can login to the account witha softphone. Figure 15 Setting Display Alias
  • 12. LINUX TELEPHONY - MARCH 2015 11 Once all the configurations have been doneon the AsteriskWeb Interface (by clickingthe apply configurationbutton at the topofthe page), restart the Asterisk server to make sure all the configurations have been applied. Softphone Setup (Ekiga) Once the applicationis opened, go to Account Settings. Addthe account for one ofthe extensions createdpreviously. Be sure to set the Registrar to the internal IP oft he AsteriskServer. Oncethese settings are filled out, click the checkbox, and make sure the account is registeredwith the AsteriskServer. Figure 16 Softphone Setup(Ekiga) Softphone Setup (X-Lite) Once the applicationis opened, go to Account Settings. Fill out the settings withtheextensioncreated previously on the Asterisk Web Interface. Set the Domain to the internal IP ofthe AsteriskServer. Make sure the account is verified inorder to place calls.
  • 13. LINUX TELEPHONY - MARCH 2015 12 Figure 17 Softphone Setup(X-Lite)
  • 14. LINUX TELEPHONY - MARCH 2015 13 VOIP Plan Test To test all the configurations, simply open the configured softphone on each ofthe clients (both internally and externally) and make a call. Ifat any point you want to see what is happening on your Asterisk Server as these calls are beingmade, type the command“asterisk –rvv” Making Internal Calls To make an internal call, just input the extension ofthe user you want to call (as shownin Figure 18). Figure 18 Calling with Ekiga If everythingis correct, you shouldreceive an answer or decline prompt on the client that the call is beingmade to. Figure 19 Incoming Call
  • 15. LINUX TELEPHONY - MARCH 2015 14 Making External Calls To make a call to someone that is not on the same network, the only difference is addingthe prefix number thatyou created when dialing. Figure 20 Outgoing Call If everythingis correct, you shouldreceive an answer or decline prompt on the client that the call is beingmade to. You shouldalso be able to see that you are makingan external call when you go onto the AsteriskWeb Interface (as shownin figure 20).
  • 16. LINUX TELEPHONY - MARCH 2015 15 Figure 21 System Status WhileCalling
  • 17. LINUX TELEPHONY - MARCH 2015 16 Conclusion To conclude, watch out for misspellingwhile changingconfigurations. Also, watchout for which configurationyou do on each device, anddo not confusethem. Ifall goes correct, you will be able to place calls free both internally on any network, andexternally to any other network. References Wilson, C. (2014, August). Assistance Cann, J. (2014, August). Assistance http://asterisknowtutorial.blogspot.com/ http://www.callcentric.com/support/device/freepbx http://tyler.anairo.com/?id=3.1.0 http://www.voipvoip.com/asterisk/ http://siptrunkservice.com/pbx-configs/easy-sip-trunk-configuration-for-asterisk/ http://siptrunkservice.com/pbx-configs/how-to-configure-your-sip-trunk-in-asterisk/
  • 18. LINUX TELEPHONY - MARCH 2015 17 Appendix Figure 22 Figure 23
  • 19. LINUX TELEPHONY - MARCH 2015 18 Figure 24 Figure 25