<div dir="ltr"><div>Thanks for your replay.</div><div><br>When send integer variable must to use: <i4> or <int>.<br>When send non integer variable must to use <string>.<br>This is the XML standart.......</div>
<div>Why I not problem with mi_xmlrpc?</div><div><br>Can you give me PERL example to send integer variable as <string>integer</string>?</div><div><br></div><div>Best regards,<br>PlayMen</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014/1/20 Ovidiu Sas <span dir="ltr"><<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Mr. PlayMen,<br>
<br>
As I mentioned to you before, you need to send the arguments as a string.<br>
I tested and it works fine with mi_xmlrpc_ng.<br>
<br>
You can tested using curl.<br>
First, create a file called dialog.xml.<br>
$ cat dialog.xml<br>
<?xml version='1.0'?><br>
<div class="im"><methodCall><br>
<methodName>dlg_end_dlg</methodName><br>
<params><br>
</div><param><value><string>HASH_ENTRY</string></value></param><br>
<param><value><string>HASH_ID</string></value></param><br>
</params><br>
</methodCall><br>
<br>
replace HASH_ENTRY and HASH_ID with your real values<br>
<br>
Then send the values to your opensips server:<br>
curl -i -X POST http://OPENSIPS_IP:PORT/PATH -d @dialog.xml -H<br>
"Content-Type: text/xml"<br>
<br>
In your script, you need to force those values to be string.<br>
Probably you need to put quotes or double quotes around the hash_entry<br>
and hash_id variables.<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<br>
On Mon, Jan 20, 2014 at 3:16 PM, Dragomir Haralambiev<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> The module mi_xmlrpc have problem with dlg_list_ctx when have 50 concurent<br>
> calls. /The Opensips crashed/.<br>
><br>
> The module mi_xmlrpc_ng not working with dlg_end_dlg because OpenSips not<br>
> received integer value (<i4>).<br>
><br>
> Can anyone advise me what to use for remote MI.<br>
><br>
> Rgards,<br>
> PlayMen<br>
><br>
><br>
> 2014/1/20 Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>><br>
>> Give it a try. IIRC the conversion is done automatically in opensips.<br>
>> You should send only strings.<br>
>><br>
>> -ovidiu<br>
>><br>
>><br>
>> On Monday, January 20, 2014, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> I do not know.<br>
>>> The PERL XML::RPC for integer variable use <i4> only.<br>
>>><br>
>>><br>
>>> 2014/1/20 Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>><br>
>>>><br>
>>>> Does it work without i4?<br>
>>>><br>
>>>><br>
>>>> On Monday, January 20, 2014, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com">goup2010@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Hello,<br>
>>>>><br>
>>>>> I try to terminate call using dlg_end_dlg.<br>
>>>>><br>
>>>>> When use module mi_xmlrpc all is OK.<br>
>>>>> When use module mi_xmlrpc_ng I receive follow error:<br>
>>>>><br>
>>>>> DBG:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: got methodName=dlg_end_dlg<br>
>>>>> ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_run_mi_cmd: missing node string<br>
>>>>> ERROR:mi_xmlrpc_ng:mi_xmlrpc_http_answer_to_connection: no reply<br>
>>>>><br>
>>>>> Here is PERL script:<br>
>>>>><br>
>>>>> #!/usr/bin/perl<br>
>>>>> use XML::RPC;<br>
>>>>> $hash_entry=538;<br>
>>>>> $hash_id=10274470;<br>
>>>>> $xmlrpc = XML::RPC->new("<a href="http://OPENSIPS_IP:8000/xmlrpc" target="_blank">http://OPENSIPS_IP:8000/xmlrpc</a>");<br>
>>>>> $xmlrpc->call('dlg_end_dlg', ("$hash_entry", "$hash_id") );<br>
>>>>><br>
>>>>> Here is the XML sended to Opensips:<br>
>>>>> <?xml version="1.0" encoding="UTF-8" ?><br>
>>>>> <methodCall><br>
>>>>> <methodName>dlg_end_dlg</methodName><br>
>>>>> <params><br>
>>>>> <param><br>
>>>>> <value><i4>538</i4></value><br>
>>>>> </param><br>
>>>>> <param><br>
>>>>> <value><i4>10274470</i4></value><br>
>>>>> </param><br>
>>>>> </params><br>
>>>>> </methodCall><br>
>>>>><br>
>>>>> The hash_entry and hash_id are interger.<br>
>>>>> In this case XML is using <i4>538</i4> not a <string>538</string>.<br>
>>>>> The mi_xmlrpc_ng is not recognised <i4>.<br>
>>>>><br>
>>>>> How to fix this problem?<br>
>>>>><br>
>>>>> Best regards,<br>
>>>>> PlayMen<br>
>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> VoIP Embedded, Inc.<br>
>>>> <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>>><br>
>>><br>
>><br>
>><br>
>> --<br>
>> VoIP Embedded, Inc.<br>
>> <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
--<br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>