Module: kamailio
Branch: master
Commit: 352258fa530f2c307187b65a16634da87d7c5888
URL:
https://github.com/kamailio/kamailio/commit/352258fa530f2c307187b65a16634da…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-22T09:47:33+02:00
app_jsdt: skip registering KSR.pv from global list
- for now is still done with the custom functions from the module
---
Modified: src/modules/app_jsdt/app_jsdt_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/352258fa530f2c307187b65a16634da…
Patch:
https://github.com/kamailio/kamailio/commit/352258fa530f2c307187b65a16634da…
---
diff --git a/src/modules/app_jsdt/app_jsdt_api.c b/src/modules/app_jsdt/app_jsdt_api.c
index 4643f017ff..7cdcf4dafd 100644
--- a/src/modules/app_jsdt/app_jsdt_api.c
+++ b/src/modules/app_jsdt/app_jsdt_api.c
@@ -1750,6 +1750,10 @@ duk_ret_t dukopen_KSR(duk_context *J)
/* 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_J_KSRMethods = _sr_J_KSRMethods + n;
snprintf(mname, 128, "KSR_%s", emods[k].kexp[0].mname.s);