https://github.com/marcelog/astertrace-node
Port of AsterTrace for the node
https://github.com/marcelog/astertrace-node
Last synced: 9 days ago
JSON representation
Port of AsterTrace for the node
- Host: GitHub
- URL: https://github.com/marcelog/astertrace-node
- Owner: marcelog
- License: apache-2.0
- Created: 2011-08-22T22:55:01.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-08-16T13:02:51.000Z (almost 14 years ago)
- Last Synced: 2025-01-03T10:28:50.620Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 115 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
NOTE: This is an experimental work. It works, but it's still experimental. I'll be updating it and its documentation with time.
Introduction
------------
This is very much like AsterTrace, so you might be interesting in checking that out too,
at http://marcelog.github.com/articles/php_asterisk_listener_example_using_pami_and_ding.html
Optional Requirements
---------------------
* socket.io (to accept websocket clients, tested with 0.7.8)
* mongoose (to save events and outgoing calls to mongo database, tested with 1.8.1)
* express (to use the rest api, tested with 2.4.4)
Installation
------------
$ npm install log4js
$ npm install nami
$ npm install mongoose
$ npm install express
$ npm install socket.io
Configuration
-------------
1.- Copy/rename conf/config.example.js to conf/config.js. Edit it to suit your needs.
Every resource/listener has a property "enable" to enable (doh) or not the feature.
2.- Copy/rename conf/logger.json.example to conf/logger.json. This is
effectively the configuration file for log4js.
Running it
----------
$ NODE_ENV=production NAMI_CONFIG_DIR=conf node src/index.js
Listeners
---------
* Call:
* Event:
* WebSocket:
Controllers
-----------
* Calls:
* Main:
Thanks to
--------
* Joshua Elson for his help in trying and debugging in loaded asterisk servers.