[Asterisk-Users] pattern matching problem

Joseph syscon at interbaun.com
Sun Jan 16 23:29:11 MST 2005


How do I solve the problem with between patterns:
_1800
_1NXX

I would like all numbers 1800, 1877 etc to go through iaxtel
but all other numbers 1xxx via voipjet

Example in my extension.conf I have:

[iaxtel]
exten => _1700NXXXXXX,1,Dial(IAX2/xxxx:xxxxx at iaxtel.com/${EXTEN}@iaxtel)
exten => _1888NXXXXXX,1,Dial(IAX2/xxxx:xxxxx at iaxtel.com/${EXTEN}@iaxtel)
exten => _1877NXXXXXX,1,Dial(IAX2/xxxx:xxxxx at iaxtel.com/${EXTEN}@iaxtel)
exten => _1866NXXXXXX,1,Dial(IAX2/xxxx:xxxxx at iaxtel.com/${EXTEN}@iaxtel)
exten => _1800NXXXXXX,1,Dial(IAX2/xxxx:xxxxx at iaxtel.com/${EXTEN}@iaxtel)

[outgoing-voipjet]
exten => _1NXXNXXXXXX,1,SetCallerID(4757894789);
exten => _1NXXNXXXXXX,2,Dial,IAX2/1555 at voipjet/${EXTEN}

Whatever I try to dial it goes through voipjet.

-- 
#Joseph



More information about the asterisk-users mailing list