Supported devices
ATA Adaptors
IP Phones
Cordless IP Phones
IP Conference Phones
IP PBX Software/Hardware
Desktop Softphones
Mobile Softphones

Security considerations for Callcentric customers

3CX Version 6
3CX Version 12
3CX Version 12.5
3CX Version 15
3CX Version 16
3CXPhone (for Windows)
3CXPhone (Mobile)
Aastra 6753i
Acrobits/Groundwire for iPhone
Android SIP Client
Apivio MWP1100
Asterisk 1.4 and 1.2
Asterisk 1.6
Asterisk 1.6.2, 1.8, and 10
Asterisk 14
Asterisk 17 CHAN_SIP (Vanilla)
Asterisk 17 PJSIP (Vanilla)
Asterisk Admin GUI v2.11
Asterisk Admin GUI v12
Asterisk Admin GUI v13
Asterisk Admin GUI v15
Bria Solo
Bria Desktop
Bria Mobile
Cisco ATA 186/188
Cisco SPA112/SPA122
CloudTC Glass 1000
D-Link DVG-1402S
Gigaset A510 IP
Gigaset C610A IP
Gigaset DX800A
Grandstream DP715/710
Grandstream DP750/720
Grandstream DP752/730/722
Grandstream GAC2500
Grandstream GRP2612
Grandstream GRP2613
Grandstream GRP2614
Grandstream GRP2615
Grandstream GXP1450
Grandstream GXP1620
Grandstream GXP1625
Grandstream GXP1630
Grandstream GXP1760
Grandstream GXP1782
Grandstream GXP2110
Grandstream GXP2130
Grandstream GXP2140
Grandstream GXP2160
Grandstream GXP2170
Grandstream GXP2200
Grandstream GXV3140
Grandstream GXV3240
Grandstream GXV3275
Grandstream GXV3370
Grandstream GXV3380
Grandstream HandyTone 286
Grandstream HandyTone 486
Grandstream HandyTone 702
Grandstream HandyTone HT802
Grandstream HandyTone HT814
Grandstream HandyTone HT818
Grandstream UCM6102
Grandstream UCM6204
Grandstream Wave Lite
Grandstream WP820
Htek UC803
Htek UC860
Htek UC924
Htek UC926
Innomedia SIP MTA-6328
Innomedia BuddyTalk 110
Linksys PAP2
Linksys SPA3102
Linphone Desktop (v4.1.1)
Linphone Desktop (v3.4.3)
Linphone Mobile
Linphone Mobile (v.3.2.3)
NCH Express Talk
Nokia E90
pbxnsip Version 3
Polycom SoundPoint IP 601
Polycom SoundStation IP 5000
snom 1xx/2xx/3xx
snom 820
snom D717
snom D735
snom D785
snom M9
snom ONE
Telco AC-211
trixbox / Elastix / pbx-in-a-flash
Windows Messenger
Unidata ICW1000G
Uniden EXP1240
UTStarcom F3000
Vodia PBX (v5)
Vodia PBX (v64.0)
VTech VCS754
VTech VDP650
VTech VSP600
VTech VSP725
VTech VSP726
VTech VSP735
VTech VSP736
X-Lite / X-Pro / eyeBeam
Yealink T32G
Yealink T41S
Yealink T42G
Yealink T42S
Yealink T46G
Yealink T46S
Yealink T48S
Yealink W52P
Yeastar MyPBX U100
ZoIPer 3.2
ZoIPer 5
ZoIPer Mobile
Zoom 5801
Zycoo CooVox U20
Other Linksys/Sipura products
Generic / Other Device

DID-Based Routing with Asterisk
DID-Based Routing with Asterisk

In this guide we will configure inbound routing based on the DID (number) information returned by Callcentric. In order to do this you will need to do further editing to your current Asterisk configuration.

Below we will provide the necessary information to configure your Asterisk installation to route based on the called DID in your Callcentric account.

Understand that this guide presents the most basic configuration for configuring DID based routing and is meant as a learning tool to assist you in configuring your own complex routing.

The setup information below is based on Asterisk 1.4; although most other older and newer versions should be very similar.

Please note that Callcentric is not responsible for preventing unwanted physical or remote access your IP PBX. If your IP PBX is compromised then you will be responsible for any damage caused.
Please be sure to read this guide regarding securing your IP PBX solution.

Main Project:
Asterisk -

Help and Support:
AussieVoIP sip_header information - sip_header
AussieVoIP context information - contexts
AussieVoIP extension information - extensions

In order to use this guide you will need a properly configured Asterisk installation which can receive incoming calls from Callcentric. You may double check our Asterisk setup guide to make sure that your system can at least initially receive incoming calls.

Once you can receive incoming calls properly you may configure DID based routing by following the instructions below:
1 Creating or editing the inbound context
Here we will configure the inbound context which will be used to handle the routing of inbound calls to your Asterisk installation. To create this context you can either use the command line or a text editor to edit the extensions.conf file.

Once you are able to access the extensions.conf file you can follow the steps below:

1. Enter the following context:
exten => s,1,Set(Var_TO=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})
exten => s,2,GotoIf($["${Var_TO}" = "1777MYCCID"]?to-100,s,1:3)
exten => s,3,GotoIf($["${Var_TO}" = "DID1"]?to-100,s,1:4)
exten => s,4,GotoIf($["${Var_TO}" = "DID2"]?to-101,s,1:5)
exten => s,5,Hangup

exten => s,1,Dial(SIP/100,20)
exten => s,n,Hangup

exten => s,1,Dial(SIP/101,20)
exten => s,n,Hangup

NOTE: Any instance of 1777MYCCID should be replaced with the 1777 number assigned to you by Callcentric. EXT is the three digit extension you are trying to register this UA to.

For example: 17770001234101 would register to extension 101 on account 17770001234. However, if you are registering towards the main/default extension of your Callcentric Account (extension 100), you can simply use your 1777 number without the 3 digit extension suffix (example: 17770001234).

Where DID1, and DID2 are located, please replace it with the number(s) you've acquired from our service. So for example, if your account number is 17770001234 and you've acquired the numbers 12125551000 and 12125551001, the block of code would look something like:
exten => s,1,Set(Var_TO=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})
exten => s,2,GotoIf($["${Var_TO}" = "17770001234"]?to-100,s,1:3)
exten => s,3,GotoIf($["${Var_TO}" = "12125551000"]?to-100,s,1:4)
exten => s,4,GotoIf($["${Var_TO}" = "12125551001"]?to-101,s,1:5)
exten => s,5,Hangup

And where to-100 and to-101 are contexts which decide where to send the call. In our example code, inbound calls towards 12125551000 will route towards extension 100 and inbound calls towards 12125551001 will route towards extension 101.

2. Save the file.

2 Placing Test Calls
Once you are done save your changes and then test incoming calling to see that your Asterisk setup now routes inbound calling based on the number called.

To test inbound calls from Callcentric to your new DID based routing setup, follow the directions listed in this FAQ. You will also want to test calls directly to your DID from a PSTN phone if you have a DID on your account.