On Mar 26, 2025, at 8:41 AM, fabien via sr-users sr-users@lists.kamailio.org wrote:
Thanks. Actually, i want to redirect the call from kamailio via websocket to another server using udp.
Oh, so you're saying it doesn't work when the call comes _in_ via WebSocket, but works fine when it does via UDP, and in both cases, it is meant to go out as UDP.
1) Do you have TCP or TLS listener (listen= statement)? Most likely TLS in the real world, since you'll use wss://.
2) Do you have this type of xhttp event handler?
https://kamailio.org/docs/modules/5.8.x/modules/websocket.html#idm25
3) Do you have any logging in that event handler (xlog())? And if not, perhaps you should add some and see if the incoming WebSocket connection actually occurs as expected, and up from there?
-- Alex