소스 검색

cookbooks/devel/core: added section for coreparam

Daniel-Constantin Mierla 7 달 전
부모
커밋
d661398177
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      docs/cookbooks/devel/core.md

+ 28 - 0
docs/cookbooks/devel/core.md

@@ -1314,6 +1314,34 @@ Example of usage:
 corelog=1
 ```
 
+### coreparam
+
+This parameter offers a generic framework to set new core parameters without
+the need to write new code in Lex/Yacc, but to add to an internal exports
+structure in the core. The format is:
+
+```
+coreparam[name] = value
+```
+
+The `name` can be a string or an ID, and the `value` can be a string, an ID or
+a number (integer).
+
+Available parameters that can be set via `coreparam` are listed next.
+
+#### random_engine
+
+Set the random engine to be used internally. The values can be:
+
+  * `rand` - use the libc `rand()/random()` functions (the default)
+  * `fast` - use internal `fastrand()` functions (the default)
+
+Example:
+
+```
+coreparam[random_engine] = "fast"
+```
+
 ### debug
 
 Set the debug level. Higher values make Kamailio to print more debug