Professional Documents
Culture Documents
Teamname:VIP
Projectmembers:CamiloDeviaandGisooPark
1.Abstract
TheProjectweareproposingistosetupaVoIPsystem.TocreateaVoIPsystem,wefirst
plantouseaprogramcalledAsterisk.Thisprogramwillberuninvirtualmachinesandwill
allowsustocreateavirtualserver.Theultimategoalofdoingthisistobeabletousethis
servertosetupanIPPBX.OnceAsteriskisproperlysetup,weplantoinstallsoftphones
and/orinstallphysicalhardwaretobeabletomakeexternalcalls.
2.Introduction
VoIPisaconceptbothofuswillliketoexplore,howeverwefeltthatitwouldbemore
appropriatetoactuallybuildaprototypeforVoIP,duetothefactthatwewouldgainmore
insightintothistopicandbeabletogainexperiencecreatingsuchaprototype.
21.IPPBX
IPPBXcanhandlecallsandconnectbetweenphones.PBXstandsforPrivateBranch
Exchange,whichisaprivatetelephonenetworkusedwithinacompany.Theusersofthe
PBXphonesystemshareanumberofoutsidelinesformakingexternalphonecalls.APBX
connectstheinternaltelephoneswithinabusinessandalsoconnectsthemtothepublic
switchedtelephonenetwork(PSTN).OneofthelatesttendenciesinPBXphonesystem
developmentistheVoIPPBX,alsoknownasIPPBX,whichusestheInternetProtocolto
transmitcalls.IPPBXisasoftwarebasedPBXphonesystemsolutionwhichhelps
accomplishcertaintasksanddeliversservicesthatcanbedifficultandcostlytoimplement
whenusingatraditionalproprietaryPABX.TheAsteriskisoneofthemostwellknownopen
sourcePBX.AsteriskisasoftwareimplementationofahardwarePBXandcanrunona
varietyofhardwareplatforms.ThefeaturesandbenefitsofowninganAsteriskPBXare
numerous,andseeminglyonlylimitedbytheimaginationofthepersonwhosetsupanduses
anAsteriskPBX.TherearemanywaysofsettingupanAsteriskPBX.Afullyfunctional
AsteriskPBXistodownloadandinstallaprecompileddistributionsuchasTrixbox,PBXina
flash,AsteriskNOW,etc.AsteriskcanbeinstalledlinuxOSes(Debian,Ubuntu,Fedora,
Mandrake,SuSE,etc).Inthisprojectwewillcoverthestepsneededtoinstallandsetupthe
TrixboxAsteriskPBX.
22.SIPprotocol
SIP(SessionInitiationProtocol)isbasedonRFC2543(Ref.3)andisanapplicationlayer
signalingprotocol.Itdealswithinteractivemultimediacommunicationsessionsbetweenend
users.Itdefinestheirinitiation,modificationandtermination.SIPcallsmaybe
terminaltoterminal,ortheymayrequireaservertointercede.Ifaserveristobeinvolved,it
isonlyrequiredtolocatethecalledparty.ForinterworkingwithnonIPnetworks,Megacoand
H.323arerequired.Often,vendorsofVoIPequipmentintegrateallthreeprotocolsonasingle
platform.SIPiscloselyrelatedtoIP.SIPborrowsmostofitssyntaxandsemanticsfromthe
familiarHTTP(hypertexttransferprotocol).ASIPmessagelooksverymuchlikeanHTTP
message,especiallywithmessageformatting,headerandmultipurposeInternetmail
extensionsupport.ItusesaddressesthatareverysimilartoURLsandtoemail.Forexample,
acallmaybemadetosoandso@suchandsuch.SIPmessagesaretextbasedratherthan
binary.Thismakeswritingeasierandthedebuggingofsoftwaremorestraightforward.
23.Sipphones
SIPPhonesarethesamethingasVoIPPhonesorsoftphones.Thesearetelephonesthat
allowphonecallstobemadeusingVoIP(voiceoverinternetprotocol)technology.
TherearetwotypesofSIPPhones.ThefirsttypeisthehardwareSIPphone,which
resemblesthecommontelephonebutcanreceiveandmakecallsusingtheinternetinstead
ofthetraditionalPSTNsystem.SIPPhonescanalsobesoftwarebased.Theseallowany
computertobeusedasatelephonebymeansofaheadsetwithamicrophoneand/ora
soundcard.AbroadbandconnectionandconnectiontoaVOIPprovideroraSIPserverare
alsorequired.
24.VoIPGateway
Anetworkdevicethatconvertsvoiceandfaxcalls,inrealtime,betweenthepublicswitched
telephonenetwork(PSTN)andanIPnetwork.TheprimaryfunctionsofaVoIPgateway
includevoiceandfaxcompression/decompression,packetization,callrouting,andcontrol
signaling.Additionalfeaturesmayincludeinterfacestoexternalcontrollers,suchas
GatekeepersorSoftswitches,billingsystems,andnetworkmanagementsystems.
25.IVR
Interactivevoiceresponse(IVR)isatechnologythatallowsacomputertointeractwith
humansthroughtheuseofvoiceandDTMFtonesinputviakeypad.Intelecommunications,
IVRallowscustomerstointeractwithacompanyshostsystemviaatelephonekeypadorby
speechrecognition,afterwhichtheycanservicetheirowninquiriesbyfollowingtheIVR
dialogue.IVRsystemscanrespondwithprerecordedordynamicallygeneratedaudioto
furtherdirectusersonhowtoproceed.IVRapplicationscanbeusedtocontrolalmostany
functionwheretheinterfacecanbebrokendownintoaseriesofsimpleinteractions.IVR
systemsdeployedinthenetworkaresizedtohandlelargecallvolumes.IVRtechnologyis
alsobeingintroducedintoautomobilesystemsforhandsfreeoperation.Currentdeployment
inautomobilesrevolvesaroundsatellitenavigation,audioandmobilephonesystems.It's
commoninindustriesthathaverecentlyenteredthetelecommunicationsindustrytoreferto
anautomatedattendantasanIVR.Theterms,however,aredistinctandmeandifferentthings
totraditionaltelecommunicationsprofessionals,whereasemergingtelephonyandVoIP
professionalsoftenusethetermIVRasacatchalltosignifyanykindoftelephonymenu,
evenabasicautomatedattendant.
3.TheProjectComponents
31VMwarePlayer
5.0.0build812388
32.IPPBXServer
Trixbox2.8.0.4
33.Sipphones
1)Softphone:XLite5.0.0
2)MobileSoftphone:3CXPhone2.0.5,Media5fone3.2
3)Sipphone:CiscoSPA535G2
3.4.SIPGateway
CiscoSPA3102
4.BuildingIPTelephonysystem
41.InstallTrixboxIPPBX
Step1:DownloadVMwareandalsoTriboxFromhttp://fonality.com/trixbox/
Step2:MountTrixboxISOusingVMwarePlayer.
Step3:OnceMounted,Runtrixboxandwhenpresentedwiththisimagepressenter.
Step4:Thesetupwillaskyouforausernameandpasswordcreateoneatyour
discretion.afterthisletthesetupcompressthepackages.
Thisshouldtake520dependingonyoucomputerprocessingpower.
Step5:Entertheusernameandpasswordcreatedbefore,andthentypesetup.
Step6:Sinceweareusingtheinternetandnotalocalnetworkput*onDHCPfor
automaticmode.PressOKthiswillrebootthesystem.
OnceItrebootsthesystemwillchecktheconnections
Step7:TypeifconfigandrecordtheIPaddressandyouaredone.
42.SettingTrixboxIPPBX
421.NATsetting(Forconnectingphonesovertheinternet)
Step1:AfterfinishedtoinstallTrixbox,toconnectwebmanagerpageusingtheIP.
DefaultID:maint,P.W:password
Step2:ClickConfigfileeditor
Step3:Findsip_nat.conffile.Thefilewillbeempty.Insertthefollowinglines:
Externip=your_external_ip_address
localnet=internal.network.address_of_yourmachine/Subnetmask
Thenclickonupdateandafterrestartthemachine!
*Mustopentheportsinyourfirewallorrouter
Ports
UDPPort5060isforSIPcommunication.
UDPPort50605082range,SIPcommunications.
TCPPort5060isforSIPbutthoughttoberarelyused.
UDPPort1000020000isforRTPthemediastream,voice/videochannel.
422.Makingnewstations
Step1:ClickPBXtabandclickPBXsettingstab
Step2:ClickExtensionsandSelectDevice:GenericSIPDevicethenhitsubmitbutton
Step3:EnterUserExtension(ex:1000),Mustputnumbers
EnterDisplayName
Step4::Entersecret(whichusepasswordwhenasipphoneconnectwithIPPBX)
Step5:ClickApplyConfigurationChange
Step6:ClickContinuewithreload
423.MakingTrunktoconnectagatewayforoutboundcall
Inthisproject,weusedCiscoSPA3102gateway.
Theconfigurationoftrunkisveryvariousdependongateways
Step1:ClickTrunksandCreate SIPTrunk
Step2:ClickTrunksandselectaddSIPTrunk
EnterOutboundCallerID:yourpstnnumber(telephonenumber)
TrunkName:yourtrunkname
Step3:PEERDetails(Thispartismostimportant!!)
EnterbelowcommentsinthePEERDetailsblank.
disallow=all
allow=ulaw
canreinvite=no
context=from-trunk
dtmfmode=rfc2833
host=192.168.0.231 ; This IP address is gateway IP. Not Trixbox server IP.
incominglimit=1
nat=never ; if the gateway is not on your local network you may need nat=yes
port=5061
qualify=yes
secret=1234 ; Write password you want.
type=friend
username=1-pstn ; Must match the trunk name
Step4:Click Submit Changes and remember to click the orange bar
to update your system
424.MakingOutboundRoutes
Step1:ClickOutboundRoutes
RouteName:yourroutenamewhateveryouwant.
DialPatterns:9441XXXX
91XXXXXXXXXX
Thepointhereistousedialpatternsthatwillallowonlythosecalls
thatyouwishtogooutviathegateway
Trunksequence:SelectTrunkthatwemadeabove.
5.SettingSIPphones
51.Setupsoftsipphone(Xlite)
Step1:SettingSIPAccount
Accountname:name
UserID:Extensionnumber
Domain:IPPBXServerIPorDNS
Password:Extensionpassword
52.Setupmobilesipphone(Midea5fone)*CaninstallbothAppleandAndroid
Step1:InstallMedia5>SelectStartbutton>SelectPreConfiguredList
Step2:SelectAsterisk>SelectPreConfiguredList
Step3:RegistertheTrixboxServerandthePhonenumber.
Title:name
Username:Extensionnumber
Password:Extensionpassword
Address:IPPBXServerIPorDNS
53.SetupSipphone(CiscoSPA525G2)
Step1:CheckingthephonesIPaddressforconfiguration
Pressthephone'ssetupkey(Number11),SelectStatus>NetworkStatus
Step2:DirectyourbrowsertotheSPA5xx'swebuserinterface(webUI)
Enteradvancedmode.(Forexample:http://192.168.0.25/admin/advanced)
Step3:SelectExt1tab.
Step4:RegistertheTrixboxserverandthephoneinformation.
*ProxyandRegistration
Proxy:mytrixbox.iptime.org:5060
OutboundProxy:67.22.26.2175060
*SubscriberInformation
DisplayName:1006
UserID:1006(phonenumber)
Password:1006(phonepassword)
Step5:MoveRegionaltabandClearoutthedefaultverticalserviceactivationcodes.
Step6:ClickSubmitAllChanges.
Thiswillcausethephonetoreboot.Thephone'sextensionwillregisterwith
theTrixboxserver.Successfulregistrationisindicatedbythephone's
extensionLEDburninggreen.
Step7:Afterfinishedregistration,thephonewilldisplayfivelinesassamenumber.
Step8:Youcanmodifythisbychangingtheextensionassociatedwitheachlinekey
inthePhonetab.Eachextensioncanbeassociatedwithline1throughNor
theextensioncanbedisabledifyoudonotwanttousetheline.
6.Conclusion:
TocreateaVoIPsystem,wewillfirstcreatealocalIPPBXusingAsterisktocreatealocal
serverthatwillallowustoconnecthoststoit.Thishostcouldbebothdigitalinterfaces
runningoncomputersorphysicalphones.Theultimategoalistoeventuallyconnectthis
localIPPBXtotheoutsideworldandbeabletomakecallstoanyline.Thetimelineforthis
rangesfromseptembertoplanandprepare,septemberoctober(Setup),october
november(test),andnovember(implement).
7.References:
Book
1)Goode,B.,"VoiceoverInternetprotocol(VoIP),"ProceedingsoftheIEEE,vol.90,no.9,
pp.14951517,Sep2002
doi:10.1109/JPROC.2002.802005
2)UpkarVarshney,AndySnow,MattMcGivern,ChristiHoward,VoiceoverIP,
CommunicationsoftheACM,v.45n.1,p.8996,January2002[doi>10.1145/502269.502271]
3)Khasnabish,B.(2003)Frontmatter,inImplementingVoiceoverIP,JohnWiley&Sons,Inc.,
Hoboken,NJ,USA.doi:10.1002/0471225274.fmatter
4)Meggelen,J.,Smith,J.,Madsen,L.,Asterisk:TheFutureofTelephony.O'Reilly,2007
Asterisk:TheFutureofTelephony.O'Reilly,2007.O'Reilly,2007
5)Gomillion,D.,&Dempster,B.(2005).BuildingtelephonysystemswithAsteriskaneasy
introductiontousingandconfiguringAsterisktobuildfeaturerichtelephonysystemsforsmall
andmediumbusinesses.Birmingham,U.K.:PacktPub..
Internet
1)Ubuntu:Howtoinstallasterisk10onubuntu12.04LTSMyTechnicalNotes.(n.d.).My
TechnicalNotes.RetrievedSeptember10,2012,from
http://www.kartook.com/2012/05/ubuntuhowtoinstallasterisk10onubuntu1204lts/
2)default.(n.d.).SetUpYourOwnIPPBX.CharlesHayden'sHomePage.Retrieved
September10,2012,fromhttp://chayden.net/Asterisk/SeUpAsteriskAtHome
3)Freeman,R.(2006,June1).HowdoesVoIPwork?AtechnicalguidetofunctionalVoIP.
UnifiedCommunicationsinformation,newsandtipsSearchUnifiedCommunications.com.
RetrievedSeptember10,2012,from
http://searchunifiedcommunications.techtarget.com/feature/HowdoesVoIPworkAtechnical
guidetofunctionalVoIP
4)SmallBusinessPBX:TheBasicsCiscoSystems.(n.d.).CiscoSystems,Inc.Retrieved
September10,2012,fromhttp://www.cisco.com/cisco/web/solutions
5)HowDoesVoIPWork?|voipreview.org.(2012,September9).VoipVoipServiceVoip
Reviews|voipreview.org.RetrievedSeptember10,2012,from
http://www.voipreview.org/how_does_work
Conference
1)Alam,M.Z.Bose,S.Rahman,M.M.AbdullahAlMumin,M.,"SmallOfficePBXUsing
VoiceOverInternetProtocol(VOIP),"AdvancedCommunicationTechnology,The9th
InternationalConferenceon,vol.3,no.,pp.16181622,1214Feb.2007
doi:10.1109/ICACT.2007.358679
URL:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4195481&isnumber=4195435
2)Kapicak,L.Nevlud,P.Zdralek,J.Dubec,P.Plucar,J.,"RemotecontrolofAsteriskvia
WebServices,"TelecommunicationsandSignalProcessing(TSP),201134thInternational
Conferenceon,vol.,no.,pp.2730,1820Aug.2011
doi:10.1109/TSP.2011.6043783
URL:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=6043783&isnumber=6043654
3)Yeryomin,Y.Evers,F.Seitz,J.,"SolvingthefirewallandNATtraversalissuesfor
SIPbasedVoIP,"Telecommunications,2008.ICT2008.InternationalConferenceon,vol.,
no.,pp.16,1619June2008
doi:10.1109/ICTEL.2008.4652645
URL:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=4652645&isnumber=4652607
4)MacDonald,A.Cartas,R.Incera,J.,"AsteriskasaPublicSwitchedTelephoneNetwork
GatewayforanIMStestbed,"Telecommunications(ICT),2010IEEE17thInternational
Conferenceon,vol.,no.,pp.594599,47April2010
doi:10.1109/ICTEL.2010.5478843
URL:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5478843&isnumber=5478598
5)Prasad,J.K.Kumar,B.A.,"AnalysisofSIPandrealizationofadvancedIPPBXfeatures,"
ElectronicsComputerTechnology(ICECT),20113rdInternationalConferenceon,vol.6,no.,
pp.218222,810April2011
doi:10.1109/ICECTECH.2011.5942085
URL:
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5942085&isnumber=5942036