Asterisk VoIP Private Branch Exchange
Asterisk VoIP Private Branch Exchange
net/publication/224562385
CITATIONS READS
13 1,436
3 authors, including:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Mohammed Abdul Qadeer on 22 December 2016.
Abstract-This paper intends to present some important As we know that a PBX (Private Branch Exchange) is a
theoretical and practical results that we faced during setting private telephone network used within a company and it handles
up a VoIP (Voice over Internet Protocol) server with the an organization’s voice and data communications [1]. In our
well known open source VoIP server Asterisk. For a fully experimental setup we tried to establish a PBX system that
functional voice exchange we require to set up a server works with incoming and outgoing voice calls. We used PC to
based on Asterisk, connecting clients to the server with the PC communication for simulating the whole task, however IP
help of soft/hard phones and then comes the configuration phones could also be used in the place of PC’s. Here in our
aspects of the soft phones with the server. Here in our implementation, though we have not yet done the connection of
implementation we have connected the clients to the server our server with the conventional PSTN, though it could be done
with the help of SIP protocols. with the help of PCI cards like for example Digium’s
TDM400P to validate the connectivity with the existent circuit
Keywords-VoIP, Asterisk, PBX, IAX, SIP, Trunks. switched network.
1. INTRODUCTION ASTERISKPBX
Host: Home
Phone Line connected to FXOcard
PSTN
SERVERA
The term VoIP stands for Voice over Internet Protocol.
VoIP originated in mid 90’s, when hobbyists began to realize SIP CLIENTS@School
the potential of sending voice data packets over the internet SIPCLIENTS@Home
4001@school
The idea is to use the internet as a telephone network with some INTERNET
additional capabilities. VoIP converts the voice signal from a
telephone into a digital signal, sends it through the internet, and 3002@home
4002@school
ASTERISKPBX
Analog phones connected to FXScard
Host: School
2002
SERVERB
When we are using a PSTN line, we typically pay the Fig 2: Experimental setup
charges according to the time usages. In addition we couldn’t
VoIP uses the Internet Protocol to transmit voice as packets
talk to more than one person at a time. However with VoIP
over an IP network. So VoIP can be achieved on any data
mechanism we can talk all the time, with every person we want,
network that uses IP like the Internet, Intranets and Local area
as far as we want and in addition we can talk with many people
networks (LAN).Here the voice signal is digitized, compressed
at the same time. If we are still not convinced we can consider
and converted to IP networks and transmitted over IP networks
that while we re talking we can exchange data with the people
[2].
we are talking with.
2. ASTERISK AS A VOICE EXCHANGE between various users and automated tasks. The Switching Core
transparently connects callers arriving on various hardware and
Asterisk is a complete PBX in software written in C software interfaces.
programming language and it runs on Linux operating systems. Application Launcher launches applications which perform
Asterisk does voice over IP in many protocols, and can services for uses, such as voicemail, file playback, and directory
interoperate with almost all standards-based telephony listing.
equipment using relatively inexpensive hardware like for ex Codec Translator uses codec modules for the encoding and
PCI cards [3]. Asterisk in fact creates a PBX that rivals the decoding of various audio compression formats used in the
functionalities of traditional telephone based systems. telephony industry. A number of codecs are available to suit
diverse needs and arrive at the best balance between audio
quality and bandwidth usage.
Scheduler and I/O Manager handles low-level task
scheduling and system management for optimal performance
under all load conditions.
218
IMPACT-2009
for media in order to provide NAT and firewall traversal. One Contains all of asterisk’s sound files for playback and pre-
solution involves tunneling the media packets within TCP or loaded applications (eg: VoiceMail).
HTTP packets to a relay. This solution uses additional • /var/lib/asterisk/agi-bin
functionality in conjunction with SIP, and packages the media Contains all of asterisk’s AGI scripts and AGI logic.
packets into a TCP stream which is then sent to the relay. The
relay then extracts the packets and sends them on to the other For our experimental setup we configured the SIP and the
endpoint. If the other endpoint is behind a symmetrical NAT or Extensions at the following:
corporate firewall that does not allow VOIP traffic, the relay SIP: /etc/asterisk/sip.conf
would transfer the packets to another tunnel. Extensions: /etc/asterisk/extensions.conf.
For setting up a client on SIP client on Asterisk we do the
following:
;[phone1(ale)]
;type=friend
;secret=2222
;auth=md5
;host=dynamic
;reinvite=no
;canreinvite=no
;qualify=1000
;dtmfmode=inband;callerid="ale"<2222>
;disallow=all
;allow=gsm
Fig 5: SIP allowing
;context=incoming.
219
IMPACT-2009
exten => extension no, priority, application (argl,arg2,...) less prone to viruses, worms and hackers. As far as future work
exten => 1111,1,Dial(SIP/${EXTEN}) is concerned, we would like to work on connecting our Asterisk
exten => 2222,1,Dial(SIP/${EXTEN}) PBX with the conventional circuit switched networks with the
exten => 3333,1,Dial(SIP/${EXTEN}) help of PCI cards like for example Digium’s TDM400P[7] .
exten => 4444,1,Dial(SIP/${EXTEN})
REFRENCES
220