kdanthony / cbstatus

ConfBridge Status Daemon
1 stars 2 forks source link

Daemon Crashes #1

Open asteriskmonkey opened 10 years ago

asteriskmonkey commented 10 years ago

Seems to run ok for a couple hours then throws an error.

PHP Fatal error: Uncaught exception 'PAMI\Client\Exception\ClientException' with message 'Error reading' in /usr/share/pear/PAMI/Client/Impl/ClientImpl.php:236 Stack trace:

0 /usr/share/pear/PAMI/Client/Impl/ClientImpl.php(258): PAMI\Client\Impl\ClientImpl->getMessages()

1 /scripts/cbstatus.php(270): PAMI\Client\Impl\ClientImpl->process()

2 {main}

thrown in /usr/share/pear/PAMI/Client/Impl/ClientImpl.php on line 236

kdanthony commented 10 years ago

This is due to some laziness on my part and not handling AMI disconnections. Something appears to be interrupting the daemons communication with the AMI, not sure if asterisk is restarting or if a firewall is disconnecting a long session or what. Either way, I checked in some updates tonight that should help this as it will just restart itself and keep trying to reconnect if there is a problem. Replace the cbstatus.php and try it again and let me know.

vimalvijays commented 10 years ago

How to fix this please