[Asterisk-Users] Re: Regex in number dialed

Wilson Pickett spamsucks2005 at gmail.com
Sun Dec 26 04:11:56 MST 2004


> If I replace the whole lot with:
> exten => _88XXXXXXX,1,Dial,Zap/4/1414${EXTEN:1}
> exten => _88XXXXXXX,2,Dial,Zap/3/1414${EXTEN:1}
> exten => _88XXXXXXX,3,Dial(SIP/jya-home-out/${EXTEN:1},60,r)
> exten => _88XXXXXXX,4,Dial(IAX2/freshtel/${EXTEN:1},60,r)
> exten => _89XXXXXXX,1,Dial,Zap/4/1414${EXTEN:1}
> exten => _89XXXXXXX,2,Dial,Zap/3/1414${EXTEN:1}
> exten => _89XXXXXXX,3,Dial(SIP/jya-home-out/${EXTEN:1},60,r)
> exten => _89XXXXXXX,4,Dial(IAX2/freshtel/${EXTEN:1},60,r)
> exten => _8X.,1,Dial(IAX2/freshtel/${EXTEN:1},60,r)
> exten => _8X.,2,Congestion
> 
> Then if dialing 88888888 it will use the Zap interface first...
> 
> How could that be?

IIRC, the order of evaluation is not guaranteed in the dialplan. I
read that to impose an order of evaluation, you need to use contexts
and include them in the order you want.



More information about the asterisk-users mailing list