Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

webrtc - Facing issue with the WebSocket handshake in reSIProcate library

I was trying to use reSIProcate as a SIP client on an iOS device. I m able to compile it for iOS arch and make SIP registrations and call using TLS, but I wanted to use SIP over WebSockets for registration so, I can use webRTC.

However, while integrating the same I am facing an issue with the WebSocket handshake. I wanted to check whether the SIP over WebSockets is supported for reSIProcate clients or is it just limited to the repro server?

Currently, I m getting this error in logs :

STACK | 20210127-190252.428 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ssl/TlsConnection.cxx:483 | SSL bytesRead=615
ERR | 20210127-190252.428 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ConnectionBase.cxx:645 | demo--> connection base [ V4 10.20.30.40:5063 WSS targetDomain=org.demo.com flowKey=25 transportKey=1 ] | 0x0 | 0x0
ERR | 20210127-190252.429 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ConnectionBase.cxx:796 | No SecWebSocketKey header
ERR | 20210127-190252.429 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ConnectionBase.cxx:712 | Failed to parse WebSocket initialization request
DEBUG | 20210127-190252.429 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/Connection.cxx:433 | Closing connection bytesRead=-1
DEBUG | 20210127-190252.429 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ConnectionManager.cxx:217 | ConnectionManager::removeConnection()
DEBUG | 20210127-190252.429 |  | RESIP:TRANSPORT | 0x700007414000 | /Users/demo/demo-resip/resiprocate/resip/stack/ConnectionBase.cxx:115 | ConnectionBase::~ConnectionBase 0x7fc93f611d10
INFO | 20210127-190252.429 |  | RESIP:TRANSACTION | 0x700007391000 | /Users/demo/demo-resip/resiprocate/resip/stack/TuSelector.cxx:102 | Sending ConnectionTerminated [ V4 10.20.30.40:5063 WSS targetDomain=org.demo.com flowKey=25 transportKey=1 ] to TUs
DEBUG | 20210127-190252.466 |  | RESIP:DUM | 0x70000751a000 | /Users/demo/demo-resip/resiprocate/resip/dum/DialogUsageManager.cxx:1477 | connection terminated message
question from:https://stackoverflow.com/questions/65931833/facing-issue-with-the-websocket-handshake-in-resiprocate-library

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...