Re: [Asterisk-Users] regexp

2006-05-19 Thread Noah Miller
Hi Domenico - First, you can remove the quotes aorund your variable reference. I've seen examples with it, but you don't need it. I'm not sure: if variable is empty, you got an error. In addition, double quotes around text that may contain spaces will force the surrounded text to be

RE: [Asterisk-Users] regexp

2006-05-17 Thread Mimmus
First, you can remove the quotes aorund your variable reference. I've seen examples with it, but you don't need it. I'm not sure: if variable is empty, you got an error. In addition, double quotes around text that may contain spaces will force the surrounded text to be evaluated as a

Re: [Asterisk-Users] regexp

2006-05-16 Thread Noah Miller
Hi Domenico - I'm trying to match a few of numbers in a GotoIf; numbers are not starting with but contain some strings: GotoIf($[${CALLERIDNUM} =~ 984836|984899|498993|644110]?8:11) Expression result is always '0'. First, you can remove the quotes aorund your variable reference. I've seen

Re: [Asterisk-Users] regexp problems

2003-09-19 Thread John Todd
I'm trying to filter calls that don't have a proper ANI. This is what I did: ; only if they a real-looking ANI exten=_1XX1118/_.N.,1,Newt,1118-config ; Otherwise, send them to the loser partyline exten=_1XX1118,1,Goto(outtrunk,19096611234,1) This properly deals with null ANIs, but for