TECH7Fox / asterisk-hass-addons

Asterisk add-on for Home Assistant
https://tech7fox.github.io/sip-hass-docs/
MIT License
69 stars 26 forks source link

Addon watchdog #318

Open chrodriguez opened 6 months ago

chrodriguez commented 6 months ago

Hello, I've been using this addon for six months and it works great. Sometimes when homeassistant machine restarts, asterisk addon remains stopped. But, I've configured:

image

This watchdog setting makes me go and read Home Assistant add-on configuration, and I've detected that this entry is not configured in asterisk/config.yaml. May be I'm wrong, but it may be helpful to add something like:

watchdog: tcp://[HOST]:5060

Thanks in advance

felipecrs commented 6 months ago

That's a great idea. Feel free to contribute as a PR. The most difficult part is testing, I suppose.

TECH7Fox commented 2 months ago

I don't know why it doesn't say it on the docs already, but the watchdog option is obsolete.

The watchdog option in the GUI (should) simply restarts the add-on when it crashes and stops. No idea why you are having problems though. Do you see any related errors / warnings in the supervisor logs?

felipecrs commented 2 months ago

@TECH7Fox we could still add a HEALTHCHECK though, to detect situations where the add-on is stuck.

Example: