[OpenSIPS-Users] mi_xmlrpc_ng Problem

Ovidiu Sas osas at voipembedded.com
Mon Jan 20 14:57:43 CET 2014


Give it a try.  IIRC the conversion is done automatically in opensips.
You should send only strings.

-ovidiu

On Monday, January 20, 2014, Dragomir Haralambiev <goup2010 at gmail.com>
wrote:

> I do not know.
> The PERL XML::RPC for integer variable use <i4> only.
>
>
> 2014/1/20 Ovidiu Sas <osas at voipembedded.com <javascript:_e({}, 'cvml',
> 'osas at voipembedded.com');>>
>
>> Does it work without i4?
>>
>>
>> On Monday, January 20, 2014, Dragomir Haralambiev <goup2010 at gmail.com<javascript:_e({}, 'cvml', 'goup2010 at gmail.com');>>
>> wrote:
>>
>>> 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
>>>
>>>
>>>
>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <javascript:_e({}, 'cvml',
>> 'Users at lists.opensips.org');>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140120/3224e190/attachment.htm>


More information about the Users mailing list