siremis:install33x:mi-commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

siremis:install33x:mi-commands [2012/09/15 10:32] (current)
Line 1: Line 1:
 +====== Siremis v3.3.x - MI Commands Panel ======
  
 +===== Kamailio Config File =====
 +
 +In your Kamailio configuration file you have to load //​**mi_datagram**//​ module:
 +
 +<​code>​
 +   ​loadmodule "​mi_datagram.so"​
 +</​code>​
 +
 +and configure it to listen on UDP 127.0.0.1 port 8033:
 +
 +<​code>​
 +   ​modparam("​mi_datagram",​ "​socket_name",​ "​udp:​127.0.0.1:​8033"​)
 +</​code>​
 +
 +<note tip>If you set the UDP socket to a public address, make sure you set properly the firewall to allow only communication from and to SIREMIS server.</​note>​
 +
 +At this time you are set with Kamailio configuration file, just restart it.
 +
 +==== Siremis Config ====
 +
 +The configuration related to MI for SIREMIS ​ resides in file:
 +
 +<​code>​
 +    siremis/​modules/​ser/​service/​siremisMICommands.xml
 +</​code>​
 +
 +The content can look like:
 +
 +<code xml>
 +<?xml version="​1.0"​ standalone="​no"?>​
 +<​PluginService Name="​siremisMICommands"​ Package="​asipto"​ Class="​siremisMICommands">​
 + <​MIConfig name="​MIConfig"​ type="​udp"​ mode="​rich">​
 + <Local name="​local"​ address="​127.0.0.1"​ port="​8044"​ timeout="​3.0"/>​
 + <​Remote name="​remote"​ address="​127.0.0.1"​ port="​8033"/>​
 + <​MICommands>​
 + <cmd name="​ps"​ title="​List Processes"​ command="​ps"/>​
 + <cmd name="​uptime"​ title="​Show Uptime"​ command="​uptime"/>​
 + <cmd name="​getstatsall"​ title="​Get All Statistics"​ command="​get_statistics all"/>​
 + <cmd name="​which"​ title="​Get All MI Commands"​ command="​which"/>​
 + </​MICommands>​
 + </​MIConfig>​
 +</​PluginService>​
 +</​code>​
 +
 +There are two UDP sockets you have to set:
 +
 +  * local – is the socket SIREMIS will create and use for communication with Kamailio
 +  * remote – is the socket Kamailio is listening on for MI commands
 +
 +In case you want to have a drop-down menu with more MI commands, fill in new ‘cmd’ tags in ‘MICommands’ node.
 +
 +{{tag>​siremis kamailio}}


Copyright 2010-2019 Asipto.com