Module: kamailio
Branch: master
Commit: 29a765a2ba6d4529f29027d85c47abeb9628a049
URL:
https://github.com/kamailio/kamailio/commit/29a765a2ba6d4529f29027d85c47abe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-22T09:55:24+02:00
app_python3: skip registering KSR.pv from global list
- for now is still done with the custom functions from the module
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/29a765a2ba6d4529f29027d85c47abe…
Patch:
https://github.com/kamailio/kamailio/commit/29a765a2ba6d4529f29027d85c47abe…
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index cfced28226..838c432a0c 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -2351,6 +2351,10 @@ PyObject* 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);