[asterisk-users] Process a variable in a string.
Steve Edwards
asterisk.org at sedwards.com
Tue Apr 17 09:16:24 CDT 2012
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
More information about the asterisk-users
mailing list