I wrote a small SIP client for a special purpose. Basically it connects to port 5060 using function fsockopen()
fsockopen()
$fp = fsockopen(\"10.0.0.1\", 5060,
I just recently encountered this error, debugging here and there for connection problem or proxy problem, finally found the culprit ... and the solution was to install php-pecl-crypto extension.
My machine is centos 7 using remi-repo for PHP