Module: kamailio Branch: master Commit: e7734e604fc7b0e6cc24454b53c9670c91ce5c05 URL: https://github.com/kamailio/kamailio/commit/e7734e604fc7b0e6cc24454b53c9670c...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: GitHub noreply@github.com Date: 2018-07-12T15:47:09+02:00
Merge pull request #1590 from surendratiwari3/app_lua_child_fix
app_lua : fixing bug for setting set SR lib version for lua 52
---
Modified: src/modules/app_lua/app_lua_api.c
---
Diff: https://github.com/kamailio/kamailio/commit/e7734e604fc7b0e6cc24454b53c9670c... Patch: https://github.com/kamailio/kamailio/commit/e7734e604fc7b0e6cc24454b53c9670c...
---
diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c index 97d141cd22..8fe8a22569 100644 --- a/src/modules/app_lua/app_lua_api.c +++ b/src/modules/app_lua/app_lua_api.c @@ -297,8 +297,8 @@ int lua_sr_init_child(void)
/* set SR lib version */ #if LUA_VERSION_NUM >= 502 - lua_pushstring(_sr_L_env.L, SRVERSION); - lua_setglobal(_sr_L_env.L, "SRVERSION"); + lua_pushstring(_sr_L_env.LL, SRVERSION); + lua_setglobal(_sr_L_env.LL, "SRVERSION"); #else lua_pushstring(_sr_L_env.LL, "SRVERSION"); lua_pushstring(_sr_L_env.LL, SRVERSION);