GithubHelp home page GithubHelp logo

Comments (10)

TECH7Fox avatar TECH7Fox commented on June 2, 2024

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.

felipecrs avatar felipecrs commented on June 2, 2024

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.

TECH7Fox avatar TECH7Fox commented on June 2, 2024

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.

TECH7Fox avatar TECH7Fox commented on June 2, 2024

Nevermind, stupid of me. It was only a changelog for the SSH add-on. My bad.

from asterisk-hass-addons.

felipecrs avatar felipecrs commented on June 2, 2024

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.

felipecrs avatar felipecrs commented on June 2, 2024

I can work on it if agreed. Any opinions?

from asterisk-hass-addons.

felipecrs avatar felipecrs commented on June 2, 2024

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.

TECH7Fox avatar TECH7Fox commented on June 2, 2024

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.

TECH7Fox avatar TECH7Fox commented on June 2, 2024

And indeed it's also possible with the SSH add-on when we use symlinks.

from asterisk-hass-addons.

felipecrs avatar felipecrs commented on June 2, 2024

from asterisk-hass-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.