Re: Webrtc connection failure on multiple kamailio server setup

Ben Kaufman via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <DM4PR11MB5407653C2D9E8B2C81D6EE3DA42CA@DM4PR11MB5407.namprd11.prod.outlook.com>
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 <[email protected]>
Sent: Thursday, August 7, 2025 9:36 AM
To: Kamailio (SER) - Users Mailing List <[email protected]>
Cc: [email protected] <[email protected]>; Yuriy G <[email protected]>
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 <[email protected]>
Sent: Thursday, August 7, 2025 9:23 AM
To: Kamailio (SER) - Users Mailing List <[email protected]>
Cc: [email protected] <[email protected]>; Yuriy G <[email protected]>
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 <[email protected]<mailto:[email protected]>> 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 -- [email protected]<mailto:[email protected]>
To unsubscribe send an email to [email protected]<mailto:[email protected]>
Important: keep the mailing list in the recipients, do not reply only to the sender!

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.