well I did not need to change anything in my Incoming section. I followed the instructions from callcentric website from which you have posted a snippet. I skipped this (the part which you have posted) and let the any DID/any CID catch the incoming calls for starters.
So here are the steps I took to get incoming callcentric working:
1. Configure the trunk as per instructions
here
Actually I used only the following settings:
- Add/change [general] section to indicate the following parameters:
[general]
dtmfmode = rfc2833
register => 1777MYCCID:SUPERSECRET@callcentric.com
- Add the following section to handle calls to/from callcentric:
[callcentric]
type=peer
context=from-callcentric
host=callcentric.com
username=1777MYCCID
secret=SUPERSECRET
fromuser=1777MYCCID
fromdomain=callcentric.com
insecure=very
The register line goes in the register line of trunk and rest everything goes in outbound settings of the trunk. Leave the inbound blank.
Then goto incoming settings and make sure you have a any CID/any DID setting to catch all incoming calls. connect to asterisk cli using asterisk -fcvr. You should be able to verify that you are registered to callcentric server. Now call the number and you should see some prints scrolling on your screen. Try the above and post your results back.