[Asterisk-Users] very newbie question

Leif Madsen leif.madsen at gmail.com
Sat Nov 27 13:44:44 MST 2004


On Sat, 27 Nov 2004 19:37:54 +0000, Corvin <corvin.dun at wp.pl> wrote:
> I have very simple question, how to limit SIP phone user making
> calls to for example longdistant calls?

This is how I do it -

I create 3 contexts in extensions.conf called basic, priviledged and
administrator (you could make more, but this is a basic example).

Then in sip.conf I specify the permission level I am giving that
extension (type=user) by doing a context=basic (or priviledged or
administrator).

Then in extensions.conf, "include" the contexts for those permission
levels.  For example:

;extensions.conf snippet

[basic]
include => e911
include => local-extens
include => voicemail

[priviledged]
include => basic
include => local-pstn-outgoing
include => ld-pstn-outgoing

[administrator]
include => priviledged
include => record-prompts

HTH,
Leif Madsen.
http://www.asteriskdocs.org



More information about the asterisk-users mailing list