Supported devices
ATA Adaptors
IP Phones
Cordless DECT IP Phones
IP PBX Software
Desktop Softphones
Mobile Softphones

Security considerations for Callcentric customers

3CX
3CX Version 6
3CX Version 12
3CXPhone (for Windows)
3CXPhone (Mobile)
Aastra 6753i
Acrobits/Groundwire for iPhone
Android SIP Client
Asterisk 1.4 and 1.2
Asterisk 1.6
Asterisk 1.6.2, 1.8, and 10
Asterisk Admin GUI
Bria Desktop
Bria Mobile
Callcentric Android App
Callcentric iPhone App
Callcentric Softphone
Cisco ATA 186/188
Cisco SPA112/SPA122
CloudTC Glass 1000
CSipSimple
D-Link DVG-1402S
Ekiga
Elastix
Gigaset A510 IP
Gigaset C610A IP
Gigaset DX800A
Grandstream DP715/710
Grandstream GXP1450
Grandstream GXP2110
Grandstream GXP2200
Grandstream GXV3140
Grandstream HandyTone 286
Grandstream HandyTone 486
Grandstream HandyTone 702
Innomedia SIP MTA-6328
Jitsi
Linksys PAP2
Linksys SPA3102
LinPhone Desktop
LinPhone Mobile
NCH Axon PBX
NCH Express Talk
Nokia E90
Obihai
OBi100
OBi202
pbx-in-a-flash
pbxnsip
pbxnsip Version 3
PhonerLite
Polycom SoundPoint IP 601
snom 1xx/2xx/3xx
snom 820
snom M9
snom ONE
SFLphone
SJphone
Telco AC-211
trixbox / Elastix / pbx-in-a-flash
Twinkle
Windows Messenger
UTStarcom F3000
X-Lite / X-Pro / eyeBeam
Yealink T32G
Yealink W52P
Yealink T46G
Yeastar MyPBX U100
ZoIPer
ZoIPer Mobile
Zoom 5801
Other Linksys/Sipura products
Generic / Other Device

DID-Based Routing with Asterisk
DID-Based Routing with trixbox / Asterisk Admin GUI / Elastix / PBX-in-a-Flash
DID-Based Routing with Asterisk
trixbox / PPX-in-a-Flash / Asterisk Admin GUI users click here
GENERAL INFORMATION
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.


RESOURCES
Main Project:
Asterisk - http://www.digium.com

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


CONFIGURATION
Prerequisites:
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:
[incoming]
exten => s,1,Set(Var_TO=${SIP_HEADER(TO)})
exten => s,2,GotoIf($["${Var_TO}" = "<sip:1777MYCCID@callcentric.com>"]?extension2,s,1:3)
exten => s,3,GotoIf($["${Var_TO}" = "<sip:1777MYCCID@ss.callcentric.com>"]?extension2,s,1:4)
exten => s,4,GotoIf($["${Var_TO}" = "<sip:MYCCDID@ss.callcentric.com>"]?extension1,s,1:5)
exten => s,5,GotoIf($["${Var_TO}" = "<sip:MYCCDID@66.193.176.35>"]?extension1,s,1:6)
exten => h,6,Macro(hangupcall)

Where <sip:1777MYCCID@callcentric.com> and <sip:MYCCDID@ss.callcentric.com> are the exact information returned by Callcentric's servers for your 1777 number and any DID on your account, respectively.

And where extension1 and extension2 are contexts which decide where to send the call. For example:
[extension1]
exten => s,1,Dial(SIP/100)

[extension2]
exten => s,1,Dial(SIP/200)


2. Save the file.

2 Configure your inbound routing to route to your DID routing context
In your extensions.conf file use the following, from-callcentric can also be your own incoming context:

[from-callcentric]
exten => s,1,Goto(incoming,s,1)


3 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.