Documentation |
Documentation -> Manuals -> Manual 3.5 -> Status/Report InterfacePages for other versions: devel 3.5 3.4 Older versions: 3.3 3.2 3.1 3.0 2.4 2.3 2.2 2.1 1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4
The Status/Report (or SR) is an OpenSIPS framework that allows different components of OpenSIPS (like modules, parts of the core) to publish their status (in terms of readiness) and reports (logs) relevant to their activities. OverviewThe base element in the Status/Report framework is the identifier - an status and some reports may be attached to an identifier. All the identifiers do exist within a Status/Report group. So, a group is a set of identifiers - a module or a core may be such groups. For example the drouting module publishes the drouting group where each routing partition is an identifier. The information attached to an identifier is:
I most of the cases, the status and reports of an identifier are internally produced by the OpenSIPS code - the Status/Report interface just gives you access to the status / report information from outside the code, for monitoring purposes. Scripting functionsThe SR Interface provides a script function to check the readiness status of an identifier (or of an entire group), see the sr_check_status( group, [identifier]) function. MI functionsThe SR Interface provides multiple functions to check/list the status of one/multiple identifiers and to list their reports: EventsThe SR framework raises an event each time the status of a Status/Report identifier changes. See the E_CORE_SR_STATUS_CHANGED event for more details.
Core identifiersThe OpenSIPS core provides the core group, with a "main" (default) identifier. The available status are:
Modules identifiersThe OpenSIPS modules may or may not provide their own groups and identifiers. For this you need to check the module's documentation. Scripting identifiersThe status_report allow the creation of custom SR identifiers from script level. Even more, it is possible to set the status or to publish a report from script for such custom identifiers. |