Pages for other versions: devel 4.0 3.6 3.4 Older versions: 3.5 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
| Core Events v4.1 |
| Prev | Next |
Table of Content (hide)
Events are exported by the OpenSIPS core through the Event Interface.
Event: E_CORE_THRESHOLD
This event is triggered when a particular action takes longer than a specific threshold. It can be raised when a MySQL or DNS query takes too long, or a SIP message processing goes beyond a specific limit. For more information please see this post.
Parameters:
Event: E_CORE_PKG_THRESHOLD
This event is triggered when the private memory usage goes above a threshold limit, specified by the event_pkg_threshold the core parameter. It warns external applications about low values of free private memory.
Parameters:
Note: If the event_pkg_threshold is not specified or 0, then this event is disabled.
Event: E_CORE_SHM_THRESHOLD
This event is triggered when the shared memory usage goes above a threshold limit, specified by the event_shm_threshold the core parameter. It warns external applications about low values of free shared memory.
Parameters:
Note: If the event_shm_threshold is not specified or 0, then this event is disabled.
Event: E_CORE_PROC_AUTO_SCALE
This event is triggered whenever a new process is created (forked) or a process is terminated due the auto-scaling logic. In order to have this event trigger, the auto-scaling must be enabled in your configuration.
Parameters:
Event: E_CORE_TCP_DISCONNECT
This event is triggered when a TCP connection is terminated/disconnected.
Parameters:
Event: E_CORE_SR_STATUS_CHANGED
This event is triggered the status of an SR identifier changes.
Parameters:
Event: E_CORE_LOG
This event is triggered whenever a log message is produced by OpenSIPS. In order to have this event trigger, the log_event_enabled must be enabled in your configuration.
Parameters:
Event:E_PROFILING_PROC
This event is generated when the process profiling is activated. It reports different actions that takes place inside the process.
Parameters:
Example of usage:
{'sec': 1776767469, 'usec': 200446, 'session': 3463978, 'verb': 'start', 'name': 'SIP receiver udp:127.0.0.1:5060', 'type': 1, 'depth': 0}
{'sec': 1776767469, 'usec': 201035, 'session': 3463978, 'verb': 'enter', 'name': 'udp proto reading', 'type': 1, 'depth': 1, 'file': 'handle_io', 'line': 317}
{'sec': 1776767469, 'usec': 201485, 'session': 3463978, 'verb': 'enter', 'name': 'receive_msg', 'type': 1, 'depth': 2, 'file': 'receive_msg', 'line': 120}
{'sec': 1776767469, 'usec': 202558, 'session': 3463978, 'verb': 'enter', 'name': 'request_script', 'type': 1, 'depth': 3, 'file': 'receive_msg', 'line': 235}
{'sec': 1776767469, 'usec': 203201, 'session': 3463978, 'verb': 'exit', 'name': 'request_script', 'type': 1, 'depth': 2, 'file': 'receive_msg', 'line': 237, 'status': 1}
{'sec': 1776767469, 'usec': 203533, 'session': 3463978, 'verb': 'exit', 'name': 'receive_msg', 'type': 1, 'depth': 1, 'file': 'receive_msg', 'line': 316, 'status': 0}
{'sec': 1776767469, 'usec': 203663, 'session': 3463978, 'verb': 'exit', 'name': 'reading done', 'type': 1, 'depth': 0, 'file': 'handle_io', 'line': 324, 'status': 0}
{'sec': 1776767469, 'usec': 203786, 'session': 3463978, 'verb': 'end', 'name': 'SIP receiver udp:127.0.0.1:5060', 'type': 1, 'depth': 0, 'status': 0}
Similar to E_PROFILING_PROC but related to script (routes) execution.