[Asterisk-Users] Re: Dial Plan Pattern Matching

Tom Ivar Helbekkmo tih at eunetnorge.no
Sun Nov 14 11:24:34 MST 2004


Andres <andres at telesip.net> writes:

> We are trying to figure out how to block certain calls via the Dial 
> Plan.  For example we want to block any calls to XXX5551212.  We tried 
> the simple approach below but it did not work.  The second line gets 
> picked up when we dial 13055551212. 
>
> exten => _1XXX5551212,1,Congestion
> exten => _1305XXXXXXX,1,Goto(pri4,${EXTEN},1)

Split them up.  Place each in its own context, and include those
contexts in a higher context, in the order you want them evaluated.

-tih
-- 
Tom Ivar Helbekkmo, Senior System Administrator, EUnet Norway Hosting
www.eunet.no  T +47-22092958 M +47-93013940 F +47-22092901 FWD 484145



More information about the asterisk-users mailing list