englercj / node-esl

FreeSWITCH ESL implementation for Node.js; implements the full Event Socket Library specified in: http://wiki.freeswitch.org/wiki/Esl
http://englercj.github.com/node-esl/
MIT License
170 stars 111 forks source link

ECONNREFUSED in Ubuntu #33

Closed roman-yerin closed 10 years ago

roman-yerin commented 10 years ago

I've make an application and successfully test it in Fedora The same code isn't working in Ubuntu. In the same time I can connect to FS with fs_cli and telnet. I've disabled AppArmor just in case but still no luck.

There's nothing special, just: self.fsw = new esl.Connection(self.config.fsw.host, self.config.fsw.port, self.config.fsw.password, function() {

and I've checked - all necessary parameters exists. Actually I've got a ECONNREFUSED even if run var esl = require('modesl'), conn = new esl.Connection('127.0.0.1', 8021, 'ClueCon', function() { conn.api('status', function(res) { //res is an esl.Event instance console.log(res.getBody()); }); });

roman-yerin commented 10 years ago

Sorry, it seems, that's an outdated node.js at Ubuntu repo