[Asterisk-Users] Call priority

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Tue Feb 24 09:50:26 MST 2004


Hi!

> ; 1st rule
> exten => _1800.,1,Dial(SIP/......)
> exten => _1800.,2,Congestion
> 
> ; 2nd rule
> exten => _1.,1,Dial(SIP/......)
> exten => _1.,2,Congestion
> 
> The problem is that some 1800 calls are still going to the second rule.
> What is the best way to accomplish that?

I would really love to see a NOT implemented, wouldn't that be nice to 
have? with [0-7,9] I can only treat one digit but not 800 or 1800 as 
such.

exten => _1!800.,1,Dial(SIP/......)
exten => _1!800.,2,Congestion

Ok, now to your question: Make a separate context for each of your rules, 
and then include those contexts in your working context in the order (!) 
that you want the rules to be followed - that should solve your problem.

Cheers, Philipp





More information about the asterisk-users mailing list