Answer the question
In order to leave comments, you need to log in
In FreeSwitch + FusionPBX, I can't connect to event_socket from an external IP, why?
There is a freshly installed server on which I installed:
const net = require('net');
const client = new net.Socket();
console.log('connecting')
client.connect(8021, '<Убрал IP>', function(a) {
console.log('Connected', a);
client.write('ClueCon');
});
client.on('data', function(data) {
console.log('Received: ' + data);
client.destroy();
});
client.on('close', function() {
console.log('Connection closed');
});
connecting
Connected undefined
Received: Content-Type: auth/request
Error: connect ECONNREFUSED <Убрал IP>:8021
<configuration name="event_socket.conf" description="Socket Client">
<settings>
<param name="nat-map" value="false"/>
<param name="listen-ip" value="<Убрал IP (внешний, а не 127.0.0.1)>"/>
<param name="listen-port" value="8021"/>
<param name="password" value="ClueCon"/>
<param name="apply-inbound-acl" value="dromhour"/>
</settings>
</configuration>
Answer the question
In order to leave comments, you need to log in
For those who face the same problem:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question