|
Resources -> Documentation -> CookBooks -> Core MI Functions v1.5Table of Content (hide)
MI (management interface) functions which are exported by OpenSIPS core. This document is for OpenSIPS 1.5.x 1. argReturns the full list of arguments used when OpenSIPS was started. As in UNIX, the first argument is the name of executable binary. Example of usage:
# opensipsctl fifo arg
./opensips
-f
/etc/openser/test.cfg
2. 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. Examples of usage:
# opensipsctl fifo debug
DEBUG:: 4
# opensipsctl fifo debug 1
3. killThe command will terminate OpenSIPS (and internal shutdown). Examples of usage:
# opensipsctl fifo kill
4. list_blacklistsThe command lists all the defined (static or learned) blacklists from OpenSIPS. Examples of usage:
# opensipsctl fifo list_blacklists
5. psThe command will list all all OpenSIPS processes, along with type and description. Examples of usage:
# opensipsctl fifo ps
Process:: ID=0 PID=16224 Type=attendant
Process:: ID=1 PID=16225 Type=SIP receiver udp:192.168.1.2:5060
Process:: ID=2 PID=16226 Type=timer
Process:: ID=3 PID=16227 Type=MI FIFO
Process:: ID=4 PID=16228 Type=TCP receiver
Process:: ID=5 PID=16230 Type=TCP main
6. pwdPrints the working directory of OpenSIPS instance. Examples of usage:
# opensipsctl fifo pwd
WD:: /
7. uptimePrints various time information about OpenSIPS - when it started to run, for how long it runs. Examples of usage:
# opensipsctl fifo uptime
Now:: Mon Jul 21 17:41:03 2008
Up since:: Mon Jul 21 17:36:33 2008
Up time:: 270 [sec]
8. versionPrints the version string of a runningOpenSIPS. Examples of usage:
# opensipsctl fifo version
Server:: OpenSIPS (1.4.0dev14-notls (i386/linux))
9. whichPrints all available MI commands from the queried OpenSIPSinstance. Examples of usage:
# opensipsctl fifo which
get_statistics
reset_statistics
uptime
version
pwd
arg
which
ps
kill
debug
list_blacklists
ul_rm
ul_rm_contact
ul_dump
ul_flush
ul_add
ul_show_contact
nh_enable_ping
nh_enable_rtpp
10. get_statisticsPrints the statistics (all, group or one) realtime values. Examples of usage:
# opensipsctl fifo get_statistics rcv_requests
core:rcv_requests = 35243
# opensipsctl fifo get_statistics shmem:
shmem:total_size = 33554432
shmem:used_size = 1686952
shmem:real_used_size = 1704592
shmem:max_used_size = 1704592
shmem:free_size = 31849840
shmem:fragments = 1
# opensipsctl fifo get_statistics all
....
11. reset_statisticsReset (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"). Examples of usage:
# opensipsctl fifo get_statistics received_replies
core:received_replies = 14543
# opensipsctl fifo reset_statistics received_replies
# opensipsctl fifo get_statistics received_replies
core:received_replies = 0
12. cache_storeThis command stores in a cache system a string value.
# opensipsctl fifo cache_store local password_user1 password
13. cache_fetchThis command queries for a stored value.
# opensipsctl fifo cache_fetch local password_user1
14. cache_removeThis command removes a record from the cache system.
# opensipsctl fifo cache_remove local password_user1
14.1 Comments | News OpenSIPS Getting Started21st of April 2012
OpenSIPS Getting Started Video Tutorial about how to do an installation of OpenSIPS and OpenSIPS-CP... OpenSIPS Devel Course12th of April 2012
Learn about OpenSIPS internals both core and modules... OpenSIPS 1.8.022nd of March 2012
OpenSIPS 1.8.0 major release ready... Dynamic Routing20th of March 2012
Enhancements of DR engine... APT repository23nd of February 2012
New official APT repository for Debian & Ubuntu OpenSIPS 1.7.222nd of February 2012
OpenSIPS 1.7.2 minor release out... SIP Validation Support20th of February 2012
Prevent malformed SIP messages from propagating through your network DNS Caching Support13th of February 2012
Cache system for all types of DNS records Distributed Dialog Profiles9th of February 2012
Shared dialog profiles between multiple instances of OpenSIPS Configuration and Scripting Tool19th of January 2012
Graphical Configuration and Scripting Tool for OpenSIPS Cassandra driver05th of January 2012
Cassandra backend for OpenSIPS LUA integration05th of January 2012
Using LUA scripting with OpenSIPS OpenSIPS Pavilion @ ITExpo 201222th of December 2011
OpenSIPS Pavilion booth #535, 1-3 Feb 2012 OpenSIPS and HOMER14th of December 2011
Distributed SIPtracing and SIPcapturing OpenSIPS eBootcamp12th of December 2011
New Ebootcamp session starting on 15th of February 2012. OpenSIPS 1.7.123rd of November 2011
OpenSIPS 1.7.1 minor release out... Ratelimit3rd of November 2011
Dynamic and distributed support... OpenSIPS VM 1.7.01st of November 2011
Live Virtual Machine for OpenSIPS 1.7... MI via HTTP25th of October 2011
Bultin HTTP server for MI... Events via RabbitMQ12th of October 2011
Event Interface can push events via RabbitMQ... Key-Value Cache/DBs6th of October 2011
Script and module support for key-value oriented backend... GRUU support4th of October 2011
OpenSIPS registrar with GRUU / RFC5627... OpenSIPS 1.8.0 preview30th of September 2011
What is set to be done for OpenSIPS 1.8.0... OpenSIPS eBootcamp28th of July 2011
New Ebootcamp session starting on 19th of September. OpenSIPS 1.7.012nd of July 2011
OpenSIPS 1.7.0 major release ready... ClueCon 201111th of July 2011
Talks and one-day free training New in 1.7.06th of July 2011
What is new in OpenSIPS 1.7.0 SVN Freeze30th of June 2011
Testing phase started for 1.7 release Topology Hiding30th of June 2011
Topology Hiding based on dialog module New AVP naming23rd of June 2011
A simpler and more efficient way of naming AVPs DB Optimization22nd of June 2011
Multi-row DB insert operations. Event Notification Interface26th of May 2011
External interaction via the Event Interface. OpenSIPS eBootcamp28th of March 2011
New Ebootcamp session starting on 2nd of May. UAC_REGISTRANT module10th of March 2011
New module to allow OpenSIPS to UAC register. Performance degradation with complexity08th of March 2011
Tests to show how performance is affected with complexity. Load and performance monitoring22nd of February 2011
New statistics and traps for OpenSIPS monitoring. OpenSIPS 2.017th of February 2011
OpenSIPS 2.0 first code release. OpenSIPS Online Meeting15th of February 2011
OpenSIPS Online Monthly Meetings started. OpenSIPS Social Event24th of January 2011
OpenSIPS Social Event - Miami, 3rd of February. OpenSIPS eBootcamp17th of January 2011
New Ebootcamp session starting on 28th of February. OpenSIPS 1.6.420th of December 2010
OpenSIPS 1.6.4 major release ready... OpenSIPS media timeout16th of December 2010
Ghost call hunting with media timeout ... |