Using Twilio.js to record a call using webRTC. Works fine except at the 10 minute mark (exact!) the call hangs up. Max record time on TwiML is set to 7200secs.
The browser's console shows:
[Twilio.PeerConnection] signalingState is "stable"
twilio.js:1843 [Twilio.PeerConnection] iceConnection State is "checking"
twilio.js:1843 [Twilio.PeerConnection] iceConnection State is "connected"
twilio.js:1843 [Twilio.PeerConnection] iceConnection State is "completed"
[After 10 minutes...]
twilio.js:1843 [Connection] Received HANGUP from gateway
twilio.js:1843 [Connection] Disconnecting...
Chrome://webrtc-internals dump is useless:
{
"time": "11/28/2016, 4:35:48 PM",
"type": "iceConnectionStateChange",
"value": "ICEConnectionStateCompleted"
},
{
"time": "11/28/2016, 4:45:51 PM",
"type": "stop",
"value": ""
},
Breaking in the twilio.js library I see that something sends a websocket message with payload: {"payload":{"callsid":"CA18974349269fb9f24977185c5deaa62c"},"type":"hangup","version":""}
, which clearly causes the client to hang up the call.
Any ideas of why this may happen? It happens from both desktop and mobile browsers.