1 |
Required edit to Callcentric trunk and default configuration options |
|
In your sip.conf, or sip_general_custom.conf, file please make sure that the following values are present. Note that there should only be a single line like the following in the file being edited:
context=incoming
Once the change has been made please save the file.
Next please find your current configured Callcentric trunk, either through the web interface command line or method of your choice. Then make sure that the following values are present in the PEER details:
context=incoming
Then in your register string please make sure that your 1777 number is NOT present at the end of the string, "/1777MYCCID". Your register string should be formatted in the following manner:
1777MYCCID:SUPERSECRET@callcentric.com
* Where 1777MYCCID is your Callcentric account number and SUPERSECRET is the same password you create when you sign up for your Callcentric account. Optionally you may change your SIP password in your preferences.
Once done save your changes and reload your Asterisk process.
| 2 |
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 Admin GUI / 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)
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 |
Configure your inbound routing to route to your desired location |
|
In Asterisk Admin GUI / trixbox / Elastix / PBX-in-a-Flash make sure to configure an inbound route with your 1777 number as the "DID Number" and the "Caller ID Number" as blank. For example:
1777MYCCID / any CID
Then configure the various routes for your DIDs/number with the specific number as the "DID Number" and the "Caller ID Number" as blank. For example:
MYCCDID1 / any CID
MYCCDID2 / any CID
Set the destination for these inbound calls to your desired location. For example MYCCDID1 can go to an IVR while MYCCDID2 can be sent to the sales department.
|
4 |
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.
|
|