Limit extensions to certain outbound routes?

pedernales

New Member
Joined
Aug 5, 2008
Messages
7
Reaction score
0
I have a client who needs an extension in a somewhat public area...the kind you don't want to allow long distance calling, or even local without a code.

But I cannot figure out how to limit an extension by means of a code (911 excluded of course), without affecting all extensions...and I would prefer to not change the long distance trunk to use a PIN or password.

Is it possible to limit an extension to certain outbound trunks? If so I could create new trunks that do have PINs or a special dialing code and point the extension that way.

All help much appreciated!
 
Yup, it is possible.

Create a new context in extensions_custom.conf

[from-lobby]
exten => 911,1,goto(from-internal,${EXTEN},1)
exten => _1XXX,1,goto(from-internal,${EXTEN},1)
exten => _x.,1,hangup()

Change the second line to match your internal extensions pattern. Then put this phone in the from-lobby context in FreePBX instead of from-internal.
 
How would I do it so that an extension will always dialout on line 3 for example? Right now all extensions dialout in the order of the "outbound routes" setup. I need a couple of extensions to use a different trunk order.
 
Get the custom-contexts module and install it. Then you can set up individual routes and assign them to the custom context.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top