Hi,

 

Am trying close DB connection in lua script(dbh:close()) in freeswitch. But I am getting this error

 

2013-02-13 16:43:41.327172 [ERR] mod_lua.cpp:102 /usr/local/freeswitch/scripts/directory.lua:66: attempt to call method 'close' (a nil value)

stack traceback:

 

Can anyone please let me know why my lua is not recognising the close function? Is there anyother ways to close my DB connection in lua? Thanks.

 

Regards,

Archana