I have a string value from a database that has a reference to a global variable ${myglobalvar}. When I set the value it sets it to the string what is in the database and does not evulate the variable inside. Any ideas how to force an evaluation as part of a set? example: l_databaseVariableName = MyTrunk l_databaseVariableValue = ${myglobalvar} myglobalvar = Target_Trunk exten => doVtype-1,1,Set(${l_databaseVariableName}=${l_databaseVariableValue} I need variable MyTrunk to = Target_Trunk The above sets MyTrunk to = ${myglobalvar} Any suggestions would be apperciated, And I would not prefer to set the database value for l_databaseVariableValue to Target_Trunk Any suggestions would be apperciated, And I would not prefer to set the database value for l_databaseVariableValue to Target_Trunk Thanks Bryant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120417/7128c836/attachment.htm>
On Tue, 17 Apr 2012, Bryant Zimmerman wrote:> example: l_databaseVariableName = MyTrunk > l_databaseVariableValue = ${myglobalvar} > myglobalvar = Target_Trunk > > exten => doVtype-1,1,Set(${l_databaseVariableName}=${l_databaseVariableValue} > > I need variable?MyTrunk to = Target_Trunk > The above sets MyTrunk to = ${myglobalvar}set(${l_databaseVariableName}=${${l_databaseVariableValue}}) -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000