Configure 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: 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})#?@

    Missing Something?

    Check out our Developer Center for more in-depth documentation. Please share your documentation feedback with us using the feedback button. We'd be happy to hear from you.