[asterisk-users] Distinct call permissions for each user

Luki lugosoft at gmail.com
Fri Feb 16 20:34:39 MST 2007


> someone please give me one example?

[locals]
exten => _NXXXXXX,1,Macro(outcall,${EXTEN})

[longdistance]
exten => _1NXXNXXXXXX,1,Macro(outcall,${EXTEN})

[macro-outcall]
exten => s,1,Dial(SIP/${ARG1}@...)
exten => s,2,Dial(Zap/.../${ARG1})

[fullaccess]
include => locals
include => longdistance
include => ...

[restricted]
include => locals
include => ...

Put user A into the restricted context, and user B into the fullaccess
context. You can include other extension (i.e. services) and implement
roll-over onto a backup trunks in macro-outcall.

You can of course also simply it and only have two contexts and no macro, etc.

--Luki


More information about the asterisk-users mailing list