[OpenSIPS-Users] mi_xmlrpc_ng Problem

Dragomir Haralambiev goup2010 at gmail.com
Mon Jan 20 14:02:33 CET 2014


Hello,

I try to terminate call using dlg_end_dlg.

When use module mi_xmlrpc all is OK.
When use module mi_xmlrpc_ng I receive follow error:

DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got methodName=dlg_end_dlg
ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: missing node string
ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply

Here is PERL script:

#!/usr/bin/perl
use XML::RPC;
$hash_entry=538;
$hash_id=10274470;
$xmlrpc = XML::RPC->new("http://OPENSIPS_IP:8000/xmlrpc");
$xmlrpc->call('dlg_end_dlg', ("$hash_entry", "$hash_id") );
Here is the XML sended to Opensips:
<?xml version="1.0" encoding="UTF-8" ?>
<methodCall>
<methodName>dlg_end_dlg</methodName>
<params>
 <param>
  <value><*i4*>538</*i4*></value>
 </param>
 <param>
  <value><*i4*>10274470</*i4*></value>
 </param>
</params>
</methodCall>

The hash_entry and hash_id are interger.
In this case XML is using <i4>538</i4> not a <string>538</string>.
The mi_xmlrpc_ng is not recognised <i4>.

How to fix this problem?

Best regards,
PlayMen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140120/da08a8f9/attachment.htm>


More information about the Users mailing list