Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

8/26/2015

Trunkmanagementwith3CX

TrunkManagement
Onthistopic
Introduction
CreatingOutboundCallRules
CreatingDIDNumbers/InboundRules
AddingDIDs
ConfiguringDifferentOfficeHoursperDID
TroubleshootingDIDNumbers
Exporting&ImportingDIDs
ExportingDIDs
ImportingDIDs
CallerIDReformatting(CallerIDReWrite)
SeeAlso

Introduction
Outboundandinboundrulesdictatehow3CXPhoneSystemroutescallsbasedoncertaincriteria.Youcan,for
example,configurerulestocontrolthroughwhichVoIPgatewayorprovideracallwillbeplacedthrough,based
onleastcostrouting,sothatlocalcallsgothroughyourISDNlinesandinternationalcallsthroughyourVoIP
provider.YoucanalsocreateDID(DirectInwardDialing)numberswhichwillallowyoutoplacecallsdirectlytoa
usersextension,bypassingthereceptionistorIVR.

CreatingOutboundCallRules
AnoutboundruledenotesthroughwhichVoIPgateway/provideranoutboundcallshouldbeplaced.Basedon
whoismakingthecall,thenumberthatisbeingdialledorthelengthofthenumber.
WhenconfiguringaVoIPGatewayoraVoIPProvider,youwillbeaskedtocreateanoutboundrulethatwillbe
usedtoroutecallstotheGatewayorProvider.Youcanalsoedittheserulesorcreatenewonesfromthe
outboundrulesnode.

Tocreateanoutboundrule:
1. From the 3CX Management Console menu under select "Outbound Rules" > "Add Outbound Rule", and
enteranameforthenewrule.
2. Specifythecriteriathatshouldbematchedforthisoutboundruletobetriggeredwith.IntheApply this
ruletothesecallssection,specifyanyofthefollowingoptions:
CallstonumbersstartingwithprefixApplythisruletoallcallsstartingwiththenumberyouspecify.
Forexample,enter9tospecifythatallcallsstartingwitha9areoutboundcallsandshouldtriggerthis
rule.Callersshoulddial9123456toreachnumber123456.
Calls from extension(s) Select this option to define a particular extension or extensions range for
which this rule applies. Specify one or more extensions separated by commas, or specify a range
usinga,forexample100120.

http://www.3cx.com/docs/trunkmanagement/

1/7

8/26/2015

Trunkmanagementwith3CX
Calls to Numbers with a length of Select this option to apply the rule to numbers with a particular
digit length, for example 8 digits. This way you can capture calls to local area numbers or national
numberswithoutrequiringaprefix.
CallsfromextensiongroupRatherthanspecifyingindividualextensions,youcanselectanextension
group.

3. Now specify how outbound calls matching the criteria should be handled. In the Make outbound calls
on section, select up to three routes for the call. Each defined gateway or provider will be listed as a
possibleroute.Ifthefirstrouteisnotavailableorbusy,3CXPhoneSystemwillautomaticallytrythesecond
route.
ThealternativeOutboundRouteswillhavetobeconfiguredinorderforcallstotaketheseroutes,whenthefirst
isunavailable.BydefaultthesecondandthirdroutesBlockCalls.

4. You can transform the number that matches the outbound rule before the call is routed to the selected
gatewayorproviderusingtheStripDigitsandPrependfields:
StripdigitsAllowsyoutoremoveoneormoredigitsfromthecallednumber.Usethistoremovethe
prefixbeforeacallisdialledonthegatewayorproviderifitisnotrequired.Intheexampleabove,you
wouldspecifytoremoveonedigit,inordertoremovetheprefix9beforeitisdialled.
PrependAllowsyoutoaddoneormoredigitsatthebeginningofthenumberifthisisrequiredby
theproviderorgateway.
5. Youcanconfiguretheseoptionsperoutboundrule,sincearulethatappliestoaVoIPgatewayconnected
tothelocalPSTNwouldnormallyrequiredifferentcriteriathanarulethatappliestoaVoIPProvider.
SeeourOutboundRulesACompleteExampleofhowtocreateanoutboundrulein3CXPhoneSystem.

CreatingDIDNumbers/InboundRules
Manycompaniesprovideusersand/ordepartmentswithDirectorDIDnumbers,whichallowtheircontactsto
callthemdirectly,bypassingthereceptionist.DIDnumbersarereferredtoasDDInumbersintheUnited
KingdomandasMSNnumbersinGermany.Evenifyoumakeuseofadigitalreceptionist,adirectline/number
isoftenpreferablebecauseitsmoreconvenientforthecaller.

