Ricardo Carvalho
2007-Feb-16 10:56 UTC
[asterisk-users] Distinct call permissions for each user
Dear all, How may I configure my extensions.conf to stablish different PSTN access permissions for each user, letting for example user_A make only local calls and user_B make local and long-distance calls? I guess it can be done using include of other contexts, but how exactly? someone please give me one example? Thanks in advance, Regards, Ricardo.
> 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