[asterisk-users] Process a variable in a string.

Bryant Zimmerman BryantZ at zktech.com
Tue Apr 17 08:10:44 CDT 2012


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>


More information about the asterisk-users mailing list