Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Node.js FreeSWITCH event socket client

branch: master
Octocat-spinner-32 LICENSE first commit August 09, 2011
Octocat-spinner-32 README readme added August 09, 2011
Octocat-spinner-32 example.js first commit August 09, 2011
Octocat-spinner-32 freeswitch.js first commit August 09, 2011
README
FreeSWITCH event socket client for node.js

author Demchenko Eugene ( mailto:it-bm@mail.ru, 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()

Something went wrong with that request. Please try again.