webrtc-demo with websockets

207 views
Skip to first unread message

aldo zischler

unread,
Jul 19, 2022, 2:29:19 PM7/19/22
to baresip
I updated baresip, re and webrtc-demo to the latest versions, to solve the problem with SDP comming up without cadidates information. But another problem  appears : the communication between browser and server is through websockets. I´m using libwebsockets to implement this, but when libre fuctions are called to handle messages  the following record appears: "main: thread check: called from a NON-RE thread without thread_enter()". Is there any way to deal with wss connections with webrtc-demo?

sebastia...@googlemail.com

unread,
Jul 19, 2022, 4:02:32 PM7/19/22
to baresip
You have to wrap the libre functions like so (because libwebsockets is running on another thread and you have to "enter" the libre main thread first):

re_thread_enter();    
err = ua_connect();
re_thread_leave();
Reply all
Reply to author
Forward
0 new messages