[asterisk-users] Question about AGI and variable storage
Trevor Peirce
tpeirce at digitalcon.ca
Sat Jan 6 21:56:39 MST 2007
Lee Jenkins wrote:
> Does Asterisk strip off the quotes when storing the value?
You could do a 5 minute test to figure that out...
blah.agi:
SET VARIABLE testme "I have quotes!"
dialplan.txt:
exten => s,1,AGI(blah.agi)
exten => s,n,Set(regular=no quotes)
exten => s,n,NoOp(regular is ${regular})
exten => s,n,NoOp(testme is ${testme})
Voila.
I don't care to try this out to find your answer, but I'm sure if you
did that you'd get a response quicker than it took you to write your
question and await responses.
Please note this code is not tested and I don't promise it will work
without modification :)
Trevor
More information about the asterisk-users
mailing list