Ok,

it works fine with the xmlrpc module. It worths reading all your 'Best of New in Kamailio 3.0.0' posts before starting with 3.0.0 :-)

Thanks Daniel,
regards

 

2010/2/8 Daniel-Constantin Mierla <miconda@gmail.com>
Hello,


On 2/8/10 3:27 PM, Anton Roman wrote:
Hi all,

I'm trying to send xmlrpc commands to Kamailio with Siremis but I get the error below:
Fault Code: 5
Fault Reason: Didn't receive 200 OK from remote server. (HTTP/1.1 400 Bad Request)
 I get the same error when I manually send the xmlrpc command with curl.
you have to use the xmlrpc module for it (modules/xmlrpc), not mi_xmlrpc. It is a better implementation, you can exec all MI commands (load mi_rpc module) plus the RPC commands.

Some notes about it:
http://by-miconda.blogspot.com/2010/01/best-of-new-in-kamailio-300-17-xmlrpc.html

Cheers,
Daniel



On the other hand, mi_xmlrpc module seems to be correctly loaded, but nothing is written in the log file (set with 
modparam("mi_xmlrpc", "log_file", "/var/log/abyss.log")).  

Does anybody know where the problem might be?


  
Best regards,
thanks in advance.

Anton Roman


These are the traces of the xmlrpc message flow:

T +11.569284 127.0.0.1:37821 -> 127.0.0.1:8080 [AP]
POST  HTTP/1.0
User-Agent: PEAR XML_RPC
Host: 127.0.0.1
Content-Type: text/xml
Content-Length: 135

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>system.listMethods</methodName>
<params>
</params>
</methodCall>

##
T +0.000363 127.0.0.1:8080 -> 127.0.0.1:37821 [AP]
HTTP/1.1 400 Bad Request

#
T +0.000146 127.0.0.1:8080 -> 127.0.0.1:37821 [AP]
Content-type: text/html

#
T +0.001982 127.0.0.1:8080 -> 127.0.0.1:37821 [AFP]
Connection: close
Date: Mon, 08 Feb 2010 14:04:08 GMT
Server: XMLRPC_ABYSS/1.06

<HTML><HEAD><TITLE>Error 400</TITLE></HEAD><BODY><H1>Error 400</H1><P>Bad Request</P><p><HR><b><i><a href="http://xmlrpc-c.sourceforge.net">ABYSS Web Server for XML-RPC For C/C++</a></i></b> version 1.06<br></p></BODY></HTML>
####

_______________________________________________ Kamailio (OpenSER) - Users mailing list

-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/