More log on asterisk wrapper

This commit is contained in:
Laurent Destailleur 2010-07-22 21:49:44 +00:00
parent 362efe167f
commit be603ac30e

View File

@ -106,7 +106,7 @@ if (! empty($number))
$errstr=0 ; $errstr=0 ;
$strCallerId = "Dolibarr <".strtolower($caller).">" ; $strCallerId = "Dolibarr <".strtolower($caller).">" ;
$oSocket = @fsockopen ($strHost, $port, $errno, $errstr, 10) ; $oSocket = @fsockopen ($strHost, $port, $errno, $errstr, 10) ;
if ($oSocket) if (!$oSocket)
{ {
print '<body>'."\n"; print '<body>'."\n";
$txt="Failed to execute fsockopen($strHost, $port, \$errno, \$errstr, 10)<br>\n"; $txt="Failed to execute fsockopen($strHost, $port, \$errno, \$errstr, 10)<br>\n";