Exactly. Create a context that just allows what you want him to do. If this gets complex - with multiple permission levels - then you create smaller context fragments and include them. Best, </edg> --On Saturday, November 27, 2004 7:37 PM +0000 Corvin <corvin.dun@wp.pl> wrote:> Hi everyone! > > I have very simple question, how to limit SIP phone user making > calls to for example longdistant calls? > Maybe: > Put in his context in sip.conf > context which don't provide possibility to make such calls? > > Is it correct? > > thanks for any help, > > regards, > > Corvin > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Hi everyone! I have very simple question, how to limit SIP phone user making calls to for example longdistant calls? Maybe: Put in his context in sip.conf context which don't provide possibility to make such calls? Is it correct? thanks for any help, regards, Corvin
On Sat, 27 Nov 2004 19:37:54 +0000, Corvin <corvin.dun@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
Dnia sobota, 27 listopada 2004 20:44, Leif Madsen napisa?:> On Sat, 27 Nov 2004 19:37:54 +0000, Corvin <corvin.dun@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 -Thank you very much to all of you. I have one more question which troubles me. We have scenario: (only SIP is considered now) Subscriber A registered in Asterisk company1.org (eg. A@company1.org) Subscriber B registred in Asterisk company2.org (B@company2.org) How it is possible to make connection between those. Their extensions (called party) (maybe I don't understand term extension correctly) is not definied in corresponding extensions.conf. Extension B is not definied in extension.conf in Asterisk A. etc. Again many thanks for any help. :) Regards, Corvin -------------------------------------------------------
Soemthing goes wrong with this mail list: I am getitng something like it:>Sorry. Your message could not be delivered to:>Aster risk (Mailbox or Conference is full.)?????????? This is rest of my post.> On Sat, 27 Nov 2004 19:37:54 +0000, Corvin <corvin.dun@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 -Thank you very much to all of you. I have one more question which troubles me. We have scenario: (only SIP is considered now) Subscriber A registered in Asterisk company1.org (eg. A@company1.org) Subscriber B registred in Asterisk company2.org (B@company2.org) How it is possible to make connection between those. Their extensions (called party) (maybe I don't understand term extension correctly) is not definied in corresponding extensions.conf. Extension B is not definied in extension.conf in Asterisk A. etc. Again many thanks for any help. :) Regards, Corvin ps. sorry if I douuble my post ------------------------------------------------------- -------------------------------------------------------