Lee Jenkins
2007-Jan-06 21:46 UTC
[asterisk-users] Question about AGI and variable storage
Hi all, I just finished writing the bulk of an AGI interface to FirebirdSQL databases and I noticed that when assigning a variable through AGI (I assume this also applies within the dialplan), you have to enclose it in quotes if there are any space. Does Asterisk strip off the quotes when storing the value? Just curious. Thanks, -- Warm Regards, Lee
Trevor Peirce
2007-Jan-06 21:56 UTC
[asterisk-users] Question about AGI and variable storage
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
Lee Jenkins
2007-Jan-06 22:40 UTC
[asterisk-users] Question about AGI and variable storage
Trevor Peirce wrote:> Lee Jenkins wrote: >> Does Asterisk strip off the quotes when storing the value? > You could do a 5 minute test to figure that out... >I am not at my house tonight where I have access to a box and was wondering about it on the car ride over to where I am. Of course, you have have just answered yes or no and saved yourself a bit of time was well. Or not answered at all and saved your quip for someone who deserved it. -- Warm Regards, Lee