OpenSER v1.2.0 Configuration Script Debugging

Tap here to compare the top VoIP providersTap here to hide the top VoIP Providers

valid for OpenSER v1.2.x

When trying to debug the configuration file of OpenSER might turn out that the amount of debug messages printed is very large and it is hard to spot the lines printed by xlog()/xdbg().

The debug level is controlled by 'debug' global parameter. A higher value make the number of printed message to increase.

debug=7

debug=3 is the usual value for live environments. debug=0 will suppress any debug message but errors or reporting critical situations. So, to debug the script, the value of 'debug' parameter should be higher than 3 (7 ensures that everything is printed out).

To be able to spot certain debug messages, the xlog module gives the functionality of printing colorful messages, via escape sequences. Any unix standard terminal will be able to interpret and display messages highlighted.

Once an escape sequence is printed, next text will be displayed using those foreground and background colors until meeting another escape sequence. It is better to reset it, after the text wanted to be highlighted, via $Cxx, so the terminal gets back to default properties.