Callcentric - internet phone service

 Internet Phone Service

3 New features
USER LOGIN
Username:Password:
HOME PRODUCTS HOW IT WORKS FEATURES RATES SUPPORT SIGN UP

SUPPORT
 Contact Support  

Supported devices
3CX
3CX Version 6
Asterisk
Callcentric Softphone
Cisco ATA 186/188
D-Link DVG-1402S
Ekiga
freePBX / trixbox
Grandstream HandyTone 286
Grandstream HandyTone 486
Innomedia SIP MTA-6328
Linksys PAP2
Linksys SPA3102
NCH Axon PBX
NCH Express Talk
Nokia E90
pbxnsip
pbxnsip Version 3
Polycom SoundPoint IP 601
Snom 1xx/2xx/3xx
Sinoco SGW-2200
SJphone
Telco AC-211
Twinkle
U4EA Fusion 200/400
Windows Messenger
UTStarcom F3000
X-Lite / X-Pro / eyeBeam
ZoIPer
Zoom 5801
Other Linksys/Sipura products
Generic / Other Device
DID based routing with Asterisk
DID based routing with trixbox / freePBX / pbxinaflash
DID based routing with trixbox / freePBX / pbxinaflash
Regular Asterisk users users click here
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 initially configure DID based routing with Callcentric and freePBX / trixbox / pbxinaflash you will need to do further editing.
NOTE: This will only work with trixbox / freePBX / pbxinaflash since those are the systems which contain the ext-did context.

Below we will provide the necessary information to configure your freePBX / trixbox / pbxinaflash 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 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 Projects:
freePBX - http://www.freepbx.org
trixbox - http://www.trixbox.org
PBX In A Flash - http://www.pbxinaflash.org
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 freePBX / trixbox installation which can receive incoming calls from Callcentric. You may double check our 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:
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 freePBX / trixbox installation. To create this context you can either use the command line, a text editor of your choice 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>"]?extension1,s,1:3)
    exten => s,3,GotoIf($["${Var_TO}" = "<sip:MYCCDID@ss.callcentric.com>"]?ext-did,MYCCDID,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 servers for your 1777 number and any DID on your account, respectively.

    And where extension1 is a context which decides where to send the call. For example:
    [extension1]
    exten => s,1,Dial(SIP/100)


  • Save the file.

2 Configure your inbound routing to route to your DID routing context
Here we will configure the inbound context which will be used to handle the routing of inbound calls to your freePBX / trixbox installation. To create this context you can either use the command line, a text editor of your choice 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:

1. Enter the following context:

[incoming]
exten => s,1,Set(Var_FROM_DOMAIN=${CUT(CUT(SIP_HEADER(TO),@,2),>,1)})
exten => s,2,GotoIF($["${Var_FROM_DOMAIN}" = "callcentric.com"]?5:3)
exten => s,3,GotoIF($["${Var_FROM_DOMAIN}" = "ss.callcentric.com"]?5:4)
exten => s,4,GotoIF($["${Var_FROM_DOMAIN}" = "66.193.176.35"]?5:7)
exten => s,5,Set(Var_TO_DID=${CUT(CUT(SIP_HEADER(TO),@,1),:,2)})
exten => s,6,GotoIF($["${Var_TO_DID}" != ""]?ext-did,${Var_TO_DID},1:7)
; Users may edit the lines below to route incoming calls to other locations/contexts.
; If you don't know what this means then you should likely skip the lines below and
; allow the script to run unmodified
exten => s,7,GoTo(from-pstn,s,1)
exten => h,8,Playback(ss-noservice)
exten => h,9,Macro(hangupcall)


*Where ${Var_TO_DID} is a Callcentric number/DID on your account for which you have configured an inbound route in the web management interface. You may also replace ext-did,${Var_TO_DID} with your own desired context information however this is ONLY recommended for advanced users.

2. Save the file.

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

© 2010 Callcentric. All Rights Reserved