Well, it does look like you’re echoing the binary data back correctly but you should NEVER echo back the TEXT data. That’s why you’re getting WARNING[927540]: chan_websocket.c:632 process_text_message: WebSocket/ace_media_ws/0x746ac8004b10: WebSocket MEDIA_START connection_id:ace_media_ws channel:WebSocket/ace_media_ws/0x746ac8004b10 format:opus optimal_frame_size:0 ptime:20 command unknown
If you’re getting the “corrupted stream” errors then the data you’re sending out to your app is invalid. So now the question remains… Where exactly is the data you’re sending out coming from and in what format is it in originally? While the call is up, do a core show channel on both the incoming channel and the outgoing websocket channel and paste the result. Also you never answered my question about changes to codec.conf? Did you make any?