Documentation

Documentation.Configure-File-1-11 History

Show minor edits - Show changes to markup

March 20, 2014, at 08:15 PM by razvancrainea -
Changed lines 1-2 from:
Documentation -> Manuals -> Manual devel -> Configuration File

(:title Configuration File - devel :)

to:
Documentation -> Manuals -> Manual 1.11 -> Configuration File

(:title Configuration File - 1.11 :)

Changed line 8 from:
Configuration File devel
to:
Configuration File 1.11
August 05, 2013, at 03:28 PM by razvancrainea -
Added line 5:
August 05, 2013, at 03:28 PM by razvancrainea -
Changed lines 1-2 from:
Documentation -> Manuals -> Manual 1.11 -> Configuration File

(:title Configuration File - ver 1.11 :)

to:
Documentation -> Manuals -> Manual devel -> Configuration File

(:title Configuration File - devel :)

Changed line 7 from:
Configuration File 1.11
to:
Configuration File devel
August 05, 2013, at 01:45 PM by razvancrainea -
Changed line 4 from:

(: allVersions Configure-File 1.11 : )

to:

(:allVersions Configure-File 1.11 :)

August 05, 2013, at 01:45 PM by razvancrainea -
Added lines 1-51:
Documentation -> Manuals -> Manual 1.11 -> Configuration File

(:title Configuration File - ver 1.11 :)


(: allVersions Configure-File 1.11 : )

Configuration File 1.11
PrevNext

The OpenSIPS configuration file contains all the parameters that control the OpenSIPS core and modules, along with the actual routing logic that OpenSIPS will use to route the SIP traffic.


Upon installation, the default configuration file path is :

[INSTALL_PATH]/etc/opensips/opensips.cfg


The configuration file is text-based, written in an OpenSIPS custom language, very similar to the C language. You will find different variables ( each with different scopes - explained further down the manual ), you can do the classical constructs like if / while / switch, etc, and you can also call sub-routines with parameters, so the script should be fairly easily read-able by somebody with some SIP & programming skills.


If you do any change to the configuration file, in order for them to take effect, you MUST restart OpenSIPS


Due to the fact that you must restart OpenSIPS every time you make a change to the configuration file, it is of vital importance to ensure that all the changes you have made are correct according to the OpenSIPS language syntax.

You can check the OpenSIPS configuration file validity by running


[INSTALL_PATH]/sbin/opensips -C [PATH_TO_CFG]


When checking the configuration file for validity, If the cfg is OK, OpenSIPS will return 0.


If the config file contains any errors, they will be displayed in the console and OpenSIPS will return -1


Page last modified on March 20, 2014, at 08:15 PM