[Asterisk-Users] Access Codes

trixter aka Bret McDanel trixter at 0xdecafbad.com
Sun Jan 29 15:36:47 MST 2006


On Sun, 2006-01-29 at 18:00 -0400, Dakota wrote:
> I would like to setup Asterisk as follows:
>  
> When users make inter-office calls they can dial the extensions,
> however if they want to make an external call, that they enter a code
> on their phone, before they external call can go through.
>  
> We would like to give each user an access code, this way we can limit
> certain employees from making certain calls to certain places.
>  
> What's the best recommendation for this?

There are 2 basic ways to do this.  You can in your dialplan do a read
and presumably a db check for the extension (I assume you dont want
hardcoded accounts, but ...)

The other way is via an agi that does the same thing.  AGIs generally
take more cpu than equivalent dialplan entries for short lived
applications, however for a long lived agi it may not (although it can
take more ram).


> 
-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
http://www.sacaug.org/ Sacramento Asterisk Users Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060129/938ed068/attachment.pgp


More information about the asterisk-users mailing list