[Asterisk-Users] regexp issue

2006-06-07 Thread Joao Pereira
Hello to all I had Asterisk dialing the PSTN through a defined trunk. But when I enabled the SIP URI calls Asterisk stopped contacting the PSTN trunk The SIP URI dial code (who created the problem) is this: exten => _.,1,NoOp(Incoming Call from from-internal-custom extension ${CALLE

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 evalu

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 sin

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 see

[Asterisk-Users] regexp

2006-05-16 Thread Mimmus
Hi, 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'. Where am I wrong? Domenico Viggiani ___ --B

[Asterisk-Users] regexp in gotoif

2006-04-07 Thread Christian B
Hello! this is a short one: in a gotoif-statement i would like to match a variable to a number, where the number could have digits from 2-6. asterisk only seems to be capable to match such a digit-range when used in the extension, but not in a regexp, at least the following query doesn't work: e

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 some

[Asterisk-Users] regexp problems

2003-09-19 Thread Jim Gottlieb
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 so