STEP 1 |
Setup trunk and global options: |
|
Edit the sip.conf file with your favorite text editor and make the following changes:
- Add/change the [general] section with the following parameters:
[general]
dtmfmode=rfc2833
context=from-callcentric
srvlookup=yes
register => 1777MYCCID:[email protected]
- Add the following section to define the Callcentric trunk/peer:
[callcentric]
type=peer
context=from-callcentric
host=sip.callcentric.net
fromdomain=sip.callcentric.net
username=1777MYCCID
fromuser=1777MYCCID
secret=SUPERSECRET
insecure=very
canreinvite=no
disallow=all
allow=ulaw
- Add an extension to handle calls to/from your SIP phone. This is just a sample. Refer to Asterisk documentation and your SIP phone documentation for details. 123 is the extension of your phone.
[123]
context=to-callcentric
type=friend
username=123
secret=PASSWORD
host=dynamic
- Make sure to save your changes once done.
|
STEP 2 |
Edit the file extensions.conf: |
|
- Add the following section to route calls FROM callcentric TO your SIP phone with extension 123:
[from-callcentric]
exten => s,1,Dial(SIP/123)
- Add the following section to route calls FROM your SIP phone TO callcentric:
[to-callcentric]
exten => _X.,1,Dial(SIP/${EXTEN}@callcentric)
|
STEP 3 |
Verify Asterisk operations |
|
- Connect to asterisk console by running the following from the command line:
asterisk -r
- Verify that Asterisk is registered to callcentric with console command 'sip show registry'
*CLI> sip show registry
Host Username Refresh State
sip.callcentric.net:5060 1777MYPHONE 17 Registered
- Verify that your SIP phone is registered to Asterisk with console command 'sip show peers'
pbx*CLI> sip show peers
Name/username 123/123
Host 10.11.22.33
Dyn Nat ACL D
Mask 255.255.255.255
Port 5060
Status Unmonitored
If you see Host as "(Unspecified)" and Port as "0", then your SIP phone is not configured correctly.
- Disconnect from Asterisk by typing exit.
|
STEP 4 |
Placing Test Calls |
|
You can make a test call to 17771234567, or if you are signed up for one of Callcentric's rate plans you
can place a call to a traditional landline or mobile phone by dialing either:
1 + the area code and number for calls to the US
Or
011 + the country code, area code, and number for calls worldwide
(you may also use 00 instead of 011).
To test inbound calls from Callcentric to your Asterisk installation, follow the directions
listed in this FAQ. |