Open Source Training Seminar


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


Requiring PIN input for trunk calls?

wnpaul's picture

In setting up a PBX for a school I need to configure the classroom extensions such that external calls require the input of a PIN (so only authorized personnel can make outside calls).

Can someone point me to some documentation on how to do that?

Thanks,

Wolf


__________________

Wolf N. Paul
wnp@doulos.at


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

You can set PIN's in the

jmullinix's picture

You can set PIN's in the outbound routes section of FreePBX. If you need phones that use the PIN's and some that don't, you could create a simple custom context in extensions_custom.conf to handle that such as:

[from-classroom]
exten => _XXXXX.,1,goto(outbound-allroutes,4445${EXTEN},1)
exten => _XXXXX.,n,hangup()
include => from-internal

Now create an outbound route with a pin set on it and make the match pattern in the Dial Pattern:

4445|XXXXX.

Now, anyone that pick up that phone can dial up to 5 digits and it will be processed by the normal dial plan. Any number with more than 5 digits, will be processed by the special route with the pin set. You will probably want to modify this a little to match your specific requirements, but this will get you started.

Theory of operation: the special context prepends "4445" to all numbers dialed that match the pattern. This is used to steer the call to the proper outbound route, where the steering digits are stripped back off and the call is processed as it was originally dialed.


__________________

John Mullinix, Cohutta.Com, Inc.
1-706-632-3343 -- sip://17066323343@qth.cohutta.org
Looking for Dundi peers in Baltimore, MD and Lake Wales, FL USA


How do I get an extension to use this?

wnpaul's picture

Sorry to get back to this with such a delay ...

How do I get a specific extension to go to that custom context [from-classroom]? Is there a way to do this from the GUI?

(**I** am perfectly happy to edit config files with vi, but I need to set this up and document it for non-UNIX geeks :-)


__________________

Wolf N. Paul
wnp@doulos.at


actually, there is an

p_lindheimer's picture

actually, there is an un-exposed option to allow specific phones to bypass the need of using a pin code. I can't recall if this will bypass pinsets as well or just the single static pincode. I don't recall the astdb setting that is needed for this but maybe John can look it up in his class notes and let you know. (sorry John, just too early for me:-)


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here