Not really sure what is causing this issue:
` PAMI\Client\Exception\ClientException
Error reading
at C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:292
288▕ // Read something.
289▕ //$read = @fread($this->socket, 65535);
290▕ $read = @fread($this->socket, 8192);
291▕ if ($read === false || (empty($read) && @Feof($this->socket))) {
➜ 292▕ throw new ClientException('Error reading');
293▕ }
294▕ $this->currentProcessingMessage .= $read;
295▕ // If we have a complete message, then return it. Save the rest for
296▕ // later.
1 C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:316
PAMI\Client\Impl\ClientImpl::getMessages()
2 C:\xampp\htdocs\source\app\Console\Commands\SyncAsteriskNSW.php:129
PAMI\Client\Impl\ClientImpl::process()`
I don't know if this is because of a PHP update? Previous version was PHP 7.4 which worked fine. Now that I'm on PHP 8.1.2 with Laravel 9, keep getting this error when trying to connect.
Please help
Not really sure what is causing this issue:
` PAMI\Client\Exception\ClientException
Error reading
at C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:292
288▕ // Read something.
289▕ //$read = @fread($this->socket, 65535);
290▕ $read = @fread($this->socket, 8192);
291▕ if ($read === false || (empty($read) && @Feof($this->socket))) {
➜ 292▕ throw new ClientException('Error reading');
293▕ }
294▕ $this->currentProcessingMessage .= $read;
295▕ // If we have a complete message, then return it. Save the rest for
296▕ // later.
1 C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:316
PAMI\Client\Impl\ClientImpl::getMessages()
2 C:\xampp\htdocs\source\app\Console\Commands\SyncAsteriskNSW.php:129
PAMI\Client\Impl\ClientImpl::process()`
I don't know if this is because of a PHP update? Previous version was PHP 7.4 which worked fine. Now that I'm on PHP 8.1.2 with Laravel 9, keep getting this error when trying to connect.
Please help