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

Link to this comparison view

siremis:install53x:xmlrpc-commands [2020/02/26 14:30] (current)
admin created
Line 1: Line 1:
 +====== Siremis v5.3.x - XMLRPC Commands Panel ======
 +===== Config File =====
 +In your Kamailio configuration file you have to load //​**xmlrpc**//​ module and configure it. In the default configuration file of Kamailio v5.3.x, xmlrpc module can be enabled easily by adding after the first line:
 +#!define WITH_XMLRPC
 +In the case Siremis is running on a different physical server that Kamailio, relax the access restrictions from:
 +route[XMLRPC] {
 +==== Siremis Config ====
 +The configuration related to XMLRPC for SIREMIS ​ resides in file:
 +    siremis/​modules/​sipadmin/​service/​siremisXRCommands.xml
 +The content can look like:
 +<code xml>
 +<?xml version="​1.0"​ standalone="​no"?>​
 +<​PluginService Name="​siremisXRCommands"​ Package="​asipto"​ Class="​siremisXRCommands">​
 +    <​XRConfig name="​XRConfig"​ mode="​rich">​
 + <​RSocket name="​rsocket"​ path="/​RPC2"​
 + address="​"​ port="​5060"​
 + timeout="​3"/>​
 +        <​XRCommands>​
 + <cmd name="​help"​ title="​List RPC Commands"​ command="​system.listMethods"/>​
 + <cmd name="​uptime"​ title="​Server - Uptime"​ command="​core.uptime"/>​
 + <cmd name="​psx"​ title="​Server - List Processes"​ command="​core.psx"/>​
 + <cmd name="​getstatsall"​ title="​Server - All Statistics"​ command="​stats.get_statistics all"/>​
 + <cmd name="​corexsockets"​ title="​Server - Listen Sockets"​ command="​corex.list_sockets"/>​
 + <cmd name="​corexaliases"​ title="​Server - Domain Aliases"​ command="​corex.list_aliases"/>​
 + <cmd name="​dslist"​ title="​Dispatcher - List Records"​ command="​dispatcher.list"/>​
 + <cmd name="​dsreload"​ title="​Dispatcher - Reload Records"​ command="​dispatcher.reload"/>​
 + <cmd name="​uldump"​ title="​UsrLoc - Location Records"​ command="​ul.dump"/>​
 + <cmd name="​uldumpbrief"​ title="​UsrLoc - Brief Location Records"​ command="​ul.dump brief"/>​
 + <cmd name="​addrlist"​ title="​Permissions - List IP Address Records"​ command="​permissions.addressDump"/>​
 + <cmd name="​subnlist"​ title="​Permissions - List IP Subnet Records"​ command="​permissions.subnetDump"/>​
 + <cmd name="​addrreload"​ title="​Permissions - Reload DB Address Records"​ command="​permissions.addressReload"/>​
 + <cmd name="​mtlist"​ title="​MTree - List Records"​ command="​mtree.list"/>​
 + <cmd name="​mtreload"​ title="​MTree - Reload Records"​ command="​mtree.reload"/>​
 + <cmd name="​pdtlist"​ title="​PDT - List Records"​ command="​pdt.list"/>​
 + <cmd name="​pdtreload"​ title="​PDT - Reload Records"​ command="​pdt.reload"/>​
 +        </​XRCommands>​
 +    </​XRConfig>​
 +The IP, Port and URL path for Kamailio'​s XMLRPC socket (default is Kamailio'​s IP and SIP port) has to be set in **RSocket**.
 +In case you want to have a drop-down menu with XMLRPC commands, fill in new ‘cmd’ tags in ‘XRCommands’ node.
 +{{tag>​siremis kamailio}}

Copyright 2010-2020