Displaying 1 result from an estimated 1 matches for "dolookup".
Did you mean:
do_lookup
2011 Jan 23
3
FUNC_ODBC and ARRAY
...2,var2 = ${var2})
exten => _.,n,Verbose(2,var3 = ${var3})
Here's the func_odbc.conf code:
[LOOKUP]
dsn=mysql-asterisk
readsql=SELECT col1, col2, col3 from table1 WHERE keycol = '${ARG1}'
and here's the full log:
[Jan 22 20:12:50] VERBOSE[32348] pbx.c: -- Executing
[123 at dolookup:8] Set("SIP/sip1-inbound-00000f99",
"ARRAY(var1,var2,var3)=96829,-3,Name Unavailabl") in new stack
[Jan 22 20:12:50] DEBUG[32348] func_strings.c: array (var1,var2,var3=96829)
[Jan 22 20:12:50] DEBUG[32348] func_strings.c: array set value (var1=96829)
[Jan 22 20:12:50] DEBUG[3234...