Giter Site home page Giter Site logo

asterisk_mbox_server's Introduction

AsteriskVM Server

AsteriskVM is a client/server which provides an API to work with Asterisk voicemail mailboxes This is the server code which needs to be installed on the Asterisk server and will monitor mailbox directory for changes

Dependencies

  • Linux >= 2.6.13
  • Python >= 3.4
  • Lame

Capabilities

  • Display all metadata for all messages stored in a single mailbox
  • Convert messages to text using Google's speech-to-text service
  • Retrieve the audio of a message in MP3 format
  • Support both synchronous and asynchronous API

Configuration

Configuration is performed via the config.ini file

Parameters

  • host (Optional): The IP address to listen on for client requests. This defaults to all IP addresses on the server. To listen only locally, choose 127.0.0.1
  • port (Optional): The port to listen on for client requests. Defaults to 12345.
  • password (Required): A password shared between client and server. Use only alpha-numeric characters and spaces
  • mbox_path (Required): The path to the storage location of mailbox files. This is typically /var/spool/asterisk/voicemail/default/<mailbox>/
  • cache_file (Required): A fully-qualified path to a file thht can be written by the server containing transcriptions of voicemails. Example: /var/spool/asterisk/transcription.cache
  • google_key (Required): Your 40 characters Google API key.
  • cdr (Optional): Where to find CDR data. Supports various SQL databases as well as a file log.

Future work

  • Support moving messages
  • Support multiple mailboxes
  • Support alternate text-to-speech providers

Problems

On Home Assistant there might be a problem reading the CDR file because of missing time. I fixed it by changing the code /usr/local/lib/python3.6/dist-packages/homeassistant/components/mailbox/asterisk_cdr.py. I added a try except on the _build_message method.

asterisk_mbox_server's People

Contributors

bkbilly avatar phracturedblue avatar scottbender avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.