Skip to content

Commit

Permalink
cookbooks/devel/core: section for compatibility modes
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 9, 2024
1 parent 35e5d31 commit 59b9a51
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/cookbooks/devel/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59b9a51

Please sign in to comment.