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

src/modules/app_sqlang/app_sqlang_api.c

index f3017f6..29651be 100644 (file)
@@ -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);