Re: TCP/TLS connection (id: 0) for WebSocket could not be found

Sergey Safarov via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CAHtxdDf_314gvgzBMvPv1L4Gj=MTw9UMrYKn-rqryR2aLMKa7A@mail.gmail.com>
You can also export TLS encryption keys and decrypt the WebSocket
connection.
This allows the math IP address and port between PCAP and Kamailio output.
Now it completely does not match, public/private IP
You can start Kamailio like
SSLKEYLOGFILE=tls.keys kamailio

And then inject TLS keys into the pcap
https://my.f5.com/manage/s/article/K42350941

After that, you can check call signaling via the WebSocket connection.


On Thu, Oct 9, 2025 at 12:31 PM Yuriy G via sr-users <
[email protected]> wrote:

> Take a look which socket it chose to send ACK to. Socket not found message
> correlates with wrongly configured destination URI or Request URI.
>
> On Thu, Oct 9, 2025, 08:49 Сергей Приймак via sr-users <
> [email protected]> wrote:
>
>> Hi All,
>> I'm getting this message when trying to route request to a WebSocket
>> client:
>>
>> #033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core>
>> [core/msg_translator.c:2904]: via_builder(): TCP/TLS connection (id: 0) for
>> WebSocket could not be found
>> #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core>
>> [core/msg_translator.c:2044]: build_req_buf_from_sip_req(): could not
>> create Via header
>> #033[0m 21(28) ERROR: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| <core>
>> [core/forward.c:588]: forward_request(): building failed
>> #033[0m 21(28) WARNING: ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|
>> <script>: 5c4ab3c9-d755-4a7a-aa79-bda94b6e6484|message [ACK] returned code
>> [-2]
>> #033[36mkamailio_1  |#033[0m 21(28) ERROR:
>> ACK|5c4ab3c9-d755-4a7a-aa79-bda94b6e6484| sl [sl_funcs.c:415]:
>> sl_reply_error(): stateless error reply used: I'm terribly sorry, server
>> error occurred
>>
>> The Websocket list looks like this:
>>
>> Server01:~# kamcmd ws.dump
>> {
>> 	connections: {
>> 		8: wss:245.245.245.245:56291 -> wss:123.123.123.123:4443 (state: OPEN,  last used 47s ago, sub-protocol: sip)
>> 	}
>> 	info: {
>> 		wscounter: 1
>> 		truncated: no
>> 	}
>> }
>>
>>
>> *I’m not sure what I’m doing wrong.  Any ideas?*
>>
>>
>>
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions --
>> [email protected]
>> To unsubscribe send an email to [email protected]
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions --
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
>

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
Screenshot 2025-10-08 171248.jpg (image/jpeg, 207.7 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.