Module: kamailio
Branch: master
Commit: 4ec855e2d0fe7c93bb3d633b40de9b0689335f7f
URL:
https://github.com/kamailio/kamailio/commit/4ec855e2d0fe7c93bb3d633b40de9b0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-22T09:56:15+02:00
app_sqlang: skip registering KSR.pv from global list
- for now is still done with the custom functions from the module
---
Modified: src/modules/app_sqlang/app_sqlang_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4ec855e2d0fe7c93bb3d633b40de9b0…
Patch:
https://github.com/kamailio/kamailio/commit/4ec855e2d0fe7c93bb3d633b40de9b0…
---
diff --git a/src/modules/app_sqlang/app_sqlang_api.c
b/src/modules/app_sqlang/app_sqlang_api.c
index f3017f6eec..29651be4da 100644
--- a/src/modules/app_sqlang/app_sqlang_api.c
+++ b/src/modules/app_sqlang/app_sqlang_api.c
@@ -1875,6 +1875,10 @@ SQInteger sqlang_open_KSR(HSQUIRRELVM 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, "%s", emods[k].kexp[0].mname.s);