Some people prefer to add a trunk in to Elastix manually, instead of using our module which does everything automagically! That's fine with us, so here are some steps to help you in that endeavour.
From the "PBX" tab in Elastix, go to the "Trunks" link. After selecting "Add New Sip Trunk" you need to edit the trunk settings. We suggest making two trunks and naming one, "SIPUSGW1" and the other "SIPUSGW2." The settings on each should be identical, only the name and the gateway you are registering to should change. One should be set to register to gw1.sip.us and the other gw2.sip.us
You may refer to the images below for specific trunk settings, however the peer details are listed here to cut and paste (ensure that you change gw1.sip.us to gw2.sip.us for the second trunk:
type=peer
insecure=port,invite
host=gw1.sip.us
port=5060
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
qualify=yes
qualifyfreq=30
nat=yes
trustrpid=yes
fromdomain=gw1.sip.us
username=<ENTER YOUR TRUNK # -NO CARROTS>
secret=<ENTER YOUR TRUNK PASSWORD -NO CARROTS>
context=from-trunk
rfc2833compensate=yes
session-timers=refuse
Be sure to input a registration string in the format of TRUNKNUMBER:TRUNKPASSWORD@gw1.sip.us (except insert gw2.sip.us when setting up that trunk).
Once you have finished adding the trunks it's time to set your Outbound Routes. Under the "PBX" tab go to the "Outbound Routes" link, and add a new outbound route. Give the route a descriptive name and add the dial patterns you wish to match (our favorite examples are in the images below).
You may need to change the route position as Elastix has a standard route position which is first. We have deleted that route in our examples, we did not need to change the "Route Position."
Finally, change your "Trunk Sequence" to ensure that your trunk for gw1.sip.us is first (0) and you trunk for gw2.sip.us is second (1).
Save and apply the changes! You should now be able to make outbound calls through sip.us. If you have problems after trying this guide, you can always submit a support ticket using the link at the top-right of the page!
Comments