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

8 thoughts on “CallCentric trunk setup with Asterisk/FreePBX

  1. matt Post author

    Callcentric do support G729 so you can change the allow= line and add it there. You’ll need a codec/license for g729 through for your Asterisk box unless you just want to do pass-thru (which means you can’t transcode or do DTMF)

  2. matt Post author

    While it may not be RFC compliant unfortunately it’s necessary to route based on the format provided by the ITSP

  3. Pingback: ยป CallCentric trunk setup with Asterisk/FreePBX « Gregory Reese Research

  4. elmohem

    I do not hear any message I must hear enter-pin-number .
    What is wrong?

    — Executing [[email protected]:2] DeadAGI(“SIP/CallCentric-0000001c”, “a2billing.php,1”) in new stack
    — Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php — Playing ‘prepaid-enter-pin-number.gsm’ (language ‘en’)
    — Playing ‘prepaid-no-card-entered’ (escape_digits=#) (sample_offset 0) — Playing ‘prepaid-enter-pin-number.gsm’ (language ‘en’)
    — Playing ‘prepaid-no-card-entered’ (escape_digits=#) (sample_offset 0) — Playing ‘prepaid-enter-pin-number.gsm’ (language ‘en’)
    — AGI Script a2billing.php completed, returning 4
    == Spawn extension (a2billing-callingcard, 19292231243, 2) exited non-zero on ‘SIP/CallCentric-0000001c’

  5. matt Post author

    Is the A2Billing server behind a NAT router, or has a piblic IP address?

    If it’s on your local network it’s likely you are hearing no audio because of problems with NAT

Comments are closed.