IOS15 websocket error

310 views
Skip to first unread message

Alpt

unread,
Sep 18, 2021, 8:48:11 PMSep 18
to JsSIP
Hi All,
seems there are some problems with safari on IOS15 and jssip websocket.

on browser console i can see connection event:

JsSIP:Transport connect() +2ms
[Info] JsSIP:WebSocketInterface connect() +12ms (jssip-3.8.2.min.js, line 9)
[Info] JsSIP:WebSocketInterface connecting to WebSocket wss://xxxx:443 +0ms (jssip-3.8.2.min.js, line 9)
[Info] JsSIP:WebSocketInterface WebSocket wss://xxxxx:443 connected +419ms (jssip-3.8.2.min.js, line 9)

try to register:

JsSIP:Transport sending message:
REGISTER sip:xxxxxx SIP/2.0
[...]
User-Agent: JsSIP 3.8.2
Content-Length: 0

but suddenly browser close the connection

JsSIP:WebSocketInterface send() +11ms
[Error] WebSocket connection to 'wss://xxxx/' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 57 - Socket is not connected)
[Info] JsSIP:WebSocketInterface WebSocket wss://xxxx:443 closed +114ms (jssip-3.8.2.min.js, line 9)
[Info] JsSIP:WebSocketInterface WebSocket abrupt disconnection +0ms (jssip-3.8.2.min.js, line 9)

On ios 14.x all works fine.

Br
Alessandro
Reply all
Reply to author
Forward
0 new messages