If I understand issue correctly: You trying to call an endpoint from kamailio2 when it is registered on kamailio1. You have to send call from kamailio1, where it was registered and created socket connection to the server
On Thu, Aug 7, 2025, 14:57 Ben Kaufman via sr-users < sr-users@lists.kamailio.org> wrote:
Look at storing path information with your location data. This can be thought of like record-routing for registration. Proxies that handle the REGISTER request are recorded as path data, and then when routing the request the path can be followed ensuring that the same proxies are traversed.
Regards,
Kaufman
*From:* Maharaja Azhagiah via sr-users sr-users@lists.kamailio.org *Sent:* Wednesday, August 6, 2025 5:38 PM *To:* sr-users@lists.kamailio.org sr-users@lists.kamailio.org *Cc:* er.maharaja@gmail.com er.maharaja@gmail.com *Subject:* [SR-Users] Webrtc connection failure on multiple kamailio server setup
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi all,
I am running 2 kamailio instances in kubernetes (daemonsets). kamailio act as webrtc server. all my webrtc clients are registered into kamailio. registration stored in location table (usrloc).
Issue:
- Webrtc client registers to kamailio instance-1
- I am trying to make outbound call and it was initated from kamailio-2
- kamailio-2 looks up into location table in DB and finds the user
- However, when it tries to send the call over websocket's tcp, it fails
with the following message
4(197) WARNING: {1 102703821 INVITE 0396e8d0-edae-123e-738c-325f60cc5a45} <core> [core/msg_translator.c:3036]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found
Logically this is correct as the instance doesn't aware of the connection (kamcmd ws.dump does show the connection on kamailio-2 but it is seen in kamailio-1)
I need help to share this connection details between the instances so that any kamailio instance can make outbound call regardless of where it was registered.
Thank you for your help in advance.
Maharaja __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!