Callcentric - internet phone service

 Internet Phone Service

Help?
USER LOGIN
Username:Password:
HOME PRODUCTS HOW IT WORKS FEATURES RATES SUPPORT SIGN UP

 SUPPORT 
 Contact Support  

Supported devices
3CX
Asterisk
Callcentric Softphone
Cisco ATA 186/188
D-Link DVG-1402S
freePBX / trixbox
Grandstream HandyTone 286
Grandstream HandyTone 486
Innomedia SIP MTA-6328
Linksys PAP2
NCH Axon PBX
NCH Express Talk
pbxnsip
Snom 1xx/2xx/3xx
Sinoco SGW-2200
SJphone
Telco AC-211
Twinkle
U4EA Fusion 200/400
Windows Messenger
X-Lite / X-Pro / eyeBeam
Other Linksys/Sipura products
Generic / Other Device
DID based routing with Asterisk and trixbox / freePBX
DID based routing with Asterisk and trixbox / freePBX

GENERAL INFORMATION
In this guide we will configure inbound routing based on the DID (number) information returned by Callcentric. Since you are not able to directly configure DID based routing with Callcentric and freePBX / trixbox you will need to do further editing.

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

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

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


RESOURCES
Main Project Pages:
freePBX - http://www.freepbx.org
trixbox - http://www.trixbox.org
Asterisk - http://www.dgium.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 or freePBX / trixbox installation which can receive incoming calls from Callcentric. You may double check our Asterisk or freePBX / trixbox setup guides 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:
STEP 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 / freePBX / trixbox installation. To create this context you can either use the commanline or the trixbox interface to edit the extensions_custom.conf file.

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

  • 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:MYCCDID@ss.callcentric.com>"]?extension1,s,1:4)
    exten => h,4,Macro(hangupcall)


    Where <sip:1777MYCCID@callcentric.com> and <sip:MYCCDID@ss.callcentric.com> are the exact information returned by Callcentric's serves 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)


  • Save the file

STEP 2 Configure your inbound routing to route to your DID routing context
  • If you are using a standard Asterisk installation please follow the instructions below otherwise continue on to the trixbox/FreePBX instructions.

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


  • In trixbox configure an inbound route with your 1777 number as the DID Number and the Caller ID Number as blank. For example:

    1777MYCCID / any CID

    Set the destination for these inbound calls to Custom App with a value of incoming,s,1.

View screenshot

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


About Us | Privacy Policy | Terms & Conditions | Money Back Guarantee | 911/E911 | Contact Us | Agent Program

© 2008 Callcentric. All Rights Reserved