Elastix: Connect a SIP Trunk
This article provides a step-by-step guide to configuring a SIP Trunk and outbound routes in Elastix, allowing your Elastix PBX to connect to a hosted PBX for making and receiving calls.
Scope
This article outlines how to configure a SIP Trunk between your hosted PBX and an Elastix PBX.
This article was written using Elastix 2.5.
Requirements
- SIP Trunk Information (see Create a SIP Trunk)
- Existing Elastix instance
NOTE: This article was written using an IP-based SIP trunk
Configure SIP Trunk
- 1
Using Internet Explorer, log in to the Elastix instance with admin credentials.
- 2
Navigate to PBX.

- 3
Under the Basic group, select Trunks.

- 4
Click Add SIP Trunk.

- 5
Trunk Name: Enter a descriptive name for the trunk.
- 6
Outbound Caller ID: "<CID Name>" <CID Number>

- 7
Leave Dialed Number Manipulation Rules empty and proceed to Outgoing Settings.
- 8
Trunk Name: pbx-out
- 9
PEER Details: Copy and paste the code below, replace
<Domain>with the full domain name and<Core>with the closest geographical core. If unsure, contact support.- ATL: sbc.ucaasnetwork.com
- NYJ: sbc-ne.ucaasnetwork.com
- SJE: sbc-west.ucaasnetwork.com
type=peer trustrpid=yes session-timers=refuse rfc2833compensate=yes qualify=no outboundproxy=<Core> nat=no insecure=port,invite host=<Core> fromdomain=<Domain> dtmfmode=rfc2833 disallow=all context=from-pstn canreinvite=no&no allow=ulaw,alaw
- 10
Under Incoming Settings, set USER Context to pbx-in.
- 11
USER Details: Copy and paste the code below, replace
<Domain>with the full domain name and<Core>with the closest geographical core. If unsure, contact support.- ATL: sbc.ucaasnetwork.com
- NYJ: sbc-ne.ucaasnetwork.com
- SJE: sbc-west.ucaasnetwork.com
type=user outboundproxy=<Core> host=<Core> fromuser=<Domain> fromdomain=<Domain>
- 12
Click Submit Changes.

- 13
Click Apply Config.

Configure Outbound Routes
- 1
Under the Basic group, select Outbound Routes.

- 2
Route Name: Enter a descriptive name for the route.
- 3
Route position: First before 9_outside.

- 4
Under Dial Patterns that will use this route, add a match pattern for XXXXXXXXXX.
- 5
Add an additional pattern for 1XXXXXXXXXX.
- 6
To enable international calling, add a pattern for 011.

- 7
Set Trunk 0 to follow the previously created trunk.

- 8
Click Submit Changes.

- 9
Click Apply Config.

Related Articles
Was this article helpful?