The installation guides for Siremis v1.x and 2.0 have been relocated to our wiki system, click on next link to access it:
The content that follows in this page is obsoleted and will be removed soon.
Commands Panel
SIREMIS (starting with version 0.9.1) is able to send MI commands to Kamailio (OpenSER), receive and display the response.
Config file
In your Kamailio (OpenSER) configuration file you have to load mi_datagram module:
loadmodule "mi_datagram.so"
and configure it to listen on an UDP port:
modparam("mi_datagram", "socket_name", "udp:127.0.0.1:8033")
Note: 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.
At this time you are set with Kamailio (OpenSER) configuration file, just restart it.
Siremis config
The configuration related to MI for SIREMIS resides in file:
siremis/metadata/service/siremisMICommands.xml
The content can look like:
<?xml version="1.0" standalone="no"?> <PluginService Name="siremisMICommands" Package="asipto" Class="siremisMICommands"> <MIConfig name="MIConfig" type="udpsocket"> <Local name="local" data="127.0.0.1:8044"/> <Remote name="remote" data="127.0.0.1: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>
There are two UDP sockets you have to set:
- local – is the socket SIREMIS will create and use for communication with Kamailio (OpenSER)
- remote – is the socket Kamailio (OpenSER) is listeningon for MI commands
In case you want to have a drop-down menu with MI commands, fill in new ‘cmd’ tags in ‘MICommands’ node.