http://www.3cx.com/docs/trunkmanagement/

2/7

8/26/2015

Trunkmanagementwith3CX

DirectdialnumbersareeasilyimplementedusingInboundRules.DIDnumbersareprovidedbyyourVoIP
providerorPhoneCompanyandarevirtualnumbersassignedtoyourphysicallines.Usuallyyouareassigneda
rangeofnumbers,whicharelinkedtoanexistingBRI/T1/E1.Therewillbeanextrachargepernumberorper
range,butthiswillbeafractionofthecostofaddingphysicallines.EnquirewithyourPhoneCompanyorVoIP
providerformoreinformationaboutDIDnumbers.

AddingDIDs

ToaddaDID:
1. Fromthe3CXManagementConsole,select"InboundRules">"AddDID".
2. EnteranamefortheDID(forexampleSales).Note:TheDIDnamecanbeprependedorappendedtothe
Caller ID so as to identify on which number a caller has called you from. You can enable this from the
Settings>General>GlobaloptionspageunderInboundnametoCallerID.
3. UnderthenewInboundRule,theInboundRuleTypeallowsyoutochoosebetweenaDID/DDIor
callerIDnumbermask.
4. IntheDID/DDINumber/maskfield,entertheDIDnumberasitwillappearintheSIPtoheader (The
numberyourproviderhassuppliedasyourmain,orfirst,DIDnumber).3CXPhoneSystemwillmatchthe
number inserted in this field with the to header, starting from the last part of the received string, thus
avoidinganydifferencesintheformatofthenumber.Forexample,ifyouarebasedintheUKandyourDID
number is 08452304024, then you can enter the number 2304024. This will match any DID number
inserted in the to field ending with these numbers, including +448452304024, 08452304024,
00448452304024,and,ofcourse,2304024.
5. SelectforwhichGatewayorProviderportsyouwishtoaddthisDIDto.IftheDIDnumberisassociatedwith
multipleports,thenyoumustselecteachport.Aninboundrulewillbecreatedforeachportthatyouselect.
6. SpecifywhereyouwishtodirectcallsmadetothisDID:

http://www.3cx.com/docs/trunkmanagement/

3/7

8/26/2015

Trunkmanagementwith3CX
EndCall
Connectiontoextension
ConnecttoQueue/RingGroup
ConnecttoDigitalreceptionist
Voicemailforextension
Forwardtooutsidenumber
Sendfaxtoemailofextension

7. Youcanspecifythatanincomingcallisrouteddifferentlyifitisreceivedoutsideofficehours.Deselectthe
Sameasduringofficehoursoptiontospecifyadifferentroute.
8. ClickOKtocreatetheDID/Inboundrule.

ConfiguringDifferentOfficeHoursperDID
Businessesworkinggloballyacrossdifferenttimezones,willwanttoconfiguredifferentofficehoursandholidays
perDID.
Todothis:
1. Fromthe3CXManagementConsolemenu,clickAdd>DID/Inboundroute.
2. Give the rule a descriptive name. This will be used to identify which DID has been used when
troubleshooting,asitcanbeseeninthelogs.ItwillalsobeusedforidentifyingwhichDIDisbeingusedto
tomakethecall,andwillbedisplayedintheCallerIDofthedestinationphone.Thisoptioncanbeselected,
intheGlobalOptions,toprependthenameoftheDID.
3. IntheDIDnumber/masktypeinthenumber.Thiscanbeawholenumber,orawildcard,bothformats
willbeconsideredforprocessing.Forexample1235551234or*234.

4. Choosetheprovider/gatewayport.Thisisusedtoidentifyoverwhichlinethecallwillbecominginfrom.A
VoIP provider will only have one available port. A VoIP (PSTN) Gateway, will have one port for each
physical line, depending on the make and model. FXO gateways for example will have one port for each
line.E1/T1gatewayswillonlyhaveoneportpergateway.

5. In order to enable custom DID opening hours, uncheck the Apply the same routing logic Outside of
officehoursbox.

6. ChoosewhereyouwanttorouteoutofofficehourscallsintheOutsideOfficeHourssection.

7. CheckSetupSpecificOfficeHours.ThisoptionwillonlybeenabledifyoudisableApply the same


routinglogicOutsideofofficehours.ClickSetupSpecificOfficeHourstoopenupthedialogbox.

http://www.3cx.com/docs/trunkmanagement/

4/7

8/26/2015

Trunkmanagementwith3CX

8. SetyourofficehoursandclickOK.
9. CheckPlayHolidayPromptonPublicHolidaytoplaytheholidaypromptwheneverthereisaholiday.
10. ClickOK to accept the configuration of both the routing of the call as well as the opening hours of the
DID.
11. GototheSettingsnode>General.

