CallCentric trunk setup with Asterisk/FreePBX
Here is my CallCentric configuration for FreePBX.
If you’re thinking about signing up with CallCentric please use my referral link here. Thanks.
Trunk Name: CallCentric
PEER Details:
username=1777XXXXXXX
type=peer
secret=PASSWORD
qualify=yes
nat=no
insecure=very
host=callcentric.com
fromuser=1777XXXXXXX
fromdomain=callcentric.com
dtmfmode=rfc2833
disallow=all
context=custom-get-did-from-sip
canreinvite=yes
allow=ulaw
Register String:
1777XXXXXXX:PASSWORD@callcentric.com/1777XXXXXXX
PEER Details:
username=1777XXXXXXX
type=peer
secret=PASSWORD
qualify=yes
nat=no
insecure=very
host=callcentric.com
fromuser=1777XXXXXXX
fromdomain=callcentric.com
dtmfmode=rfc2833
disallow=all
context=custom-get-did-from-sip
canreinvite=yes
allow=ulaw
Register String:
1777XXXXXXX:PASSWORD@callcentric.com/1777XXXXXXX
Please note: the above number starting 1777 is your account number and not you DID number
You also need to add 2 lines to one of the configuration files to correctly extract the DID number from incoming calls.
Edit /etc/asterisk/extensions_custom.conf
Add the following lines
[custom-get-did-from-sip]
exten => _.,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)
exten => _.,1,Goto(from-trunk,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)
Then restart Asterisk
You should now be able to create Inbound Routes based on you CallCentric DID numbers
Related posts:
- Getting the DID number from a CallCentric SIP trunk for FreePBX
- CallCentric with FreePBX - free trunk setup
- Sipgatge trunk with Asterisk/FreePBX

Leave a comment