How to configure a Thirdlane PBX

In this article we will walk you through how to configure a Thirdlane PBX IP trunk at Telnyx.

C
Written by Customer Success
Updated over a week ago

Thirdlane IP-PBX  is complete business communications platform with a feature rich Multi Tenant IP PBX at its core. It addresses the needs of Internet Telephony Service Providers and other companies that need to provide multiple virtual PBXs (usually for different companies or departments) and manage them through a single web interface. This article guides you on how to configure this PBX for making and receiving calls over the internet through a next generation carrier like Telnyx!

Additional documentation:


Instructions for Configuring a Thirdlane PBX

In this activity you will:

Pre-requisites

1. Create a SIP trunk

Before we do anything, we are going to need to set up a SIP trunk to connect Thirdlane PBX with Telnyx. This will allow your Telnyx account to communicate with Thirdlane PBX so you can make and receive calls, SMS messages, configure routes, and more.

Note: When you create a new trunk, Thirdlane Configuration Manager will prefill the form with the values you specified in the default setup done as part of your pre-requisite activities.

  1. From your Thirdlane PBX portal, expand Telephony Settings in the left-hand menu and click on Trunks.

  2. Select Create Trunk and provide the following:

    1. Name: Unique alphanumeric name for the Trunk (no spaces or special characters are allowed). In some cases the name of IP Trunks will be provided to you by your service provider.

    2. Status: This setting is referenced in the default Thirdlane supplied scripts used for Outbound Routes. This allows to disable Trunk temporarily if required.

    3. Description: Description of the Trunk, optional.

    4. Available to tenants: Only available in Thirdlane Muti Tenant systems. Trunks can be created for use by all Tenants or only a particular tenant. If Trunk is set up for a particular Tenant it won't be available for use by other Tenants and will not appear as an option in Outbound Routes for other Tenants.

    5. Host: IP address of your VoIP service provider's gateway or proxy. In case of a "friend" Trunk type, you can also enter "dynamic" in this field. Peers handle both inbound and outbound calls and are matched by IP/port. Users handle inbound calls only. See Asterisk documentation for details about authorization rules.

    6. Outbound proxy: sip.telnyx.com

    7. Context: Specifies the context for this Trunk. For external inbound providers it should be set to the default from-outside context.

    8. User Name: Your Telnyx SIP trunk/account username

    9. Password: Your Telnyx SIP trunk/account password

    10. Enabled codecs: Use Telnyx codec preferences. Telnyx supports the following codecs:

      1. ulaw(g711u)

      2. alaw(g711a)

      3. g722

      4. g729

    11. Disabled codecs: Codecs to be disabled for this trunk. Either any that Telnyx does not support (see prior list) or any supported codecs you don't want to use

    12. Encryption: Call encryption for your trunk. You have the following options:

      1. Enforce. Make all the outbound calls via this Trunk encrypted and accept only encrypted inbound calls.

      2. Reject. Make all the outbound calls unencrypted and accept only unencrypted inbound calls.

      3. Negotiate, trying encrypted first. Try to make encrypted outbound calls first, and if that fails, fall back to unencrypted. Accept both encrypted and unencrypted inbound calls.

      4. Negotiate, trying unencrypted first. Try to make unencrypted outbound calls first, and if that fails, fall back to encrypted. Accept both encrypted and unencrypted inbound calls.

    13. DTMF mode: In-audio, RFC2833

    14. Quality (ms): No (the amount of time the server waits for keepalive packets from the endpoint.)

    15. Other Options: This section allows you to specify additional options that don't have corresponding GUI fields. Specify any additional options in the key=value form. Each pair should be entered on a separate line.

    16. Registration: Leave blank

    Expanding telephony settings through Thirdlane PBX portal.

Note: You can delete your trunk if you need to, however, deleting a trunk that it used by an outbound route will make the route invalid.

2. Configure trunk dialing

