[asterisk-users] Multiple Return Values from func_odbc

Douglas Garstang dougmig33 at yahoo.com
Wed Nov 28 19:37:26 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!

Doug.

----- 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:

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

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

-- 
Tilghman

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

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users







      Never miss a thing.   Make Yahoo your homepage.







      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071128/c0247d29/attachment.htm 


More information about the asterisk-users mailing list