Asterisk voicemail application that allows users to leave messages for a mailbox.
$ git clone https://github.com/asterisk/node-voicemail.git
$ cd node-voicemail
$ npm install -g .
or add the following the your package.json file
"dependencies": {
"voicemail": "asterisk/node-voicemail"
}
Load as a module:
var voicemail = require('voicemail');
voicemail.create();
or run it as an application:
$ node start.js
After cloning the git repository, run the following to install the module and all dev dependencies:
$ npm install
$ npm link
Then run the following to run jshint and mocha tests:
$ grunt
jshint will enforce a minimal style guide. It is also a good idea to create unit tests when adding new features.
To generate a test coverage report run the following:
$ grunt coverage
This will also ensure a coverage threshold is met by the tests.
Apache, Version 2.0. Copyright (c) 2014, Digium, Inc. All rights reserved.