Incoming Number to Extension Groups

Is it possible to limit what extensions a certain inbound number has access to?

So lets say someone calls in on number 555-5555, I want them to only be able to enter ext. 01, 02, 03. There would be many other ext. in the extensions.conf file, but I don’t want to allow them to be able to get to those.


I assume you plan to explicitly read the destination extension, or use the DISA application.

There are many ways of doing this.

I’m assuming that 555-5555 shares the same incoming trunk as other direct in dialing numbers, otherwise this is a trivial application of contexts.

One way would be to do:

exten => 5555555,1,Goto(restrictedcontext,${EXTEN},1}

If you don’t need to pass the dialed digits through, you can use s, instead of ${EXTEN}.

You can also just put different user input handling code in the 5555555 extension, directly.