12. IntheOfficeHourssectionclickonConfigureHolidays.Thiswillopenupaspecialdialogbox,where
youcandefineholidaysandrecordorselectprerecorded.wavfilestoplayfortheholidays.

13. GivetheHolidayaname,forexample,NewYear.
14. Choosethedatefortheholiday,forexample1January.SinceNewYearsDayrecurseveryyear,youcan
chooseeach instead of a year. Holidays with a steady date each year can be defined like this. Dates
whichdonothaveasteadydateeachyearcanbedefinedasandwhenaholidayoccurs,forexamplea

http://www.3cx.com/docs/trunkmanagement/

5/7

8/26/2015

Trunkmanagementwith3CX

bankholiday,youcandefinethecurrentyearorthenextyear.
15. ChooseaprompttoplayfortheHoliday.ClickAdd.
16. Chooseapromptfromthelistoffilesalreadyintherepository,andclickOK.
17. ClickAddtoaddtheholidayandprompttothePBX.
18. ClickOKtoexittheholidayconfiguration
19. ClickOKintheGeneralSettingstosavetheconfiguration.

TroubleshootingDIDNumbers
IfyouhavecreatedtheDIDs,butcallsarenotbeingforwardedasexpected,dothefollowing:
1. Go to the Server Activity log node in the 3CX Management Console. The Server Status screen lists
currentserveractivityandlogscallsthatarebeingreceivedandforwhichnumbertheywerereceivedon.
2. CalltheDIDnumberthatyouconfigured,andmonitortheServerStatuslog.Youwillseealinesimilarto:
Incomingcallfrom1000to<sip:789456123@3CXPhoneSystem>
where1000istheinternalnumberofthelineconfiguredtoreceivecallsfromtheVoIPGatewayorVoIP
Provider and <sip:789456123@3CXPhone System> is the content of the To header of the INVITE, i.e.
the intended recipient. (Note logging level should be set to Medium or Verbose to see additional
messages.)
3. NowanalysetheToheadercarefullyandensurethattheDIDnumberyouhavedialledispresentinthe
Toheader:<sip:789456123@3CXPhoneSystem>.
4. IfyouseeatextReviewinvite&adjustsourceidentification,youneedtoconfigureSourceidentification.
SeethechapterConfiguringaVoIPProvider/SIPTrunkformoreinformation.

Exporting&ImportingDIDs

(X)Ads
by

ExportingDIDs

OffersWizard

IfyouneedtoexportyourInboundRulestoa.CSVfileformattoeithersavethemasbackuportomake
changestothem,followthesesteps:
1. Logintothe3CXManagementConsole.
2. ClickontheInboundRulesnodeandselecttheDIDsthatyouwanttoexport.
3. ClickontheExportbuttontobeginexportingyourDIDrules.
4. Select a location and a file name for your exported DID rule file and click Save. Your rules will be
exportedandsavedintheCSVfile.

ImportingDIDs
IfyouwanttocreatemultipleDIDrulesyoucandosobycreatingthenecessaryfieldsonaCSVfileusingthe
correctformat,thenimportingthembackinto3CXbyusingtheimportfunction.
ToimportyourDIDsinto3CXfromaCSVfilefollowthesesteps.
1. Logintothe3CXManagementConsole.
2. ClickontheInboundRulesnodeandclickontheImportbutton.
3. BrowsetothefilethatcontainstheDIDrulesthatyouwanttoimport,selectitandclickOpen.
4. Theruleswillbeimportedin3CXPhoneSystem.
SeeCreatingandImportingDIDsformoreinformation.

CallerIDReformatting(CallerIDReWrite)
HereyoucanfindmoreinformationaboutCallerIDReformatting

SeeAlso
SeeourOutboundRulesACompleteExampleofhowtocreateanoutboundrules
SeeConfiguringaVoIPProvider/SIPTrunkformoreinformationonsourceidentification.
SeehowtocreateExtensionGroupstoaddtooutboundroutes.
Facebook

Twitter

Google+

AskaQuestion

http://www.3cx.com/docs/trunkmanagement/

6/7

8/26/2015

Trunkmanagementwith3CX

Pleaseonlypostquestionsinregardstothedocumentyouarecurrentlyreading.
Technicalsupportorpresalesquestionsmustbepostedviathesupportorsaleschannelsandsuchcommentswill
bedeleted.Thankyouforunderstanding
<

http://www.3cx.com/docs/trunkmanagement/

7/7

You might also like