[Asterisk-Users] Policies - deny some nubers

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Tue Jan 6 08:06:20 MST 2004


Hi!

> > 1) Is it posible to create policies, so that some SIP-users can dial 
> > ALL numbers, and some SIP-users not are allowed to dial eg. 
> > 900xxx-numbers, 30xxxxxx (mobilphones), 40xxxx(long distance)
> > and if possible on time basic- so that from 18.00-0800 it is possible 
> > to dial all numbers ? 
> 
> Yes this is controlled by your dial plan.. If you haven't already I 
> suggest taking a read through the hand book which will help a lot to get 
> you started..

Look at contexts and the include statement. Read the draft handbook 
linked from www.asterisk.org, support section. Or look here:
http://www.voip-info.org/wiki-Asterisk+howto+dial+plan

> > 2) when dialing in to asterisk via ISDN get a new dialtone so it's 
> > posibble to dial all sipphones, or get voiceresponce saying press 1 to 
> > dial manager, press 2 to dial dad, and 3 to leave a message ? 
> 
> Yes but you won't do it with a dial tone, you will use voice prompts to 
> tell the person calling in what options are availible to them..

For the dialtone: You can very well use separate context for that with a 
Background() announcement and something like

[dial_what_you_want_context]
exten => s,1,Background(enter-an-extension)
exten => _.,1,Dial(Local/${EXTEN})

Apart from that if you wish to dial out again look at/ search for DISA.
http://www.voip-info.org/wiki-Asterisk+cmd+DISA

Greetings, Philipp





More information about the asterisk-users mailing list