Skip to content

iobroker-community-adapters/ioBroker.vis-sip-asterisk

 
 

Repository files navigation

Logo

ioBroker vis Widget for Asterisk

Widget to enable SIP communication with asterisk.

For implementation fo this widget following code of Doubango Telecom was used: https://github.com/DoubangoTelecom/sipml5

Preparation

Install Asterisk

Execute the installation script from ioBroker directory:

cd node_modules/iobroker.vis-sip-asterisk/scripts/Asterisk
./install-asterisk.sh  
  • Enter the IP address of the device
  • Confirm further actions

May be following will be required:

sudo chmod 744 install-asterisk.sh  

Install the created CA certificate in the browser you will use asterisk with.

The certificate is valid for 800 days. You can use the renew-ioBroker-cert.sh to renew the certificate.

Activate HTTPS for ioBroker

Execute the ioBroker certificate script from 'scripts/ioBroker':

cd node_modules/iobroker.vis-sip-asterisk/scripts/ioBroker
./init-ioBoker-cert.sh
  • Enter the IP address of the device

May be following will be required:

sudo chmod 744 init-ioBoker-cert.sh

Install the created CA certificate in the browser you will use ioBroker with.

The certificate is valid for 800 days. You can use the renew-ioBroker-cert.sh to renew the certificate.

Add the certificate and private key in certificate tab in the ioBroker system view.

Certificate tab in the ioBroker system view

Configure the Web adapter to activate HTTPS and use the added certificate and private key.

Web adapter configuration

Configure the SIP clients

Open the visualization and enter the following data into the popup:

Private Identity: 1060 or 1061
Public Identity: sip:1060@ipAddress or sip:1061@ipAddress
Password: password
Shown name: arbitrary
Realm: ipAddress
Websocket Proxy URL: wss://ipAddress:8089/ws

Use the following data for classic SIP clients:

Domain: ipAddress
Username: 6000 or 6001
Password: SmartHome!
Transport: UDP (Port 5060)

Replace "ipAddress" with the IP address of your asterisk server.

You can define further SIP accounts by editing the asterisk configuration (pjsip.conf + extensions.conf)

More Information

In the doc directory you can find a german documentation which describes the configuration and installation process and the use with a doorbird door intercom in detail.
Further information about asterisk can be found on the official asterisk web page: wiki.asterisk.org

Changelog

0.10.0 (2020-02-06)

  • (bluefox) Refactoring.

0.9.0 (2020-01-22)

  • Initial release.

Licence

MIT License

Copyright 2020 Sebastian Bäumlisberger (https://github.com/sbaeumlisberger) und Sebastian Waldmann (https://github.com/leftstring)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Widget to enable SIP communication with asterisk

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.5%
  • Other 0.5%