Comments (10)
Nevermind doesn't seem possible to create services from add-ons. Thought it was for some reason.
Maybe via the integration.
from asterisk-hass-addons.
It's also not complicated to create a HA script which calls the stdin service from SSH terminal to run a docker exec call to reload the asterisk extensions.
from asterisk-hass-addons.
Looked at that as well, but they removed the stin service.
https://community.home-assistant.io/t/hassio-addon-stdin-no-longer-working-with-2021-12/375099
from asterisk-hass-addons.
Nevermind, stupid of me. It was only a changelog for the SSH add-on. My bad.
from asterisk-hass-addons.
I have one other idea to tackle this issue in a more simpler way:
Instead of copying custom files over the default files (rsync), we could instead create add symbolic links into /etc/asterisk that points to the custom files in /config/asterisk/custom.
Then, the users can reload things by calling the Asterisk CLI commands directly.
The only drawback is that, if the user adds a new file, then for that file to be picked up it would still be required to restart the add-on, but I think this is an Ok compromise.
from asterisk-hass-addons.
I can work on it if agreed. Any opinions?
from asterisk-hass-addons.
It's even possible to create a service that keeps watching the /config/asterisk/custom directory for file added/removed and then properly create/delete the symlinks on the fly. But honestly I don't think it's worth it... adding/deleting files is not something you do regularly, thus restarting the add-on for such should be acceptable.
from asterisk-hass-addons.
But honestly I don't think it's worth it...
I agree, the add-on restarts much quicker for me now then before and like you said changing the config is not something people do very often.
Maybe we can skip this feature.
from asterisk-hass-addons.
And indeed it's also possible with the SSH add-on when we use symlinks.
from asterisk-hass-addons.
from asterisk-hass-addons.
Related Issues (20)
- Update 3.0.0 can't install HOT 1
- Add service to invoke Asterisk CLI commands HOT 1
- 'auto_add_secret' must be set when 'auto_add' is enabled HOT 1
- Addon does not start v4.0.1 HOT 2
- Addon Ver.4.0.2 freezes the HA HOT 25
- Cant Install Addons HOT 9
- Improve docker build time when cache misses HOT 3
- Default STUN server timeout in local network HOT 2
- Custom Audio files not working HOT 18
- Mailbox server broken HOT 1
- CI failing HOT 4
- Failed to Install add-on HOT 3
- Revert temp fix for build HOT 3
- Setup a trunk for outbound calls HOT 18
- Addon DNS HOT 15
- Add TFTPD option HOT 10
- No audio when outside my LAN HOT 2
- /config/asterisk/default/pjsip_custom.conf is purged at addon restart HOT 4
- stuff from custom does not make it to default HOT 5
- Asterisk GUI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asterisk-hass-addons.