Skip to content

Commit

Permalink
Merge pull request #82 from TECH7Fox/develop
Browse files Browse the repository at this point in the history
add data to discovery
  • Loading branch information
TECH7Fox authored Feb 3, 2022
2 parents c5f61d8 + 4cb2986 commit 113ff1e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion asterisk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 1.1.3

- Add `host` and `port` to discovery.

## 1.1.2

- Optimize when mailbox service is disabled (#80)
- Optimize when mailbox service is disabled [#80](https://github.com/TECH7Fox/Asterisk-add-on/pull/80)

## 1.1.1

Expand Down
2 changes: 1 addition & 1 deletion asterisk/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Asterisk
version: 1.1.2
version: 1.1.3
slug: asterisk
description: PBX server for SIP devices like doorbells and phones
url: https://github.com/TECH7Fox/Asterisk-add-on
Expand Down
6 changes: 4 additions & 2 deletions asterisk/rootfs/etc/services.d/asterisk/discovery
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ bashio::net.wait_for 8089

# Create discovery config payload for Home Assistant
config=$(bashio::var.json \
ami_user "admin" \
ami_password "$(bashio::config 'ami_password')"
host "127.0.0.1" \
port "8089" \
username "admin" \
password "$(bashio::config 'ami_password')"
)

# Send discovery info
Expand Down

0 comments on commit 113ff1e

Please sign in to comment.