Re: [Asterisk-Users] Dialplan help - Can dial any user but not the PSTN

2004-12-19 Thread el Flynn
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
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Dialplan help - Can dial any user but not the PSTN

2004-12-19 Thread Chad Brown








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






___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users