This is an old revision of the document!
This is a work in progress
There are five (5) types of configuration directives used with Kamailio.
Configuration file comments are PHP style, without the double-slash line comment. Only hash (#) will work for line comments.
This gets confusing since the hash-bang (#!) is used at the beginning of the C-Style Control Directives.
/* block comment block comment */ // this is NOT a line comment # this is a line comment #!c_style_directive
The semicolon works with all forms of configuration directives as an instruction separator. Allowing for comments or additional configuration directives on the same line.
configuration_directive_a; configuration_directive_b configuration_directive; # comment about the configuration directive
Available directives:
#!define MODULE_NAME #!ifdef MODULE_NAME .. set directives .. #!else .. set alternate directives .. #!endif
name "value"
The value MUST be enclosed in quotes.
loadmodule "module_name.so" loadmodule "another_module.so" include_file "file_to_include.cfg" import_file "file_to_import.cfg"
name=value
(delimited by an equals sign)
memdbg=5 memlog=5 log_facility=LOG_LOCAL0 fork=yes children=4 #disable_tcp=yes auto_aliases=no alias="sip.mydomain.com"
modparam("first_module", "module_parameter_text", "new_value"); # Set Text Value modparam("second_module", "module_parameter_number", 10000); # Set Numeric Value modparam("second_module", "module_parameter_on", 1); # Enable Parameter modparam("third_module", "module_parameter_on", 0); # Disable Parameter