[sr-dev] git:master:e7734e60: Merge pull request #1590 from surendratiwari3/app_lua_child_fix

GitHub noreply at github.com
Thu Jul 12 15:47:15 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at 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/e7734e604fc7b0e6cc24454b53c9670c91ce5c05.diff
Patch: https://github.com/kamailio/kamailio/commit/e7734e604fc7b0e6cc24454b53c9670c91ce5c05.patch

---

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);




More information about the sr-dev mailing list