ソースを参照

app_lua: skip registering KSR.pv from global list

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

+ 4 - 0
src/modules/app_lua/app_lua_sr.c

@@ -2496,6 +2496,10 @@ void lua_sr_kemi_register_libs(lua_State *L)
 	/* 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_KSRMethods = _sr_KSRMethods + n;
 			snprintf(mname, 128, "KSR.%s", emods[k].kexp[0].mname.s);