englercj / node-esl

FreeSWITCH ESL implementation for Node.js; implements the full Event Socket Library specified in: http://wiki.freeswitch.org/wiki/Esl

Home Page:http://englercj.github.com/node-esl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECONNREFUSED in Ubuntu

roman-yerin opened this issue · comments

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());
});
});

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