SIP

Connecting an Asterisk server

Connect your Asterisk based server to Sonetel by following these steps.

The settings below assume that the user account being setup on Asterisk has the email address user_name@domain.com

  1. Add the following to your sip.conf.
    [soneteltrunk]
    type=friend
    username= user_name
    fromdomain=domain.com
    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
  2. Once this is done, you can 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
  3. 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)=+NUMBER
    exten => _X.,n,Dial(SIP/${EXTEN}@SonetelTrunk)

 

+NUMBER in step 3 above should be a phone number in your Sonetel account that can be used as caller ID in outgoing calls. If you wish to use numbers that you own outside Sonetel as your caller ID, please assign a static IP to your Asterisk server and contact support@sonetel.com.