Chad Brown
2004-Dec-19 20:43 UTC
[Asterisk-Users] Dialplan help - Can dial any user but not the PSTN
What is the most efficient way to allow inbound callers to dial internal users yet restrict them from outbound PSTN calls? Today I have a basic greeting that after a welcome message allows inbound callers the ability to dial any of my users. However, it seems that since I transfer the inbound caller to a context that allows them the ability to call my internal users they have the same rights as internal users and therefore can place outbound calls. To work around this I have 2 contexts... [Default] where all my users live but has an "include => outbound " statement. I also have a second context named [nooutbound] where I have the exact same users minus the include statement. Needless to say, I transfer my inbound callers into the [nooutbound] so they can call all my users but don't have a path to the outbound context. Works great! However, there must be a more eloquent solution without the duplication. Thoughts? Chad Brown - IdentityMine -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041219/ff08e72f/attachment.htm
el Flynn
2004-Dec-19 20:44 UTC
[Asterisk-Users] Dialplan help - Can dial any user but not the PSTN
Chad Brown wrote:> What is the most efficient way to allow inbound callers to dial internal > users yet restrict them from outbound PSTN calls? Today I have a basic > greeting that after a welcome message allows inbound callers the ability > to dial any of my users. However, it seems that since I transfer the > inbound caller to a context that allows them the ability to call my > internal users they have the same rights as internal users and therefore > can place outbound calls. > > > > To work around this I have 2 contexts... [Default] where all my users > live but has an "include => outbound " statement. I also have a second > context named [nooutbound] where I have the exact same users minus the > include statement. Needless to say, I transfer my inbound callers into > the [nooutbound] so they can call all my users but don't have a path to > the outbound context. > > > > Works great! However, there must be a more eloquent solution without the > duplication. Thoughts? > >try this: [extensions] ; define your extensions here exten => 1234,1,Dial(SIP/1234) ; John Doe's extension exten => 5678,1,Dial(SIP/5678) ; Jane Doe's extension [incoming] ; inbound calls end up here include => extensions exten => s,1,Answer exten => s,2,Playback(greeting) : : [internal] ; define your internal ppl to this context include => extensions exten => _9.,1,Dial(Zap/1/${EXTEN:1}) flynn
Apparently Analagous Threads
- Dialplan help - Can dial any user but not thePSTN
- Re-assigning vector elements based on their initial values.
- Firefox 3
- [LLVMdev] Any objections to my importing GoogleMock to go with GoogleTest in LLVM?
- What is the universal (world wide) understanding behind degaussing harddisks?