Open megapearl opened 6 years ago
Currently the sensor uses asterisk's sip show peer
command to check the status of an extension. Unfortunately this command doesn't show if a call is in progress, only the SIP connection status (i.e. connected/disconnected) of the extension.
Call monitoring could be done with the core show calls
command, but event generation from the AMI event stream would probably be more useful.
Ah ok, then it's not implemented yet. Is it possible to adjust the code so it reads out core show calls instead of sip show peer? and update the sensor with that status instead of "OK" ?
Maybe you can combine code from: https://www.cron.dk/asterisk-in-home-assistant-part2/ That code also isn't working for me, the sensors stays at 'Unknown' but maybe there are different Asterisk versions and commands to read out stuff are different too.
Would an event being fired on a call be useful for you?
As you say, loading data from core show calls
would show the call, but doesn't necessarily match to a specific extension, and extensions not on a call are not reported by this.
Hi,
I love your component, but cannot get it to work. Used your instructions and homeassistant gives:
But the Sensor always stays at OK, even if it is ringing.
When I Telnet to asterisk-15.4.1 AMI:
ListCommands in Asterisk AMI Gives:
What to do? Thanks in advance,
Best Regards, Donald.