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

src/modules/app_ruby/app_ruby_api.c

index 03655c6..92b45fb 100644 (file)
@@ -1557,6 +1557,10 @@ int app_ruby_kemi_export_libs(void)
        /* 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_R_KSRMethods = _sr_R_KSRMethods + n;
                        ksr_app_ruby_toupper(emods[k].kexp[0].mname.s, rmname);