Multi-Tenant Asterisk

Multi-Tenant Asterisk

Updated: 1/2/2018

Overview: This article provides a quick guide for configuring a multi-tenant Asterisk server to integrate with Tenfold.

 

Getting Started

If you have an Asterisk server that is multi-tenant (multiple organizations or departments on the same server), you will need to limit the events being processed to those for your organization.

1. Use the Call Sequence Tool in the Dashboard Troubleshooting tab to see how the events come in.
2. Look at the channel variables to determine which part is the extension and which part is the organization identifier.
3. Navigate to the Dashboard Company Settings tab > Phone System and click on the “Change Advanced Options” button.
4. Refer to the examples below for a reference of how to set these fields. Authoring regex’s can be tricky, so please feel free to reach out to us for help with this if needed.

 

Multi-Tenant Configuration Examples

Example 1: SIP/9997007-000120ad

Channel: SIP/9997007-000120ad
The user extension is 7007. We know this because we made the sequence calling from 7007.
We then know that 999 is an identifier for this tenant.

Accordingly, you would set:

onlyLogIfChannelMatch: ^sip/999
internalMatch: ^(sip/999(\d{3,6})-|Local)
dialinExtMatch: sip/999(\d{3,6})-|Local/(?:.*?)(\d{2,10})#?@

Note: You would substitute 999 with the organization prefix assigned to your organization.

 

Example 2: SIP/ABC_7007-000120ad

This example is very similar to the one above but the organization or tenant identifier is separated by an underscore ( _ ).

Channel: SIP/ABC_7007-000120ad

onlyLogIfChannelMatch: ^sip/ABC
internalMatch: ^(sip/ABC_(\d{3,6})-|Local)
dialinExtMatch: sip/ABC_(\d{3,6})-|Local/(?:.*?)(\d{2,10})#?@

Comments are closed.

Do you need some help?

Submit a Request

Tenfold is trusted by the companies you rely on everyday

Schedule a Live Demo