Tag Archives: callcentric

Getting started with FreePBX – Part 3 Making external calls

This article assumes you have completed part 1 and part 2

So we have configured our trunk and our extension and now we need to tell FreePBX to use that trunk when someone dials a number. This is done by creating an Outbound Route.

The configuration below also takes in to consideration the fact that I am in the UK and that callcentric is a US company. Your setup may differ.

Creating an outbound route

First we need to click on “Outbound Routes” in the main menu on the left hand side of the screen

Continue reading

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

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)

Then restart Asterisk

You should now be able to create Inbound Routes based on you CallCentric DID numbers

CallCentric with FreePBX – free trunk setup

I’ve been using CallCentric as one of my SIP trunk and DID providers for several months now and it has worked really well. If you use FreePBX (or one of the prebuilt distributions that use it such as Trixbox, Elastix or PBX-in-a-flash) and use this link to sign up for a free CallCentric account I will configure your trunk in FreePBX for free.

Please use the contact form here if you would like to take up this offer.

Some of the services offered by CallCentric are –

  • US DID numbers from only $2.95/month
  • DID numbers in cities all over the world
  • US calls at only $0.0198 per minute
  • UK landline calls only $0.0198 per minute
  • Unlimited calling or pay-as-you-go plans

Getting the DID number from a CallCentric SIP trunk for FreePBX

I’ve got a few DDI numbers from CallCentric all around the world (UK, US, Australia) and couldn’t figure our how to setup an ‘Inbound Route’ in FreePBX that used the number that had been dialled to route the call.

It turns out that you need to extract the number from the ‘SIP header’ information and there’s no setting in FreePBX to do this so it means hacking at the Asterisk config files just a little.

Continue reading