我正在尝试将sipjs与freeswitch集成在一起。下面是我正在使用的配置
var config = {
// Replace this IP address with your FreeSWITCH IP address
uri: 'sip:1002@***.***.1.170',
// Replace this IP address with your FreeSWITCH IP address
// and replace the port with your FreeSWITCH port
ws_servers: 'ws://***.***.1.170:5060',
// FreeSWITCH Default Username
authorizationUser: '1002',
// FreeSWITCH Default Password
password: '1234'
};
var userAgent = new SIP.UA(config);……
session = userAgent.invite('sip:1000@***.***.1.170', options);但出现以下错误:
WebSocket connection to 'ws://***.***.1.170:5060/' failed: Error in connection establishment: net::ERR_TUNNEL_CONNECTION_FAILED我已经修改了internal.xml以允许网络套接字连接。有人能帮我吗?谢谢。
发布于 2015-02-12 05:52:30
您需要在端口5066上连接ws或wss端口7443。
https://serverfault.com/questions/663395
复制相似问题