https://github.com/bkbilly/asterisk_call_status
☎️ Connects to Asterisk and reports the status back to Home Assistant.
https://github.com/bkbilly/asterisk_call_status
ami asterisk hacs hacs-integration home-assistant
Last synced: 9 months ago
JSON representation
☎️ Connects to Asterisk and reports the status back to Home Assistant.
- Host: GitHub
- URL: https://github.com/bkbilly/asterisk_call_status
- Owner: bkbilly
- License: mit
- Created: 2020-11-17T20:51:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T15:50:06.000Z (over 2 years ago)
- Last Synced: 2025-06-20T09:46:22.722Z (about 1 year ago)
- Topics: ami, asterisk, hacs, hacs-integration, home-assistant
- Language: Python
- Homepage:
- Size: 309 KB
- Stars: 9
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://github.com/bkbilly/asterisk_call_status/releases)
[](LICENSE)
[](https://hacs.xyz)
# ASTERISK_CALL_STATUS
This custom addon is inspired for the use with Home Assistant as a sensor for monitoring the call status on the VoIP server Asterisk.
The information is taken from the Asterisk Manager Interface (AMI) and publishes the call status to the MQTT server.
The result will be something like this `caller -> 541 [voips.modulus.gr (Up), 541 (Up)]`.
The caller and the callee are both checked on the database of Asterisk and if found, they are replaced by the appropriate name.
## AMI Config
This `manager.conf` configuration will allow connections from the localhost `127.0.0.1` and the host `192.168.1.5`:
```
[general]
enabled = yes
webenabled = yes
displayconnects = yes
port = 5038
bindaddr = 0.0.0.0
[admin]
secret = mysecret
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.255
permit = 192.168.1.5/255.255.255.255
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
writetimeout = 5000
```
Restart manager:
```bash
sudo asterisk -rvvv
module reload manager
manager reload
quit
```
## Installation
Easiest install is via [HACS](https://hacs.xyz/):
[](https://my.home-assistant.io/redirect/hacs_repository/?owner=bkbilly&repository=asterisk_call_status&category=integration)
`HACS -> Explore & Add Repositories -> Asterisk Call Status`
HACS does not "configure" the integration for you. You must go to `Configuration > Integrations` and add `Asterisk Call Status` after installing via HACS.
## Old version
The older version that was using a dedicated service and was sending information via MQTT is not maintained anymore and it's stored on it's own branch `mqtt`.