[asterisk-users] Multiple Return Values from func_odbc

Douglas Garstang dougmig33 at yahoo.com
Wed Nov 28 16:55:14 CST 2007

Thanks... That was just what I needed.
But.... what about going the other way? How can I pass multiple values to a function in func_odbc?
I can't use ARRAY as it can only be used to set variables, not read form them!


----- Original Message ----
From: Tilghman Lesher <tilghman at mail.jeffandtilghman.com>
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Sent: Tuesday, November 27, 2007 9:08:50 PM
Subject: Re: [asterisk-users] Multiple Return Values from func_odbc

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:

read=SELECT foo,bar FROM tablename WHERE baz='${ARG1}'



--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

Never miss a thing.  Make Yahoo your home page. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071128/21097c21/attachment.htm 

More information about the asterisk-users mailing list