Twilio 呼叫自动断开连接
Twilio call autodisconnect
我正在进行浏览器到浏览器的调用,成功调用建立后,调用自动断开连接。接收器未执行传入函数。谁能帮我?
Twilio.Device.setup(token, { debug : true});
Twilio.Device.ready(function (device) {
console.log("Client '' is ready");
//! Ready
});
Twilio.Device.error(function (error) {
console.log("Error: " + error.message);
});
Twilio.Device.connect(function (conn) {
console.log("Successfully established call");
});
Twilio.Device.disconnect(function (conn) {
console.log("From:" + conn.parameters.From);
console.log("To:" + conn.parameters.To);
console.log("Call ended");
});
Twilio.Device.incoming(function (conn) {
console.log("Incoming connection from " + conn.parameters.From);
// accept the incoming connection and start two-way audio
conn.accept();
});
function call(id) {
console.log('calling started! to ' + id);
callto = id;
params = {"client": id};
Twilio.Device.connect(params);
}
我正在使用套接字来连接呼叫者!当第二个用户进入场景时,发送方会向接收方发出呼叫。传入函数在接收器端不起作用。
控制台日志:
[Device] Setting up PStream
twilio.min.js (line 58)
[WSTransport] Opening socket
twilio.min.js (line 58)
[WSTransport] attempting to connect
twilio.min.js (line 58)
[Device] Registering to eventStream with url: wss://matrix.twilio.com/2012-02-09/?AccessToken=eyJ&feature=publishPresence
twilio.min.js (line 58)
[Matrix] Attempting to connect to wss://matrix.twilio.com/2012-02-09/?AccessToken=eyJ&feature=publishPresence...
twilio.min.js (line 58)
[WSTransport] Socket opened
twilio.min.js (line 58)
[PStream] Setting token and publishing listen
twilio.min.js (line 58)
[Matrix] Socket opened... sending ready signal
twilio.min.js (line 58)
[Device] Stream is ready
twilio.min.js (line 58)
Client '' is ready
test (line 3718)
FIREBASE WARNING:
calling to user 12232343
test (line 3749)
[Twilio.PeerConnection] signalingState is "have-local-offer"
twilio.min.js (line 58)
[Twilio.PeerConnection] signalingState is "stable"
twilio.min.js (line 58)
Successfully established call
test (line 3728)
[Twilio.PeerConnection] iceConnectionState is "checking"
twilio.min.js (line 58)
[Twilio.PeerConnection] iceConnectionState is "connected"
twilio.min.js (line 58)
[Connection] Received HANGUP from gateway
twilio.min.js (line 58)
[Connection] Disconnecting...
twilio.min.js (line 58)
[Twilio.PeerConnection] iceConnectionState is "closed"
twilio.min.js (line 58)
[Twilio.PeerConnection] signalingState is "closed"
twilio.min.js (line 58)
From:undefined
test (line 3733)
To:undefined
test (line 3734)
Call ended
test (line 3735)
calling started! to 12122323
test (line 3749)
[Twilio.PeerConnection] signalingState is "have-local-offer"
twilio.min.js (line 58)
[Twilio.PeerConnection] signalingState is "stable"
twilio.min.js (line 58)
Successfully established call
test (line 3728)
[Twilio.PeerConnection] iceConnectionState is "checking"
twilio.min.js (line 58)
[Twilio.PeerConnection] iceConnectionState is "connected"
twilio.min.js (line 58)
[Connection] Received HANGUP from gateway
twilio.min.js (line 58)
[Connection] Disconnecting...
twilio.min.js (line 58)
[Twilio.PeerConnection] iceConnectionState is "closed"
twilio.min.js (line 58)
[Twilio.PeerConnection] signalingState is "closed"
twilio.min.js (line 58)
From:undefined
test (line 3733)
To:undefined
test (line 3734)
Call ended
在客户端的另一端:
The value "0.6;" for key "initial-scale" was truncated to its numeric prefix.
test:5 The value "0.5;" for key "minimum-scale" was truncated to its numeric prefix.
test:5 The key "maximum-scale:0.7;" is not recognized and ignored.
test:5 Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead.
test:1845 Client '' is ready
firebase.js:36 FIREBASE WARNING:
固定!由于该站点是安全的,因此使用新的请求URL创建了一个新的TwiML应用程序,以通过浏览器接收和拨打电话。感谢@philnash帮助我解决问题
相关文章:
- 我们如何在互联网断开连接或用户关闭选项卡/浏览器时调用注销servlet
- 服务器上的Meteor客户端断开连接事件
- websocket客户端在发送大数据时断开连接
- Will my'新对象'在套接字断开连接时被垃圾收集
- socket.io:断开连接事件 - “传输关闭”、“客户端命名空间断开连接”、“传输错误”和“强制关闭”
- 套接字发生了什么's在'断开连接'事件(服务器端)
- 在客户端断开连接时释放事件处理程序 Socket.IO
- nodeJS视频流,当用户断开连接或移动到不同页面时,连接不会关闭
- jQuery replaceWith()后JavaScript断开连接
- Node.js域集群工作程序断开连接
- 如何在数据库断开连接时处理Redis会话
- socket.io,netty socketio,nginx每分钟断开连接
- SSE(服务器发送的事件)断开连接
- 多个chrome.runtime.onMessage-Listeners-断开连接的端口错误
- 断开连接时 socket.io 销毁连接
- 如何检测 socket.io 上的断开连接
- 套接字断开连接不起作用
- 当套接字断开连接时终止msnodesql连接
- 在异步加载谷歌地图时处理网络断开连接
- Socket.io :断开连接后重新连接时如何执行某些操作