Hi folks,<br><br>I&#39;ve got the following scenario:<br>CDRTool (8.2.2) installed from sources is trying to communicate to a media-proxy dispatcher (2.5.2) installed from ag-projects repository.<br>The problem I&#39;m facing is that from the CDRTool web interface, when I try to check the real-time usage in the section Sessions, the following error appear:<br>
(...)<br>Error connecting to tcp://W.X.Y.Z:25061: (Could not enable crypto)<br>(...)<br><br>The logs at the dispatcher server is the next one:<br>(...)<br>debug: Connection to Management interface client lost: A TLS packet with unexpected length was received.<br>
(...)<br><br>The &quot;funny&quot; thing is that if I use the following PHP script from the CLI, using the same cert as the installation process describes, I&#39;m able to get the sessions:<br><br>#!/usr/bin/php -q<br><br>
&lt;?php<br>$host =&#39;W.X.Y.Z&#39;;<br>$port = 25061;<br>$timeout = 10;<br>$cert = &#39;./mediaproxy.W.X.Y.Z.pem&#39;;<br>$context = stream_context_create(array(&#39;ssl&#39;=&gt;array(&#39;local_cert&#39;=&gt; $cert,)));<br>
$fp = stream_socket_client(&#39;tcp://&#39;.$host.&#39;:&#39;.$port, $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $context);<br>if (!$fp) {<br>    echo &quot;ERROR: $errno - $errstr\n&quot;;<br>} else {<br>    if (stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_SSLv3_CLIENT)) {<br>
        fputs($fp, &quot;sessions\r\n&quot;);<br>        echo fread($fp,8192);<br>        fclose($fp);<br>    } else {<br>        echo &quot;ERROR: could not enable crypto\n&quot;;<br>    }<br>}<br><br>?&gt;<br><br>I&#39;ve got the feeling there&#39;s some &quot;stupid&quot; thing either in apache2 or in cdrtool configuration that does not let use TLS to the socket and it stays in &quot;TCP-mode&quot;. Can anyone provide any shed on this issue?<br>
<br>Thank you very much in advance,<br>Samuel<br>