Hello,
I am using latest stable kamailio version 5.2 . I am getting following error while calling from webrtc client to sip client.
Error:
Jan  9 07:25:05 client1 /usr/local/sbin/kamailio[15318]: INFO: <script>: ACK rsponse: WebRTC --> WebRTC
Jan  9 07:25:05 client1 /usr/local/sbin/kamailio[15318]: WARNING: <core> [core/msg_translator.c:2812]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found
Jan  9 07:25:05 client1 /usr/local/sbin/kamailio[15318]: ERROR: <core> [core/msg_translator.c:2003]: build_req_buf_from_sip_req(): could not create Via header
Jan  9 07:25:05 client1 /usr/local/sbin/kamailio[15318]: ERROR: <core> [core/forward.c:549]: forward_request(): building failed
Jan  9 07:25:05 client1 /usr/local/sbin/kamailio[15318]: ERROR: sl [sl_funcs.c:372]: sl_reply_error(): stateless error reply used: I'm terribly sorry, server error occurred (1/SL)

Here it is saying that websocket connection is not found but when i check using netstat connection is in established state.

netstat -anp | grep kamailio
result :
tcp        0      0 XX.XX.XX.XX:3080     0.0.0.0:*               LISTEN      15324/kamailio      
tcp        0      0 XX.XX.XX.XX:3080     0 XX.XX.XX.XX:53632   ESTABLISHED 15298/kamailio  
53632 is same port as port mentioned in received field of location table.
So what can be the issue ? please provide your feedback on same.

--
Thanks and Regards,
Ravindrakumar Bhatt
Jr. Software Developer 
Ecosmob Technologies Ltd
Ahmedabad
Mo:+918460692402