[SR-Users] TCP/TLS connection (id: 0) for WebSocket could not be found

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 15 16:48:19 CEST 2020


Hello,

what version of Kamailio do you use?

That message is printed when the connection is not found by id or by
destination address.

Cheers,
Daniel

On 15.04.20 07:11, Mack Hendricks wrote:
> Hey All,
>
>
>
> I get this message when trying to route request to a WebSocket client:
>
>
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: DEBUG:
> <core> [core/msg_translator.c:1762]: check_boundaries(): no multi-part
> body
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: DEBUG:
> <core> [core/msg_translator.c:429]: clen_builder(): content-length:
> 651 (651)
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]:
> WARNING: <core> [core/msg_translator.c:2786]: via_builder(): *TCP/TLS
> connection (id: 0) for WebSocket could not be found*
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: ERROR:
> <core> [core/msg_translator.c:2002]: build_req_buf_from_sip_req():
> could not create Via header
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: ERROR:
> tm [t_fwd.c:476]: prepare_new_uac(): could not build request
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: ERROR:
> tm [t_fwd.c:1738]: t_forward_nonack(): failure to add branches
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: DEBUG:
> tm [t_funcs.c:337]: t_relay_to(): t_forward_nonack returned error -2 (-2)
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: DEBUG:
> tm [t_funcs.c:355]: t_relay_to(): -2 error reply generation delayed
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: exec:
> *** cfgtrace:request_route=[RELAY] c=[/etc/kamailio/kamailio.cfg]
> l=1176 a=24 n=sl_reply_error
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: ERROR:
> sl [sl_funcs.c:362]: sl_reply_error(): stateless error reply used: No
> error (2/SL)
> Apr 15 04:59:37 dSIP060entNightly-0 /usr/sbin/kamailio[22071]: exec:
> *** cfgtrace:request_route=[RELAY] c=[/etc/kamailio/kamailio.cfg]
> l=1178 a=2 n=exit
>
>
>
> Here is what my location table looks like.  It should try to send the
> call to * sip:98.209.240.245:56291;transport=ws*
>
>
> *************************** 2. row ***************************
>            id: 124
>          ruid: uloc-5e9685e8-5650-92
>      username: 2000
>        domain: ws-test.com <http://ws-test.com>
>      *contact: sips:2000 at df7jal23ls0d.invalid
> <mailto:2000 at df7jal23ls0d.invalid>;rtcweb-breaker=no;transport=wss
>      received: sip:98.209.240.245:56291;transport=ws*
>          path: NULL
>       expires: 2020-04-15 05:03:17
>             q: -1.00
>        callid: 7ef0a550-b2b9-24c6-5c3b-8e0c667f5533
>          cseq: 50096
> last_modified: 2020-04-15 04:59:57
>         flags: 0
>        cflags: 524352
>    user_agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
>        socket: NULL
>       methods: NULL
>      instance: NULL
>        reg_id: 0
>     server_id: 0
> connection_id: -1
>     keepalive: 1
>     partition: 18
>
>
> *The Websocket list looks like this:*
>
>
> Server01:~# kamcmd ws.dump
> {
> connections: {
> *8: wss:98.209.240.245:56291 -> wss:134.122.27.49: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?*
> *
> *
> *
> *
> Thanks in advance
>
> -Mack
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200415/795ee6d5/attachment.html>


More information about the sr-users mailing list