This guide provides the settings to manually configure the SIP registration for an Asterisk device with SIP.US. We recommend you create multiple redundant configurations to register the SIP trunk to each of our servers at gw4.sip.us and gw5.sip.us.
1) Create the SIP trunk names "xxxxxxxxxxGW#" for each registration, where xxxxxxxxxx is your SIP.US SIP trunk number and # is for identifying gw4 and gw5.
2. Add the "Peer Details":
- In the "host" line, add gw#.sip.us
- In the "fromdomain" line, enter gw#.sip.us
- Insert the SIP trunk number into the "username" line.
- Insert the SIP trunk password in the "secret" line.
3) Your settings should read as follows:
- type=peer
- insecure=port,invite
- host=gw#.sip.us
- port=5060
- dtmfmode=rfc2833
- canreinvite=no
- disallow=all
- allow=ulaw
- qualify=yes
- qualifyfreq=30
- nat=yes
- trustrpid=yes
- fromdomain=gw#.sip.us
- username="______________"
- secret="______________"
- context=from-trunk
- rfc2833compensate=yes
- session-timers=refuse
4) Add the Register String (xxxxxxxxxx is your SIP.US trunk number, yyyyyyyyyyyy is the SIP trunk password, and # is for the server gateway (gw)).
- xxxxxxxxxx:yyyyyyyyyyyy@gw#.sip.us
Outbound Routing
5) Create a Route name SIPUS_xxxxxxxxxx where xxxxxxxxxx is your SIP.US trunk.
NOTE: SIP.US requires 1+10-digit dialing within NANPA, N11/N33 for Emergency and Directory Services, and no prefix for international dialing (only country code + number). For more information, refer to this article on Setting Up Outbound Calling.
6) SIP.US recommends adding the following dialing patterns:
- 1NXXNXXXXXX
- N11
- N33
- 011 (The PBX needs to strip the 011)
7) Set the "Trunk Sequence" for "Matched Routes":
- xxxxxxxxxxGW4
- xxxxxxxxxxGW5
IMPORTANT: Ensure that you send a legitimate 10 or 11-digit caller ID. For more information, see Setting Up Caller ID.
If you experience issues with your configuration after following this guide, please contact the Support team at support@sip.us.