TECH7Fox / asterisk-hass-integration

Asterisk integration for Home Assistant
57 stars 13 forks source link

[Request] Endpoint state change according to any current call state #101

Open sesardelaisla opened 1 month ago

sesardelaisla commented 1 month ago

Would it be possible to add a feature to the integration so an endpoint sensor state is changed according to any current call state? As far as I have seen, endpoint states are "Not in use", "Ringing" and "In use". However, there is not any state change if you call a number when (for example) the phone you are calling is unavailable (mobile phone off, out of coverage...). it would be great to detect whether the call is on "Dial" state, for instance. The purpose for this is to be able to build conditional scripts for "call forwarding" (a few calls in a row depending on previous state) in HASS without having to deal with the extensions.conf file, so being able to change endpoint state according to Hangup codes would be also great.

Thanks!