[asterisk-users] Howto create variable from the name of another one and get content of it
Asghar Mohammad
asghar144 at gmail.com
Thu Mar 21 13:59:54 CDT 2013
hi,
${myVar}STATUS is empty you have not assign any value here your var
Set(__${myVar}STATUS=) is empty.
use instead Set(__myVar=${ARG1}STATUS) and remove second line.
On Thu, Mar 21, 2013 at 7:45 PM, Administrator TOOTAI <admin at tootai.net>wrote:
> 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
>
> --
> ______________________________**______________________________**_________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/**mailman/listinfo/asterisk-**users<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130321/bfb05af0/attachment.htm>
More information about the asterisk-users
mailing list