Before we start adding numbers that will be used to make/receive calls, we're going to want to make sure our trunk understands the way our numbers are dialed (For example, will you need users to dial 9 before calling out?) We will configure this in the following steps.

  1. From your Thirdlane PBX portal, expand System Management in the left-hand menu and click on Trunks.

  2. Edit the trunk you want to configure.

  3. Select the Trunk Dialing tab and provide the following information:

    1. Number of digits to strip: How many digits will be stripped from the front of a dialed number (for example, if you require users to press 9 to dial out, you'd strip 1 digit - the 9 - from the number before placing the call)

    2. String to prepend: The string that will be prepended from the dialed number. This can also be specified in your outbound routes.

    3. Dial command options: Prepends specific options to dial command options string.

    4. SIP Header: Allows you to add up to 4 custom SIP headers. For example:

      X-Custom-Header:VALUE

    Configuring trunk dialing through Thirdlane PBX portal.

3. Configure caller ID to work with your trunk dialing configuration

This section allows you to specify how to alter Caller ID on outbound calls given the trunk dialing configuration you set up in section 2.

  1. From your Thirdlane PBX portal, expand System Management in the left-hand menu and click on Trunks.

  2. Edit the trunk you want to configure.

  3. Select the Caller ID tab and enter the following:

    1. Number of digits to strip: How many digits will be stripped from the front of a dialed number (for example, if you require users to press 9 to dial out, you'd strip 1 digit - the 9 - from the number before placing the call)

    2. String to prepend: The string that will be prepended from the dialed number. This can also be specified in your outbound routes.

4. Set up phone numbers using provisioned DIDs

It's time to create a phone number that can be used to make/receive calls! The phone numbers will be created from the DIDs you provisioned from Telnyx during your pre-requisite activities.

  1. From your Thirdlane PBX portal, expand System Management > Telephony Settings in the left-hand menu and click on Phone Numbers (Some setups may say DIDs instead of Phone Numbers - for those who see DIDs, click on that) .All your phone numbers, if you have any, will be shown on this page.

  2. To filter your number view, use the controls above the phone number list.

    1. Select from: Allows you to filter out phone numbers. You can choose from:

      1. All

      2. Assigned to tenants

      3. Unassigned numbers

      4. Assigned to the currently selected tenant

      5. Phone numbers in use (such as those assigned to user extensions or voice menus)

  3. To add a range of new phone numbers:

    1. Enter your range using the From and To fields below the phone number list. (From bottom of range, to top of range)

    2. Prepend: This field prepends a prefix to the numbers in the range you're adding (for example, if a number starts with a 0 or a +)

    3. Assign: Check this checkbox if you want the new phone numbers to be assigned to the currently selected tenant.

  4. Click the Add Phone Numbers button.

    An interface to set up phone numbers using provisioned DIDs

    Note that you can also add phone numbers in bulk by uploading them in .csv format.

5. Configure inbound routes

In this section, you'll specify the inbound route that a caller will take when they dial a number (for example, routed to a certain user's extension or an IVR).

  1. From the left-hand navigation, expand the Selected Tenant Management dropdown.

  2. You'll see another dropdown called Call Routing. Click this dropdown and select Inbound routes.

    An interface for configuring call routes.

  3. Select Time Based Routes Group. Then select Add Route. Enter the details similar to the below. Press Save when you are finished.

    Selecting time based routes group for inbound routes.

At this point, inbound calling to your DID is now ready to go! Simply ensure you register your client to your PBX with the extensions username and password. The domain will be the public IP of your PBX server.

6. Assign any unassigned numbers to the tenant

If you have any numbers (DIDs) that you did not assign to your tenant when you added them in step 3, you can do that now.

  1. From the left-hand navigation, expand System Management and select DIDs.

    An interface to assign any unassigned numbers to the tenant

    These DIDs will be the ones that you purchased from your Telnyx Mission Control Portal account.

  2. Find the number you want to enable and click the checkbox beside the number.

  3. Select Assign Selected on the top-right of the screen. This will assign the DID to the current tenant and will make it accessible to be assigned to an extension.

    An interface for assigning selected DIDs.

7. Unassign numbers from the tenant

There will often be situations where you will also want to unassign a number from the tenant.

  1. To unassign assigned numbers, simply select the number(s) using the checkbox next to them and click Unassign Selected in the top navigation.

    Page to unassign numbers from the tenant.


    Note that you cannot unassign any number currently in use without first deleting its corresponding inbound route. We will discuss inbound routes in a later section.

8. Create extensions for your assigned numbers

In this section, you'll configure all of your extensions that you will associate with the DIDs you purchased from Telnyx and loaded in section 1.

  1. From the left pane, navigate to Selected Tenant Management and expand the dropdown. You'll see another dropdown called Extensions and Contacts.

  2. Click this dropdown and select User Extensions to view and create all your extensions and associate these extensions with your DIDs. These DIDs will be the one's you purchased from your Telnyx Mission Control Portal account

    Page for creating extensions for your assigned numbers 1.

  3. Click Create Extension and open the Basic tab.

  4. Enter the first name, last name and extension number for the user you're assigning to this extension.

    Page for creating extensions for your assigned numbers 2.

  5. Click Save. You'll now see an extension created in your extensions section.

    Page for creating extensions for your assigned numbers 3.

  6. Open the new extension for editing (pencil icon) and click on the Phone tab.

  7. Find the SIP User name and Password fields. The values in these fields, along with your server IP address, can be used to register other devices to register to the PBX. These devices will need to be registered so they can receive the inbound calls to the DIDs associated to the extensions.

    Page for creating extensions for your assigned numbers 4.

  8. Return to the DID section from the left-hand menu. Find the DID you just set up. You'll see that the Used in Inbound Routes checkbox is enabled and the DID is now associated to extension 101.

    Page for creating extensions for your assigned numbers 5.

9. Configure SMS gateway

In this step, you can configure an SMS gateway and your connections with SMS providers which will allow you to send and receive SMS messages.

  1. From your Thirdlane PBX portal, expand System Management in the left-hand menu and click on SMS Gateways.

  2. To create a new SMS gateway, click on the Create button and provide the following information:

    1. Name. Unique alphanumeric name for the SMS Gateway (no spaces or special characters are allowed).

    2. Provider. Telnyx

    3. Description. Description of the SMS Gateway, optional.

    4. Domain. Domain to be used to receive inbound SMS messages and status information sent by your SMS provider

    5. API Key. Provision here.

Once the SMS gateway is created, the Configuration Manager will generate a URL for receiving inbound SMS messages and status information sent by Telnyx. You need to specify these URLs on your Telnyx Mission Control Portal.

Note: You can delete your SMS gateway being used by an SMS enabled phone number if you need to, however, deleting a SMS gateway that it used by an inbound route will make the route invalid.


10. Enable SMS for your new phone number(s)

In this section, we will enable SMS for any phone number(s) you want to use for sending text messages.

  1. Expand System Management and click on Phone Numbers.

  2. Select the number(s) you want to SMS-enabled using the checkbox next to them

  3. Use the SMS Gateway dropdown to select an SMS gateway from a list of configured gateways.

  4. Click the Set SMS Gateway for selected button.

  5. After you've enabled SMS for your numbers, you can assign them to users in Inbound SMS Routes.

    Interface for SMS enablement for your new numbers.


11. Configure additional Thirdlane settings and post-requisites

The remainder of your setup doesn't require any further Telnyx-related configuration and you will want to refer to Thirdlane's documentation for the most current source of truth regarding their services. Before you can make calls, you'll need to ensure that the following conditions have been met:

  1. You have configured extensions and contacts through the Bulk Generator, User Extensions, and the Company Directory

  2. You have configured call routing: inbound routes, outbound routes, dialing permissions, and day/night mode

  3. You have configured inbound SMS routing

  4. You have configured additional Thirdlane-side PBX features

That's it, you've now completed the configuration of your Thirdlane IP-PBX and can now make and receive calls by using Telnyx as the SIP provider.


Additional Resources

Review our getting started with guide to make sure your Telnyx Mission Control Portal account is set up correctly.

Additionally, check out:

Did this answer your question?