Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/demchenkoe/njs-freeswitch-esc
Node.js FreeSWITCH event socket client
https://github.com/demchenkoe/njs-freeswitch-esc
Last synced: 7 days ago
JSON representation
Node.js FreeSWITCH event socket client
- Host: GitHub
- URL: https://github.com/demchenkoe/njs-freeswitch-esc
- Owner: demchenkoe
- License: bsd-2-clause
- Created: 2011-08-09T18:50:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-09T19:48:15.000Z (over 13 years ago)
- Last Synced: 2023-03-12T05:32:57.698Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
FreeSWITCH event socket client for node.js
author Demchenko Eugene ( mailto:[email protected], skype:demchenkoe )
project under BSD licensetested on:
- node.js v0.2.6
- frreswitch git-1086cba ( 2011-05-23 22-51-43 )
- Debian GNU/Linux 6.0Mini HOW-TO:
var freeSwitch = require('./freeswitch');
fsc = new freeSwitch.client('localhost', 8021, 'ClueCon');
fsc.on('connect',function(){
//subscribe on events from FreeSWITCH
fsc.event('CHANNEL_CREATE CHANNEL_DESTROY');//...
});fsc.on('disconnect',function(){
//called on disconnect from FreeSWITCH
});//set handlers for event
fsc.on('CHANNEL_CREATE', function(event){
}
fsc.on('CHANNEL_DESTROY', function(event){
}
//connect to FreeSWITCH
freeswitch.connect()