Module: kamailio
Branch: master
Commit: ad0f1a82b23f8bd5f9c8cc2aa65ea7d7b9f8f418
URL:
https://github.com/kamailio/kamailio/commit/ad0f1a82b23f8bd5f9c8cc2aa65ea7d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-22T09:54:27+02:00
app_lua: skip registering KSR.pv from global list
- for now is still done with the custom functions from the module
---
Modified: src/modules/app_lua/app_lua_sr.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ad0f1a82b23f8bd5f9c8cc2aa65ea7d…
Patch:
https://github.com/kamailio/kamailio/commit/ad0f1a82b23f8bd5f9c8cc2aa65ea7d…
---
diff --git a/src/modules/app_lua/app_lua_sr.c b/src/modules/app_lua/app_lua_sr.c
index 17649f3e2d..b3c2b7df41 100644
--- a/src/modules/app_lua/app_lua_sr.c
+++ b/src/modules/app_lua/app_lua_sr.c
@@ -2496,6 +2496,10 @@ void lua_sr_kemi_register_libs(lua_State *L)
/* registered kemi modules */
if(emods_size>1) {
for(k=1; k<emods_size; k++) {
+ if(emods[k].kexp == sr_kemi_exports_get_pv()) {
+ LM_DBG("skip registering the core KSR.pv module\n");
+ continue;
+ }
n++;
_sr_crt_KSRMethods = _sr_KSRMethods + n;
snprintf(mname, 128, "KSR.%s", emods[k].kexp[0].mname.s);