[asterisk-users] Howto create variable from the name of another one and get content of it

Administrator TOOTAI admin at tootai.net
Thu Mar 21 13:45:45 CDT 2013


Hello,

I have a variable created like

... Set(__myVar=${ARG1})
... Set(__${myVar}STATUS=)

If ARG1 is abcd, variable is abcdSTATUS and should be empty. This is OK.

Now I would like to get the value of abcdSTATUS. How to do it? 
${${myVar}STATUS}} isn't working, nor ${{myvar}STATUS}

Thanks for any hint

-- 
Daniel



More information about the asterisk-users mailing list