Documente Academic
Documente Profesional
Documente Cultură
Abstract
653
Voicemail, In-line data transmission, and any other technologies are SIP and H.323[7]. SIP is an
task which a PBX system might perform now or in the application layer protocol, designed to be independent
future are handled by these separate modules. of the underlying transport layers and is used for
Codec Translator API Loads codec modules to establishing, managing and terminating a multimedia
support various audio encoding and decoding formats session.. In fact SIP is a text based protocol just like
such as GSM, Mu-Law, A-law, and even MP3. HTTP protocol and its lightweight approach towards
File Format API Handles the reading and writing of setting up a call is what makes it quite a popular choice
various file formats for the storage of data in the file for VoIP based networks [2].
system.
Using these APIs Asterisk achieves a complete
abstraction between its core functions as a PBX server
system and the varied technologies existing (or in
development) in the telephony arena. The modular
form is what allows Asterisk to seamlessly integrate
both currently implemented telephony switching
hardware and the growing Packet Voice technologies
emerging today[2]. The ability to load codec modules Fig 5: SIP call set up
allows Asterisk to support both the extremely compact
codecs necessary for Packet Voice over slow IAX is the Inter Asterisk Protocol used by Asterisk
connections such as a telephone modem while still and is a alternative to SIP ,H.323..Its generally used to
providing high audio quality over less constricted enable VoIP connections between servers and between
connections. The application API provides for flexible servers and clients.IAX is a very robust and fully
use of application modules to perform any function featured protocol yet its quite simple.. It is agnostic to
flexibly on demand, and allows for open development codecs and number of streams, meaning that it can be
of new applications to suit unique needs and situations. used as a transport for virtually any type of data.
In addition, loading all applications as modules allows [5]This capability will be useful as videophones
for a flexible system, allowing the administrator to becoming common.IAX supports both trunking and
design the best suited path for callers on the PBX multiplexing of the channels on the same link. In fact
system and modify call paths to suit the changing. the basic goals for which IAX was designed were 1)
Reduction in Bandwidth used in media transmissions
2) To provide basic support for NAT transparency and
3. Codecs and Protocols 3) To be easy to use behind firewalls.
654
make install For setting up a client on IAX client on Asterisk we do
make samples the following:
make progdocs
;[imran]
;type=friend
;secret=2222
;auth=md5
;host=dynamic
;reinvite=no
;canreinvite=no
;qualify=1000
;dtmfmode=inband;callerid="imran"<2222>
Fig7: Snapshot after the complete installation ;disallow=all
;allow=gsm
;context=incoming
Once it has been successfully installed we can start
Asterisk on the server by running the following
commands
/root/sam/asterisk-vvvc
655
yet done the connection of our server with the
conventional PSTN, though it could be done with the
help of PCI cards like for example Digium’s
TDM400P to validate the connectivity with the
existent circuit switched network
A S T E R IS K P B X
H o s t: H o m e
P h o n e L in e c o n n e c te d to F X O c a r d
PSTN
SER VER A
S IP C L IE N T S @ S c h o o l
S IP C L IE N T S @ H o m e
4001@ school
3001@ hom e
IN T E R N E T
4002@ school
3002@ hom e
2001
1001 1002
A S T E R IS K P B X
A n a l o g p h o n e s co n n e c te d t o F X S c a rd
H o s t: S c h o o l
2002
A n a lo g p h o n e s c o n n e c t e d
to F X S c a r d
server
Fig 12: Experimental set up of Asterisk based voice
Asterisk PBX currently support 4 types of exchange
extension: Zap (TDM), SIP (VoIP), IAX2 (VoIP) and a
custom extension. By utilizing the various options, 5. Conclusion and Future Work
enclosed within each extension, it is possible to
manipulate each extension’s behavior. The custom We expect that design and implementation
extension can be utilized to program special presented in this paper will be a valuable developing
functionality extensions, enabling the creation of guide for similar kind of operations. Asterisk based
extensions binded services, such as MicroBilling, voice exchange provides us with a much better
Information gathering, etc. Once an extension had been alternative solution. Its not only cost effective but also
defined, several optional parameters can be modified, provides us with various features which we generally
in order to complement the default settings..Special don’t get with the conventional circuit switched based
attention must be given to NAT traversal issues and PBX. Moreover the system also provides for unlimited
DTMF issues, when working with IAX based expansion and since it runs on a secure operating
extensions. system like LINUX, its much less prone to viruses,
You use a trunk to carry a call (or any number of worms and hackers. As far as future work is concerned,
calls) to a Voice Service Provider or a device that cares we would like to connect our Asterisk PBX with the
about what number you send to it (eg, another conventional circuit switched networks with the help of
Asterisk™/FreePBX™ Machine). There are 5 types of PCI cards like for example Digium’s TDM400P [7] .
trunks supported:
• Zap Trunk – Zap trunks provide connectivity 6. References
to legacy TDM systems via Analog interfaces
(FXO/FXS) or Digital interfaces (E1/T1). [1] Andre du Toit, “Private PBX Networks: Cost Effective
• IAX2 Trunk – IAX2 trunks provide Communication Solutions” in Proc. IEEE 3rd AFRICON Conference
interconnecting between Asterisk™ servers, 1992.
utilizing the Inter-Asterisk Exchange [2] Guo Fang Mao, Alex Talevski, Elizabeth Chang, ”Voice over
Protocol. Internet Protocol on mobile devices” in Proc. 6th IEEE ICIS 2007.
• SIP Trunk – SIP trunks provide
interconnecting between Asterisk™ and SIP [3] Md. Zaidul Alam, Saugata Bose, Md. Mhafuzur Rahman,
Mohammad Abdullah Al-Mumin, “Small office PBX using Voice
service providers, utilizing the Session over IP” in Proc. IEEE ICACT 2007, Feb 12-14 2007
Initiation Protocol.
• ENUM Trunk – ENUM trunks utilize the [4] Ryosuke Yamamoto, Fumikazu Iseki, Moo Wan Kim,
e164.org number lookup services, and as a “Validation of VoIP System for University Network” in Proc. IEEE
ICACT 2008, Feb 17-20 2008.
practice aren’t used in generic PBX
installations. [5] Asterisk.org, "Features and Architecture of Asterisk PBX",
• Custom Trunk – Custom trunks are available http://www.asterisk.org/features, accessed in March, 2006.
in order to configure any type of trunk which
[6] Taemoor Abbasi, Shekhar Prasad , Nabil Seddigh, Ioannis
is not covered by the previous trunks, eg. Lambadaris “A comparative study of the SIP & IAX voice
H323, BRI ISDN, etc. protocols” in Proc. IEEE CCECE/CCGEI, Saskatoon, May 2005
Here in our implementation, though we have not [7] Anand Gorti ”A fault tolerant VoIP implementation based on
open standards”, in Proc. IEEE 6th EDCC’06, 2006.
656