[Asterisk-Users] restricting access to outside calls

Adam Goryachev mailinglists at websitemanagers.com.au
Wed Oct 13 18:47:04 MST 2004


On Thu, 2004-10-14 at 11:08, Ed DeHart wrote:
> When you call my system your call is handled by the auto
> attendant.  It works fine with one little problem.  In addition
> to being able to dial any extension during the announcement, you
> can dial a telephone number.  The system will bridge the Zap
> channel I call in on with another Zap channel and dial the number.
> This allows anyone in the world to make calls to anywhere in the
> world via my system.
> 
> While this is fine for extensions logged into my system.  It
> is not good to allow unknown users to make calls via my system.
> How can I restrict access to connected users only?
> 
> Thanks for putting up with a post from a newbie.

I don't know why you got those other responses, they don't seem to be
even close to what you need...

You need to look at contexts. You should have at least 3 contexts, maybe
more:
[incoming]
All your incoming calls come here and are handled
[outgoing]
This is where you match something like _9. and dialout
[extensions]
This is where you define all your internal extensions/desk phones
[features]
This is where you might have voicemail/etc extensions defined

Then, you would "include => extensions" in the incoming context.
You would change your zapata.conf to set the "context" to incoming for
all channels that are not local.

See the example config files, the wiki, and the asterisk docs for more
details.

Extra hint: Please make sure you do some reading before you just come
straight back and ask for a complete example... otherwise you will never
really know how to secure your PBX, and might end up with a big surprise
phone bill.

Regards,
Adam






More information about the asterisk-users mailing list