Copyright © 2015 www.opensips-solutions.com
Table of Contents
List of Examples
The event_flatstore module provides a logging facility for different events, triggered through the OpenSIPS Event Interface, directly from the OpenSIPS script. The module logs the events along with their parameters in plain text files.
flatstore: - informs the Event Interface that the events sent to this subscriber should be handled by the event_flatstore module.
path_to_file - path to the file where the logged events will be appended to. The file will be created if it does not exist. It must be a valid path and not a directory.
The following libraries or applications must be installed before running OpenSIPS with this module loaded:
Defines the maximum number of simultaneously opened files by the module. If the maximum limit is reached, an error message will be thrown, and further subscriptions will only be possible after at least one of the current subscriptions will expire.
Default value is “100”.
Example 1.1. Set
... modparam("event_flatstore", "max_open_sockets", 200) ...
Sets the separator between the parameters of the event in the logging file.
Default value is “,”.
It makes the processes reopen the file specified as a parameter to the command in order to be compatible with a logrotate command. If the function is not called after the mv command is executed, the module will continue to write in the renamed file.
MI FIFO Command Format: