app_python: skip registering KSR.pv from global list
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 22 May 2019 07:54:54 +0000 (09:54 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 22 May 2019 07:54:54 +0000 (09:54 +0200)
- for now is still done with the custom functions from the module

src/modules/app_python/apy_kemi.c

index 70f9ca9..e6bb316 100644 (file)
@@ -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);