ソースを参照

app_python3: skip registering KSR.pv from global list

- for now is still done with the custom functions from the module
Daniel-Constantin Mierla 6 年 前
コミット
29a765a2ba
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/modules/app_python3/apy_kemi.c

+ 4 - 0
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);