Elastix
This guide outlines the steps to configure Elastix to make and receive phone calls using the didlogic trunks. Before placing or receiving a call, ensure you have an active phone number and a SIP account created on your didlogic account.
Initial Configuration
To start configuring your Elastix system, please access the Elastix interface through a web browser and enter your username and password.

If your network equipment is behind a NAT, please follow the steps to set it up:
- From the left-hand navigation, go to PBX → Tools → Asterisk File Editor and filter for the
sip_nat.conffile. - Enter your local network subnet and your external IP in the fields labeled
localnetandexternip. - Click Save and then click Reload Asterisk.

To allow making and receiving calls, you need to create an extension. Follow these steps:
- Log in to the Elastix PBX Web Portal. In the left-hand menu, go to PBX Configuration.
- Click the Extensions button to open the menu, select Generic SIP Device, and then click Submit.

Option A: Digest Authentication
Use this method if your server uses a dynamic IP address or requires explicit authentication tracking. In this case, a didlogic SIP account refers to the Register Trunk in Elastix PBX. Follow these steps to set it up:
- Log in to the Elastix PBX Web Portal. In the left-hand menu, go to PBX Configuration → Trunks → Add SIP Trunk.

- Fill out the basic setup configuration form:
Trunk Name: Provide a descriptive name for the trunk.
Outgoing and Incoming Settings: Make sure the "type" of the first is a peer, and the second is a user.
Host: Enter one of didlogic's regional SIP gateway addresses. For optimal connectivity, choose the one closest to your location.
Registration: Enter in the formatusername:password@gateway

for Outgoing Settings:
- host=***provider ip address***
didlogic SIP gateway through which the call will go through - username=***userid***
your 5-digit didlogic SIP account - secret=***password***
your didlogic SIP account password - type=peer
for Incoming Settings:
- secret=***password***
your didlogic SIP account password - type=user
- context=from-trunk
Click the Submit Changes button, then click Apply Config to save the changes and complete the trunk configuration.
To check the registration status, open PBX → Tools → Asterisk-Cli. In the command field, enter: sip show registry and click Execute.

Option B: IP Authentication
Use this method for high-volume trunking profiles.
Prerequisite: You must first email [email protected], providing your server's public static IP to whitelist it on our core network. We will create a separate SIP account that will appear in your didlogic account.

The didlogic SIP account refers to the IP-based trunk in the Elastix PBX. You need to set up the trunk at the system administrator level of the Elastix PBX. Please follow these steps:
- Log in to the Elastix PBX Web Portal. In the left-hand menu, go to PBX Configuration → Trunks → Add SIP Trunk.

- Fill out the basic setup configuration form:
Trunk Name: Provide a descriptive name for the trunk.
Outgoing and Incoming Settings: Make sure the "type" of the first is a peer, and the second is a user.
Hostname: In the "host" and "outbound proxy "fields, enter one of the didlogic regional SIP gateway addresses. We recommend choosing the one closest to your location.
Registration: Leave blank.

For Outgoing Settings:
- host=***provider ip address***
didlogic SIP gateway through which the call will go through - outboundproxy=***provider ip address***
didlogic SIP gateway through which the call will go through - username=***userid***
your 5-digit didlogic SIP account - type=friend
For Incoming Settings:
- type=user
- context=from-trunk
Click the Submit Changes button, then click Apply Config to save the changes and complete the trunk configuration.
An IP-authenticated SIP account cannot be used as a destination for DIDs, as it does not maintain registration with didlogic regional gateways. In this case, you should route calls to a valid SIP URI address instead.
Outbound & Inbound Call Routing
Sign in to the Elastix PBX web portal to configure outbound and inbound rules for making and receiving calls.
Outbound Routes
From the left-hand menu, make your way to PBX → PBX Configurations → Outbound Routes, then provide the following information:
Route Name: Choose a name that makes your route easily identifiable.
Route CID: The number you purchased with didlogic that you want to assign to this route.
Route Position: Select the position of the route. You can change the positions of routes in the right corner of the portal.
Dial Patterns: Enter your dial patterns here. Use as many as necessary.
Trunk Sequence: Select the SIP account created with didlogic.
If you require the configuration of any additional fields, you can configure them as needed.
Once done, click Submit Changes and Apply Config to configure the trunk settings.

When making outbound calls through the didlogic SIP account, dial phone numbers in the E.164 international format. E.164 numbers can be up to fifteen digits long and are typically structured as: [+][country code][subscriber number with area code].
For example, a US number in E.164 format would be +18312011936. The didlogic platform will reject calls to numbers that do not include a country code or use national access codes.
Below are typical examples of phone numbers incorrectly formatted according to the E.164 international standard:

Inbound Routes
From the left-hand menu, navigate to PBX → PBX Configurations → Inbound Routes, then provide the following information:
Description: A description of your route that makes it easily identifiable.
DID number: Enter the number you purchased with didlogic that you want to assign to handle inbound calls.
Extensions: Specify the extension to which calls should be routed.
Click Submit and Apply Config to save settings.

Inbound Routing at didlogic
- Log in to your didlogic account and navigate to the PURCHASED tab in the top menu.
- Click Edit under the Destination section.

- Select the SIP device and the destination SIP account.
- Click Add to set the destination for the DID.

An IP-authenticated SIP account cannot be used as a destination for DIDs, as it does not maintain registration with didlogic regional gateways. In this case, you should route calls to a valid SIP URI address instead, e.g. [email protected]:5060;transport=udp.
Once you have successfully configured the Elastix PBX and created extensions, you can register the endpoints (such as WebRTC, mobile app, Windows Desktop app, IP phone, or any SIP-based device) to the PBX. This will allow you to make and receive calls.
Troubleshooting
| Issue | Likely Cause | Solution |
|---|---|---|
| 603 Declined | Registration Failed | Verify that Registration Required is checked and credentials match. |
| 603 Declined | Max Rate Limit | Ensure the destination rate doesn't exceed your account's "Max Rate" setting. If you would like to increase it, please contact [email protected]. |
| No Audio | Firewall/NAT | Ensure UDP ports 10000-20000 are open for RTP traffic. |
| Calls Fail | Wrong Format | Use E.164. Never dial 00 or + unless your ARS handles the conversion. |
| Inbound Calls Don't Come Through | Firewall/NAT or Setup Issue | Make sure IP addresses of didlogic regional gateways are allowed on the firewall. Verify Line Group ID: Ensure the correct Line Group ID is assigned to both the trunk and the route. Use System Monitor in IP Office to see how the call is being presented. This can help you verify the format of the incoming DID and troubleshoot mismatches. |