<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div><font color="#1F497D">Hello,</font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">I’m using Kamailio 4.0.3 as a presence server. I read in the documentation that the MI interface is or will be deprecated so I decided to use XMLRPC to get presence information about the UAs registered to the Kamailio to feed into
my application.</font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">I reused the example Python xmlrpc example script to prove out that I could connect to Kamailio and retrieve any information. I tried executing this command</font></div>
<div><font color="#1F497D"> </font></div>
<div><font face="Consolas" size="2"><span style="font-size:10pt;">[root@hera home]# python xmlrpcclient.py GET '<?xml version='1.0'?><methodCall><methodName>usrLoc.statistics</methodName><params></params></methodCall>'</span></font></div>
<div><font face="Consolas" size="2"><span style="font-size:10pt;">^Z</span></font></div>
<div><font face="Consolas" size="2"><span style="font-size:10pt;">[4]+  Stopped                 python xmlrpcclient.py GET '<?xml version='1.0'?><methodCall><methodName>usrLoc.statistics</methodName><params></params></methodCall>'</span></font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">It seems the command hangs, but I read in the kamailio.cfg file that Kamailio does not accept connections from Python’s xmlrpclib so is this correct? Are there other libraries out there, I prefer Python but willing to give Lua a try.
Or am I missing something something else, I made the script executable and its running locally on the local host and using port 5060.</font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">The use case I’m trying to develop is send Kamailio the AoR/URI of a registered UA and get back its presence state (online/offline), that is it.</font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">Regards,</font></div>
<div><font color="#1F497D">Tony de Sousa</font></div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>