Follow

ASTERISK PBX

We recommend you create two trunk configurations for each SIPTRUNK.COM trunk to register to each of our servers at gw1.siptrunk.com and gw2.siptrunk.com. (gw1.siptrunk.com is primary and gw2.siptrunk.com is secondary)

Create the trunk name xxxxxxxxxxGWX where xxxxxxxxxx is your SIPTRUNK.COM trunk number and X is 1 for GW1 and 2 for GW2

Add the Peer Details(insert the number 1 or 2 for X in the host line and fromdomain line, insert the trunk number xxxxxxxxxx in the username line, insert the trunk password yyyyyyyyyyyy in the secret line):

type=peer
insecure=port,invite
host=gwX.siptrunk.com
port=5060
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
qualify=yes
qualifyfreq=30
nat=yes
trustrpid=yes
fromdomain=gwX.siptrunk.com
username=xxxxxxxxxx
secret=yyyyyyyyyyyy
context=from-trunk
rfc2833compensate=yes
session-timers=refuse

Add the Register String (xxxxxxxxxx is your SIPTRUNK.COM trunk number, yyyyyyyyyyyy is the trunk password, and X is 1 for GW1 and 2 for GW2)

xxxxxxxxxx:yyyyyyyyyyyy@gwX.siptrunk.com

Was this article helpful?
2 out of 5 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Roddy Dairion

    What is the dialplan suppose to look like? Mine look like this

    exten => _.,1,AGI(agi://127.0.0.1:4577/call_log)
    exten => _.,n,Dial(${SIPTRUNKA}/${EXTEN},,tTor)
    exten => _.,n,Hangup

    Yet I can't make calls to Mauritius for example? Is this normal?

  • Avatar
    Nitesh Katoch

    Try this

    exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
    exten => _X.,n,Dial(sip/${EXTEN}@SIPTRUNK,55,to)
    exten => _X.,n,Hangup

Powered by Zendesk