[Asterisk-Users] Re: Regex in number dialed
Jean-Yves Avenard
jean-yves.avenard at hydrix.com
Sun Dec 26 03:13:22 MST 2004
On 26/12/2004, at 12:42 PM, Jean-Yves Avenard wrote:
> Hello
>
> Didn't find any information in the wiki. Regex only refers to the
> dialing syntax
Thank you all for your answers, it seems to work in most cases...
However I have something like this:
exten => _8[89]XXXXXXX,1,Dial,Zap/4/1414${EXTEN:1}
exten => _8[89]XXXXXXX,2,Dial,Zap/3/1414${EXTEN:1}
exten => _8[89]XXXXXXX,3,Dial(SIP/jya-home-out/${EXTEN:1},60,r)
exten => _8[89]XXXXXXX,4,Dial(IAX2/freshtel/${EXTEN:1},60,r)
exten => _8X.,1,Dial(IAX2/freshtel/${EXTEN:1},60,r)
exten => _8X.,2,Congestion
When I dial:
888888888
It still dial using the IAX2/freshtel
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?
Jean-Yves
---
Jean-Yves Avenard
Hydrix Pty Ltd - Embedding the net
www.hydrix.com | fax +61 3 9572 2686 | phone +61 3 9572 0686 ext 100
VoIP: direct: 100 at voip.hydrix.com, general: info at voip.hydrix.com
More information about the asterisk-users
mailing list