Hello,

indeed Kamailio takes „ws“ as normal web socket, and “wss” as secure 
websockets. Compare e.g. to the pseudo-variables docs.

Maybe your Kamailio should insert the location entries with “;transport=wss”?

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: Karsten Horsmann <[email protected]>
Sent: Friday, January 27, 2023 6:45 PM
To: Kamailio (SER) - Users Mailing List <[email protected]>
Subject: [SR-Users] Re: transport=ws causing kamailio to use wrong listen socket

Hi Nathan,


I use secure websocket and it works with out an issue. Can you provide a bit 
more Information? Kamailio version an a bit of your config would help the list 
to figure out why it's not working for you.

<[email protected]<mailto:[email protected]>> schrieb am 
Fr., 27. Jan. 2023, 16:08:
Hi all,

We're hitting an issue while integrating secure websockets in our existing SIP 
infrastructure using Kamailio.

When the registration comes in, it causes an entry in our AOR table, with 
";transport=ws" appended.
When we want to send a message to this client (using t_relay), kamailio seems 
to take 'ws' as being *unsecure* websockets. In turn, this makes Kamailio try 
to send out the message using a TCP listener - while it should have picked the 
TLS listener.

There are some remarks in the sources about ws vs. wss, so i'm struggling to 
figure out where things go wrong. I've also created github issue #3340 with 
more details.

Any help would be appreciated. If this turns out to be a Kamailio bug, i'm 
happy to provide a patch.
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
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!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to