GithubHelp home page GithubHelp logo

azelphur / asterisk-integration Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tech7fox/asterisk-hass-integration

0.0 1.0 0.0 1.55 MB

Asterisk integration for Home Assistant

Python 0.54% JavaScript 99.46%

asterisk-integration's Introduction

Asterisk-integration

Asterisk integration for Home Assistant

This integration finds and adds all extensions to your Home Assistant and includes a card to call them from.

Roadmap

Things that are coming soon:

  • GUI config
  • More useful text
  • Better styling
  • Device triggers, conditions and actions
  • More entities with information
  • Support popup

Less priority:

  • Channel entities
  • PA/broadcast
  • conference
  • forward calls

I am open for suggestions!

Asterisk add-on

The upcoming Asterisk add-on will be fully supported by this integration.

Requirements

For this to work you will need the following:

Go to https://github.com/TECH7Fox/HA-SIP/wiki/Setup-FreePBX to see how to setup FreePBX for this card.

Installation

Download using HACS

  1. Go to HACS
  2. Click on the 3 points in the upper right corner and click on Custom repositories
  3. Paste https://github.com/TECH7Fox/Asterisk-integration/ into Add custom repository URL and by category choose Lovelace
  4. Click on add and check if the repository is there.
  5. You should now see Asterisk integration. Click INSTALL
  6. Restart Home Assistant.
  7. Go to integrations and find Asterisk.
  8. Fill in the fields and click add.
  9. Check if the card loads succesfully.

Usage

Add the card by setting type to custom:sipjs-card.

type: custom:sipjs-card
server: 192.168.0.1
autoAnswer: true
video: true
ringtone: /local/asterisk/ringtone.mp3
backtone: /local/asterisk/backtone.mp3
entities:
  - entity: sensor.asterisk_extension_103
    person: person.someone
    secret: 1234
  - entity: sensor.asterisk_extension_104
    person: person.someone_else
    secret: 1234
dtmfs:
  - name: door
    signal: 1
  • video: Enables remote video.
  • server: Your Asterisk server.
  • autoAnswer: Answers any incoming call.
  • ringtone: Path to ringtone. Used when being called. /local is your /www folder.
  • backtone: Path to backtone. Used when calling. /local is your /www folder.
  • dtmfs: Adds a button to send a ftmf signal in the current call.

Troubleshooting

Most problems is because your pbx server is not configured correct. To see how to configure FreePBX go to: https://github.com/TECH7Fox/HA-SIP/wiki/Setup-FreePBX

  • For DTMF signalling to work, in FreePBX, change the dmtf signalling. For intercom purposes, "SIP-INFO DTMF-Relay" is needed.
  • Android companion app doesn't work, it's not possible to grant permissions to audio + speaker, this is fixed in the BETA android app. In the android Play Store, subscribe to the BETA channel.
  • Android companion app doesn't allow h264 video codec, make you disallow it on your softphone and/or Asterisk otherwise the call will fail with (remote busy error) If you want video in the companion app, use VP8 for instance

If you are still having problems you can make an issue, ask on the discord server or send me a email.

Contact

[email protected]

asterisk-integration's People

Contributors

azelphur avatar pergolafabio avatar tech7fox avatar

Watchers

 avatar

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.