when i try my test program with k mi_xmlrpc module, it works fine and ngrep shows:
######## T 2009/07/06 18:12:34.028112 192.98.101.10:41014 -> 192.98.101.10:6060 [AP] POST /RPC2 HTTP/1.0. Host: 192.98.101.10:6060. User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com). Content-Type: text/xml. Content-Length: 104. .
## T 2009/07/06 18:12:34.028289 192.98.101.10:41014 -> 192.98.101.10:6060 [AP] <?xml version='1.0'?> <methodCall> <methodName>lcr_reload</methodName> <params> </params> </methodCall>
## T 2009/07/06 18:12:34.030189 192.98.101.10:6060 -> 192.98.101.10:41014 [AP] HTTP/1.1 200 OK.
# T 2009/07/06 18:12:34.030289 192.98.101.10:6060 -> 192.98.101.10:41014 [AP] Content-type: text/xml; charset="utf-8".
# T 2009/07/06 18:12:34.032315 192.98.101.10:6060 -> 192.98.101.10:41014 [AFP] Content-length: 147. Connection: close. Date: Mon, 06 Jul 2009 16:12:34 GMT. Server: XMLRPC_ABYSS/1.06. . <?xml version="1.0" encoding="UTF-8"?>. <methodResponse>. <params>. <param><value><string></string></value></param>. </params>. </methodResponse>.
####
when i try domain.reload with xmlrpc module, it hangs and ngrep reports:
T 2009/07/06 18:18:25.496760 192.98.101.10:37656 -> 192.98.101.10:6060 [AP] POST /RPC2 HTTP/1.0. Host: 192.98.101.10:6060. User-Agent: xmlrpclib.py/1.0.1 (by www.pythonware.com). Content-Type: text/xml. Content-Length: 107. .
## T 2009/07/06 18:18:25.496953 192.98.101.10:37656 -> 192.98.101.10:6060 [AP] <?xml version='1.0'?> <methodCall> <methodName>domain.reload</methodName> <params> </params> </methodCall>
## T 2009/07/06 18:18:25.498713 192.98.101.10:6060 -> 192.98.101.10:37656 [AP] HTTP/1.0 200 OK. Via: SIP/2.0/TCP 192.98.101.10:37656. Server: OpenXg SIP Router (2.99.0-dev01-serk (i386/linux)). Content-Length: 108. . <?xml version="1.0"?> <methodResponse> <params> <param> <value></value> </param> </params> </methodResponse> #
one difference that could explain the hangup is that xmlrpc module does not close the connection like mi_xmlrpc server does.
-- juha