Module: kamailio
Branch: master
Commit: d0578762943c7136188c329391f1e6c46b98bcd4
URL:
https://github.com/kamailio/kamailio/commit/d0578762943c7136188c329391f1e6c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-22T09:54:54+02:00
app_python: skip registering KSR.pv from global list
- for now is still done with the custom functions from the module
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d0578762943c7136188c329391f1e6c…
Patch:
https://github.com/kamailio/kamailio/commit/d0578762943c7136188c329391f1e6c…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index 70f9ca9d37..e6bb316e6a 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -2306,6 +2306,10 @@ int sr_apy_init_ksr(void)
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);