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.mahar...@gmail.com <er.mahar...@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:
1. Webrtc client registers to kamailio instance-1
2. I am trying to make outbound call and it was initated from kamailio-2
3. kamailio-2 looks up into location table in DB and finds the user
4. 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-le...@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-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to