[asterisk-users] Regular expression problem

Benjamin Stocker bstocker at gmail.com
Mon Jul 24 04:11:22 MST 2006


Hi!

What's wrong with this?

exten => s,1,Set(myvar="nothing")
exten => s,2,Set(myvar = $["${CALLERID(num)}" : "([a-z]+)"])
exten => s,3,NoOp(${myvar})

The regular expression in priority 2 matches, but the result is not
assigned to variable "myvar", on the console, I see this:

-- Executing Set("SIP/nnnnn-5d23", "myvar="nothing"") in new stack
-- Executing Set("SIP/nnnnn-5d23", "myvar = "abc"") in new stack
-- Executing NoOp("SIP/nnnnn-5d23", ""nothing"") in new stack



More information about the asterisk-users mailing list