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 <[EMAIL PROTECTED]>
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@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
_______________________________________________
--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

Reply via email to