[asterisk-users] REGEX Function
Doug Garstang
dgarstan at talkplus.com
Mon Feb 12 19:21:38 MST 2007
What's wrong with this?
exten => s,n,Set(CIDNUM=16505551212)
exten => s,n,Set(foo=${REGEX("^[0-9]+$" CIDNUM)})
This always returns 0, false. That isn't correct.
I also tried:
exten => s,n,Set(dollar=$)
exten => s,n,Set(foo=${REGEX("^[0-9]+${dollar}" CIDNUM)})
and that didn't work either. I am trying to use a regex to see if the
caller id contains numbers only.
Doug.
More information about the asterisk-users
mailing list