Ahh ok, so I am only able to access the application/functions that are 
available to the dialplan.

I was wondering if it would be possible to access the handle of the odbc 
connection directly from the lua dialplan.

On 26/07/10 17:10, Leif Madsen wrote:
> On 10-07-26 10:34 AM, Faisal Hanif wrote:
>    
>>    You need to create a function is res_odbc for each of required query
>> and then u can use that function as normal asterisk dialplan function.
>>      
> So in the dialplan, after you've modified func_odbc.conf you'd be able to do a
> query like:
>
> exten =>  start,1,Set(MyResult=${ODBC_GET_MY_DATA(banana_lollipop)})
>
>
> How you structure that in pbx_lua I'm not sure, but you "create" the functions
> with func_odbc.conf, which is probably the piece you're missing.
>
> Leif Madsen.
>
>    


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to