One Server Two Different Operators

Good afternoon,

I want to separate extensions on how they behave when they dial 0.

i.e i want extensions 1001-1100 when they dial 0 to ring to operator 1000
and extensions 2001-2100 when they dial 0 to ring to operator 2000

Is this possible?

Thank you

On Tuesday 21 January 2025 at 15:54:39, techmulti via Asterisk Community
wrote:

i.e i want extensions 1001-1100 when they dial 0 to ring to operator 1000
and extensions 2001-2100 when they dial 0 to ring to operator 2000

Put them in different contexts when you define the “extensions”.

Antony.

–
Tinned food was developed for the British Navy in 1813.

The tin opener was not invented until 1858.

This is a multpost from the FreePBX forum, where it was difficult for me to answer. Removing the FreePBX constraint:

Note I will read extension as endpoint, as I don’t believe you mean an Asterisk extension here.

Option 1: Put the endpoints into two different contexts, with different definitions of extension 0. Include a third context that contains numbers available to both groups.

Option 2: Use the extension/caller-ID notation for extension 0, with the caller ID being patterns to match the two number ranges. Because you have used 1 based numbering, rather than the more common 0 based numbering, for phone systems, you will need to repeat this multiple times, or use patterns that cover 1000 to 1199 and 2000 to 2199.

Option 3: use conditional logic based on arithmetic range tests.

1 Like

First of all thank you for your swift response.

Second, unfortunately i am not knowledgeable on contexts and don’t know how to implement your options.

Can you point me in the right direction how to do it if you want?

Or some reference?

Thank you in advance

Contexts are absolutely fundamental to Asterisk dialplans. You need to become familiar with them, before you seek help, or you need to hire someone who is familiar.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.