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