You can also use the sipcapture module with sngrep:

https://voipembedded.wordpress.com/2021/03/22/troubleshooting-kamailio-encrypted-sip-traffic/

Regards,
Kaufman


From: Ben Kaufman <bkaufman@bcmone.com>
Sent: Thursday, August 7, 2025 9:36 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: er.maharaja@gmail.com <er.maharaja@gmail.com>; Yuriy G <ovoshlook@gmail.com>
Subject: Re: [SR-Users] Re: Webrtc connection failure on multiple kamailio server setup

As stated, use path to record the server that is handling the connection and route it from there.

  1. User foo@domain sends REGISTER to server-a.
  2. Server A saves register in a way that is accessible to both server and server B.  Included in this is the path info. The record looks roughly like this (paraphrasing, so it might not be completely accurate):
    AoR: foo@domain
    Contact: foo@hostname;transport=wss
    Path: sip:server-a:5060
  3. INVITE arrives on server-b for foo@domain. server-b checks the location and relays the INVITE with an RURI of foo@domain;transport=wss and sets the destination URI to sip:server-a:5060. Liekly you'll have server-b also insert itself via Record-Route as well.
  4. server-a receives the request and relays it to the RURI

Regards,
Kaufman

From: Yuriy G via sr-users <sr-users@lists.kamailio.org>
Sent: Thursday, August 7, 2025 9:23 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: er.maharaja@gmail.com <er.maharaja@gmail.com>; Yuriy G <ovoshlook@gmail.com>
Subject: [SR-Users] Re: 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.


No. WS is:
- TCP based
- TLS encrypted

By default you won't be able to migrate TCP sockets between different machines.


On Thu, Aug 7, 2025, 16:19 Maharaja Azhagiah via sr-users <sr-users@lists.kamailio.org> wrote:
Hi Yuriy,

I understand if call goes out from kamailio1 where socket connection exists will work. But I am looking for a load balanced or high available solution where any of the instances could able to send the call out. Is it a possible scenario ?
__________________________________________________________
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!