Hello. I new to use lua at Asterisk and have question about array from DB at lua
I use asterisk ODBC conection at DataBase to get variables for my dialplan from DB.
at the extensions.conf I may use this
Set(ARRAY(MY_VAR1,MY_VAR2)=ODBC_GET_VALUE())
(GET_VALUE req exists at func_odbc)
This construction works fine. But now I need same result at Lua. This interface great works with one returned var
var1 = ODBC_GET_VALUE():Get()
But When I try get 2 or more vars from my DB - it’s failed. I use construction like this
var1,var2 = channel.ODBC_GET_VALUE():Get()
(offcourse I change func_odbc.conf req and SELECT 2 values for this req)
So how to execute array of values at lua?
Thanks