SIP

Can I connect Asterisk to Sonetel?

Yes. To use Sonetel as a SIP-trunk for Asterisk, follow these steps.

  1. Signup for a Sonetel account.
  2. Setup your Asterisk to send calls via Sonetel (see details below).
  3. Send us the static public IP address of your Asterisk server from where you will send us SIP traffic and we will add it to your account.


Instructions for setting up Asterisk

To setup your Asterisk, you need to first setup a Sonetel trunk. Add the following in your sip.conf.

[soneteltrunk]
type=friend
username=soneteltrunk
fromdomain=mycompany.com       ;<your company’s domain name>
host=sonetel.com
outboundproxy=sip.sonetel.com
disallow=all
allow=ulaw,alaw
qualify=yes
dtmf=rfc2833
nat=auto_force_rport
canreinvite=no
insecure=invite,port
context=sonetel
sendrpid=yes

Once this is done, you can optionally setup IP phones to make test calls via your Asterisk.

[1001]           ;replace with a name or digits of your choice
type=friend
host=dynamic
secret=password    ;<password of your choice>
allow=ulaw,alaw
context=sonetel

Then, you need to update the dial plan to instruct your Asterisk to send calls from these IP phones via the Sonetel trunk. Dial plan to be updated in Extensions.conf

[sonetel]
exten => _X.,1,NoOp(${EXTEN:1})
exten => _X.,n,Set(CALLERID(num)=Sonetel Number you wish to display in +E164 format, such as +16465565566)
exten => _X.,n,Dial(SIP/${EXTEN}@SonetelTrunk)

Place test calls to a number next to you to validate its functioning.

You can send any Sonetel number that you have in your account as your caller ID. See details below on how caller IDs work with SIP trunks.


Caller ID with SIP trunks

When you make a call via the SIP trunk, you can send any of your Sonetel phone numbers in your account as the caller ID. You can do this by specifying this in the SIP INVITE. We will set the same number as the caller ID in the call to mobiles or landlines. If you send a caller ID in the INVITE that is not one of your numbers in your Sonetel account, we will automatically choose any Sonetel number from your account and send that as the caller ID to the mobile or landline.