asterisk / asterisk

The official Asterisk Project repository.
https://www.asterisk.org
Other
1.97k stars 924 forks source link

[bug]: SNI isn't being set on websocket client connections #713

Closed gtjoseph closed 2 weeks ago

gtjoseph commented 3 weeks ago

Severity

Minor

Versions

all

Components/Modules

tcptls.c,iostream.c

Operating Environment

all

Frequency of Occurrence

Constant

Issue Description

When creating secure websocket client connections (wss), the destination hostname isn't being set in the TLS SNI extension. This causes TLS negotiation failures when the remote server hosts multiple virtual servers and needs SNI to distinguish between them.

Relevant log output

No response

Asterisk Issue Guidelines