[sr-dev] git:master:ea390d69: app_lua: fixing bug for setting global table lua

surendratiwari3 surendratiwari3 at gmail.com
Thu Jul 12 15:47:14 CEST 2018


Module: kamailio
Branch: master
Commit: ea390d69d946314f93bfeeef77b4421f0c04cba3
URL: https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421f0c04cba3

Author: surendratiwari3 <surendratiwari3 at gmail.com>
Committer: surendratiwari3 <surendratiwari3 at gmail.com>
Date: 2018-07-12T13:07:09Z

app_lua: fixing bug for setting global table lua

---

Modified: src/modules/app_lua/app_lua_api.c

---

Diff:  https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421f0c04cba3.diff
Patch: https://github.com/kamailio/kamailio/commit/ea390d69d946314f93bfeeef77b4421f0c04cba3.patch

---

diff --git a/src/modules/app_lua/app_lua_api.c b/src/modules/app_lua/app_lua_api.c
index 7f0fd1fbc0..122c212da3 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);




More information about the sr-dev mailing list