<div dir="ltr"><div><div><div><div>Hi Mike!<br><br></div>I don&#39;t know exactly why but xmlrpc_encode_request must have a parameter as second argument. try something like that:<br><br>&lt;?php<br><br>$ip=&quot;X.X.X.X&quot;;<br><br>$params[] = &quot; &quot;;<br><br>$method = &quot;ul_dump&quot;;<br>//$method = &quot;dlg_list&quot;;<br>$request = xmlrpc_encode_request($method,$params);<br><br>$context = stream_context_create(array(&#39;http&#39; =&gt; array(<br>           &#39;method&#39; =&gt; &quot;POST&quot;,<br>              &#39;header&#39; =&gt; &quot;Content-Type: text/xml&quot;,<br>                 &#39;content&#39; =&gt; $request<br>         )));<br>$file = file_get_contents(&quot;http://$ip:8000/RPC2&quot;, false, $context);<br>$response = xmlrpc_decode($file);<br>print $response;<br>?&gt;<br><br><br></div>Please take note that mi_xmlrpc module needs a very old libxmlrpc-c3 version (between 1.03.10 and 1.06.42 you can check yours with xmlrpc-c-config --version) You can use mi_xmlrpcng module instead.<br><br></div>Regards,<br></div><br>Carlos Oliva<br><div><div><div><br><br><br><br></div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><b style="font-size:13px"><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br>
<span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><br><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/WN6hk84ri7BRmKal1fKNiC-AMmPYSDb0PtICYSJrzUa8tBua0VLuBXzjNCsxZYm2STOwRHUUnQmBKAirtvexlLg_AHY40gGbdEYQGf9oPE3yuTka_QfxoMajnQ" height="28px;" width="200px;"></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span></p><br><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<span style="font-family:Verdana;color:rgb(102,102,102);vertical-align:baseline;white-space:pre-wrap">Carlos Oliva</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Departamento de Sistemas<b></b></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">C/ Pujades, 77-79, 8a Planta 9B | 08005 Barcelona</span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a href="http://www.numintec.com/" style="text-decoration:none" target="_blank"><span style="font-family:Verdana;font-weight:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">www.numintec.com</span></a><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> | </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:carlos.oliva@numintec.com" target="_blank">carlos.oliva@numintec.com</a></span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-family:Verdana;font-weight:normal;vertical-align:baseline;white-space:pre-wrap">|</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> T: </span><span style="font-family:Verdana;color:rgb(17,85,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">902 02 02 97</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><a href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Talking Numintec: Dialogando con empresarios de éxito</span></a></p>
<br><a href="http://www.youtube.com/user/numintec" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Las soluciones en la nube de Numintec - Casos de éxito</span></a></p>
<br><a href="http://www.numintec.com/category/caso-de-exito/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap"></span></a><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt">
<a href="http://www.numintec.com/demo/" style="text-decoration:none" target="_blank"><span style="font-size:11px;font-family:Verdana;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">Solicita una demo</span></a></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">_________________________________________________</span><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span></p>
<br><span style="font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"></span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Medio Ambiente: </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap">Antes de imprimir este mensaje, asegúrese de que es necesario. </span></p>
<p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt;margin-left:30pt"><span style="font-size:11px;font-family:Verdana;color:rgb(0,204,204);vertical-align:baseline;white-space:pre-wrap">Nota Legal:</span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">La información contenida en la presente transmisión es confidencial y su 
uso únicamente está permitido a su(s) destinatario(s). Le informamos que
 los datos personales que facilite/ha facilitado pasarán/han pasado a 
formar parte de un fichero responsabilidad de NUMINTEC COMUNICACIONES 
S.L.. y que tiene por finalidad gestionar las relaciones. Tiene la 
posibilidad de ejercitar los derechos de acceso, rectificación, 
cancelación y oposición respecto a sus datos ante la empresa, en el 
e-mail</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Arial;color:rgb(17,85,204);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:comunicacion@numintec.com" target="_blank">comunicacion@numintec.com</a></span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> o bien en el  domicilio sito en C/ Pujades, 77-79 8ª Planta 9-B</span><span style="font-size:11px;font-family:Arial;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:11px;font-family:Verdana;color:rgb(102,102,102);font-weight:normal;font-style:italic;vertical-align:baseline;white-space:pre-wrap">08005 de Barcelona.</span></p></b></div></div>
<br><div class="gmail_quote">2015-10-09 14:21 GMT+02:00 Mike Tesliuk <span dir="ltr">&lt;<a href="mailto:mike@brdsoft.com.br" target="_blank">mike@brdsoft.com.br</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everybody,<br>
<br>
<br>
Im trying some tests on an opensips 1.11 [ (1.11.3-notls (x86_64/linux)) ] using mi_xmlrpc, when i try to call the dlg_list command i get the message below<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;methodResponse&gt;<br>
&lt;fault&gt;<br>
&lt;value&gt;&lt;struct&gt;<br>
&lt;member&gt;&lt;name&gt;faultCode&lt;/name&gt;<br>
&lt;value&gt;&lt;i4&gt;-500&lt;/i4&gt;&lt;/value&gt;&lt;/member&gt;<br>
&lt;member&gt;&lt;name&gt;faultString&lt;/name&gt;<br>
&lt;value&gt;&lt;string&gt;The xmlrpc request could not be parsed into a MI tree!&lt;/string&gt;&lt;/value&gt;&lt;/member&gt;<br>
&lt;/struct&gt;&lt;/value&gt;<br>
&lt;/fault&gt;<br>
&lt;/methodResponse&gt;<br>
<br>
<br>
My script is very simple, on the first moment just to check how i can receive the return to be parsed<br>
<br>
$request = xmlrpc_encode_request(&quot;dlg_list&quot;,&quot;&quot;);<br>
<br>
<br>
$context = stream_context_create(array(&#39;http&#39; =&gt; array(<br>
            &#39;method&#39; =&gt; &quot;POST&quot;,<br>
                &#39;header&#39; =&gt; &quot;Content-Type: text/xml&quot;,<br>
                    &#39;content&#39; =&gt; $request<br>
            )));<br>
$file = file_get_contents(&quot;<a href="http://127.0.0.1:8000/RPC2" rel="noreferrer" target="_blank">http://127.0.0.1:8000/RPC2</a>&quot;, false, $context);<br>
<br>
print $file;<br>
die();<br>
<br>
<br>
Im able to use other commands like which, get_statistics but not the dlg_list, is that expected ?<br>
<br>
Thank you<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>