Re: [Asterisk-Users] too many ex-(boy|girl)friends

2004-10-15 Thread Chad Scott
How about: exten => s,1,GotoIf($[${CALLERIDNUM} : "^(904|321|407|252)[0-9]{7}$"] ? 2:3) exten => s,2,Goto(somewhere,s,1) exten => s,3,DoWhateverElse On Oct 15, 2004, at 7:21 AM, Ben Wern wrote: That's pretty good.. I have a similar situation, where I need to match all the area codes in a particu

RE: [Asterisk-Users] too many ex-(boy|girl)friends

2004-10-15 Thread Ben Wern
That's pretty good.. I have a similar situation, where I need to match all the area codes in a particular state like: exten => _[904|321|407|252]XXX,1,Dial.. But it doesn't work. I can get it to work with something along the lines of: exten -> _[904|321|407|352]X.,1,Dial But I was