Douglas Garstang
2007-Nov-28 02:05 UTC
[asterisk-users] Multiple Return Values from func_odbc
Is there any way to return multiple values from functions defined in func_odbc.conf? It appears that you can only return one value. True? Hope not.... Doug. ____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071127/0e3cb8bc/attachment.htm
Tilghman Lesher
2007-Nov-28 05:08 UTC
[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
Douglas Garstang
2007-Nov-28 22:55 UTC
[asterisk-users] Multiple Return Values from func_odbc
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 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/21097c21/attachment.htm
Douglas Garstang
2007-Nov-29 01:37 UTC
[asterisk-users] Multiple Return Values from func_odbc
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