This document outlines the planning and implementation of a VOIP system using Asterisk on Linux. It includes network diagrams, server and client specifications, and steps for installing Asterisk on CentOS and configuring extensions, trunks, and outbound routes in the Asterisk web interface. Tests of internal and external calls between softphones on Linux and Windows clients are also described. The goal is to provide a free solution for making calls over an internal network and to external networks to reduce calling costs.
5th Chapter of "Unified Communications with Elastix" Vol.1
(Version: Elastix 2.2)
We recommend to read the chapter along with the presentation.
http://elx.ec/chapter5
TekSIP is a SIP Registrar and SIP Proxy for Windows. TekSIP supports UDP, TCP, TLS and WebSocket transports. TLS and Secure WebSocket are supported in only commercial editions.
5th Chapter of "Unified Communications with Elastix" Vol.1
(Version: Elastix 2.2)
We recommend to read the chapter along with the presentation.
http://elx.ec/chapter5
TekSIP is a SIP Registrar and SIP Proxy for Windows. TekSIP supports UDP, TCP, TLS and WebSocket transports. TLS and Secure WebSocket are supported in only commercial editions.
Telephony Service Development on Asterisk PlatformHamid Fadishei
Asterisk is a major role player in the open source telecom world. In this workshop, participants will follow a step-by-step case study towards getting familiar with IVR service development on Asterisk platform using PHP programming language and AGI technology. The case study itself is a simple weather forecasting IVR service.
This is an introduction for a powerful ARM-linux based thin client which could used for microsoft and redhat-spice VDI solution with RDP、RemoteFX and SPICE protocols
This document describes ecosystem parameters setup for Genesys Compact Edition running in SIP
mode.
This concerns:
1. SIP gateway providing public network access to and from GCE SIP agent:
OXE
OXO
Audiocode Median 1000
2. phonesets for agents:
4008/4018
CounterPath Bria
Polycom Soundpoint 335
Brief tour about the features of Asterisk 10, Asterisk 11 and Asterisk 12, as well as features that convert one application considered as PBX like a Framework of developer of voice applications, and a tool so powerful as flexible.
Setting up VoIP management server using a communication framework and let the users from LTE networks to register and make voice calls over IP system as well as video session.
"Usually for connection of a raspberry pi for video output we need a HDMI output or a one time setup is needed for connection process with personal computer. This article says how to use laptop as the o/p device and to make the raspberry as the i/p device (Since laptop is the i/p device, this article via connection process will become reverse ether).
ProjectPurposeThe purpose of this project is to provide an o.docxwoodruffeloisa
Project
Purpose
The purpose of this project is to provide an opportunity for students to apply network administration and design competencies gained throughout this course.
Deliverables
Please choose ANY FOUR options from the following five options and complete the report for your chosen four options (OPTION 1 is MANDATORY).
Option 1: Network Design Case (100 points)
Option 2: Windows Security Firewall (33.33 points)
Option 3: Configuring OSPF Routing (33.33 points)
Option 4: Configuring EIGRP Routing (33.33 points)
Option 5: IPv6 Address Configuration (33.33 points)
Option 1: Network Design Case
Scenario
Consider that the prevailing market conditions have made it possible for our firm to expand our current operations. I have presented several options to our board of directors and they are eager to proceed with an expansion except for one condition. The board feels that our current telecommunications infrastructure hinders our business operations and that it is imperative to design a new voice and data infrastructure to facilitate the planned expansion. The board is prepared to advocate any prudent expenditure necessary to implement a new infrastructure at the upcoming stockholder’s meeting.
As you know, our firm is headquartered in San Antonio where we occupy the first and third floor of a large, but somewhat antiquated building. Each floor of the building measures 400 ft. by 250 ft. We currently have 52 Pentium-based PC’s located on the third floor to meet the needs of our accounting, billing, and phone sales departments. The first floor contains 17 Pentium-based computers and six Apple PowerMacs used by management, our receptionist, walk-in sales staff, and our adjusters. We currently have a 10Base2 network that is used to connect some, but not all, of our existing systems. The previous network manager told us the remaining systems could not be networked due to the 10Base2 architecture. We also have smaller offices in Austin, Houston, and Corpus Christi. These offices generally have 4 to 6 Pentium or Apple-based computers. The computers in these locations are not currently networked.
Our immediate expansion plans, if approved by the shareholders, include opening a second office in Houston, two offices in Dallas and an office in El Paso. These offices will be similar to the existing small offices operated in Austin, Houston and Corpus Christi. My vision for the new telecommunications network includes having all of the existing and proposed offices connected together in a seamless, secure manner. All of the computers in all of the offices should be connected.
Deliverables:
· I need to understand whether or not we can continue to build on our current network and why. I also need to know what we should use to replace it if we need to do so.
· I see the network as consisting of two primary parts, the networks within each facility and the network that connects the various facilities together. Please provide diagrams that illustrate h ...
Telephony Service Development on Asterisk PlatformHamid Fadishei
Asterisk is a major role player in the open source telecom world. In this workshop, participants will follow a step-by-step case study towards getting familiar with IVR service development on Asterisk platform using PHP programming language and AGI technology. The case study itself is a simple weather forecasting IVR service.
This is an introduction for a powerful ARM-linux based thin client which could used for microsoft and redhat-spice VDI solution with RDP、RemoteFX and SPICE protocols
This document describes ecosystem parameters setup for Genesys Compact Edition running in SIP
mode.
This concerns:
1. SIP gateway providing public network access to and from GCE SIP agent:
OXE
OXO
Audiocode Median 1000
2. phonesets for agents:
4008/4018
CounterPath Bria
Polycom Soundpoint 335
Brief tour about the features of Asterisk 10, Asterisk 11 and Asterisk 12, as well as features that convert one application considered as PBX like a Framework of developer of voice applications, and a tool so powerful as flexible.
Setting up VoIP management server using a communication framework and let the users from LTE networks to register and make voice calls over IP system as well as video session.
"Usually for connection of a raspberry pi for video output we need a HDMI output or a one time setup is needed for connection process with personal computer. This article says how to use laptop as the o/p device and to make the raspberry as the i/p device (Since laptop is the i/p device, this article via connection process will become reverse ether).
ProjectPurposeThe purpose of this project is to provide an o.docxwoodruffeloisa
Project
Purpose
The purpose of this project is to provide an opportunity for students to apply network administration and design competencies gained throughout this course.
Deliverables
Please choose ANY FOUR options from the following five options and complete the report for your chosen four options (OPTION 1 is MANDATORY).
Option 1: Network Design Case (100 points)
Option 2: Windows Security Firewall (33.33 points)
Option 3: Configuring OSPF Routing (33.33 points)
Option 4: Configuring EIGRP Routing (33.33 points)
Option 5: IPv6 Address Configuration (33.33 points)
Option 1: Network Design Case
Scenario
Consider that the prevailing market conditions have made it possible for our firm to expand our current operations. I have presented several options to our board of directors and they are eager to proceed with an expansion except for one condition. The board feels that our current telecommunications infrastructure hinders our business operations and that it is imperative to design a new voice and data infrastructure to facilitate the planned expansion. The board is prepared to advocate any prudent expenditure necessary to implement a new infrastructure at the upcoming stockholder’s meeting.
As you know, our firm is headquartered in San Antonio where we occupy the first and third floor of a large, but somewhat antiquated building. Each floor of the building measures 400 ft. by 250 ft. We currently have 52 Pentium-based PC’s located on the third floor to meet the needs of our accounting, billing, and phone sales departments. The first floor contains 17 Pentium-based computers and six Apple PowerMacs used by management, our receptionist, walk-in sales staff, and our adjusters. We currently have a 10Base2 network that is used to connect some, but not all, of our existing systems. The previous network manager told us the remaining systems could not be networked due to the 10Base2 architecture. We also have smaller offices in Austin, Houston, and Corpus Christi. These offices generally have 4 to 6 Pentium or Apple-based computers. The computers in these locations are not currently networked.
Our immediate expansion plans, if approved by the shareholders, include opening a second office in Houston, two offices in Dallas and an office in El Paso. These offices will be similar to the existing small offices operated in Austin, Houston and Corpus Christi. My vision for the new telecommunications network includes having all of the existing and proposed offices connected together in a seamless, secure manner. All of the computers in all of the offices should be connected.
Deliverables:
· I need to understand whether or not we can continue to build on our current network and why. I also need to know what we should use to replace it if we need to do so.
· I see the network as consisting of two primary parts, the networks within each facility and the network that connects the various facilities together. Please provide diagrams that illustrate h ...
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.
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/