-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
45 lines (25 loc) · 744 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FreeSWITCH event socket client for node.js
author Demchenko Eugene ( mailto:[email protected], skype:demchenkoe )
project under BSD license
tested on:
- node.js v0.2.6
- frreswitch git-1086cba ( 2011-05-23 22-51-43 )
- Debian GNU/Linux 6.0
Mini 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()