[asterisk-users] Multiple Return Values from func_odbc

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Nov 27 23:08:50 CST 2007


On Tuesday 27 November 2007 20:05:55 Douglas Garstang wrote:
> Is there any way to return multiple values from functions defined in
> func_odbc.conf? It appears that you can only return one value.

Use the ARRAY function:

func_odbc.conf:
read=SELECT foo,bar FROM tablename WHERE baz='${ARG1}'

extensions.conf:
Set(ARRAY(foo,bar)=${ODBC_WHATEVER(bax)})

-- 
Tilghman



More information about the asterisk-users mailing list