Explorar o código

cookbooks/devel/core: section for compatibility modes

Daniel-Constantin Mierla hai 9 meses
pai
achega
59b9a51f2c
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      docs/cookbooks/devel/core.md

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

@@ -5502,6 +5502,21 @@ event_route[tm:branch-failure:myroute] {
 }
 ```
 
+## Compatibility Modes
+
+With the merge of source trees from `Kamailio` and `SER` in 2008, there were
+some different behaviours in various module parameters and functions. To control
+the behaviour, the compatibility mode can be specified with `#!KAMAILIO` or
+`#!SER` at the beginning (first line) of the configuration file.
+
+The default mode is `#!KAMAILIO`.
+
+The parameters and functions that behave differently should have a note in their
+documentation.
+
+Note: the first line having `#!KAMAILIO` is also used to set the file type by
+extenssions in editors like `vim`, `vscode`, `atom`, `mcedit` or `emacs`.
+
 ## Script Statements
 
 ### if