arg

Returns the full list of arguments used when OpenSIPS was started. As in UNIX, the first argument is the name of executable binary.Arguments: noneOutput: multiple MI nodes where each node contains an argument. The MI nodes have no name, but only value.

Example of usage:

# opensipsctl fifo arg
./opensips
-f
/etc/openser/test.cfg

debug [level]

Gets or sets the value of the debug core variable. You may use it to dynamically (at runtime) change or inspect the debug level of your OpenSIPS. If no argument is passed, the function will fetch the value of the debug level.Arguments: debug level (-3...4)Output: debug level (only when no argument is passed). The value will be returned as a single MI node with name "DEBUG"

Examples of usage:

# opensipsctl fifo debug
DEBUG:: 4
# opensipsctl fifo debug 1

kill

list_blacklists

The command lists all the defined (static or learned) blacklists from OpenSIPS.Arguments: noneOutput: an MI tree - first level (nodes named "List") will describe the list (name, owner, flags); Second level (nodes named "Rules) will describe the rules (blacklists) for each list (IP/mask, protocol, port, matching regexp, flags)

pwd

Prints the working directory of OpenSIPS instance.Arguments: noneOutput: a single MI node with name "WD" containing the working directory full path.

Examples of usage:

# opensipsctl fifo pwd
WD:: /

uptime

Prints various time information about OpenSIPS - when it started to run, for how long it runs.Arguments: noneOutput: three MI nodes: "Now" - current time; "Up since" - start time ; "Up time" - number of seconds since started.

which

Prints all available MI commands from the queried OpenSIPSinstance.Arguments: noneOutput: multiple MI nodes (no name), each node containing (as value) the name of an available MI command. NOTE that the list of available MI commands may differ depending of what modules your OpenSIPS is using.

get_statistics

Prints the statistics (all, group or one) realtime values.Arguments: input may be "all" - print all available statistics; "group:" - print only statistics from a certain group; "name" - print only this statistic. The OpenSIPS core defines the following groups: core, shmem; Modules export groups typically named like the module itself.Output: list of MI nodes (no name) - each MI mode contains the name and value of a single statistic variable.

reset_statistics

Reset (to zero) the value of a statistic variable. Note that not all variables allow reset (depending of the nature of the information they carry - example "shmem:used_size").Arguments: name of the variable to be reset.Output: none.

cache_store

This command stores in a cache system a string value.Arguments: - cache system to use - for the cache system implemented by OpenSIPS module 'localcache' the value of this parameter should be 'local' - the label to be associated with this value - the string to be stored Output: none.
Examples of usage:

# opensipsctl fifo cache_store local password_user1 password

cache_fetch

This command queries for a stored value.Arguments: - cache system to use - for the cache system implemented by OpenSIPS module 'localcache' the value of this parameter should be 'local' - the label associated with the value Output: MI tree containing the value if a record is found or 'Value not found' string otherwise.
Examples of usage:

# opensipsctl fifo cache_fetch local password_user1

cache_remove

This command removes a record from the cache system.Arguments: - cache system to use - the label associated with the stored value Output: None.Examples of usage: