Hi,

I'm trying to use a lua script to grab voicemail PINs from Kamailio's db as shown here 

However, I get the following error message which is driving me nuts. Googling for the "undefined symbol: lua_settop" error message doesn't seem to return anything relevant, and looking around the FS wiki here didn't help either.

[ERR] mod_lua.cpp:199 error loading module 'luasql.mysql' from file '/usr/lib/x86_64-linux-gnu/lua/5.1/luasql/mysql.so':
        /usr/lib/x86_64-linux-gnu/lua/5.1/luasql/mysql.so: undefined symbol: lua_settop
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        /usr/local/freeswitch/scripts/sqluser.lua:14: in main chunk
2014-07-12 22:21:17.470474 [ERR] mod_lua.cpp:265 LUA script parse/execute error!


Any ideas?

Thanks