mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-06 02:55:27 +00:00
Travis Cross
b5294c53d6
Fix crash on transport=tls with non-TLS profile
We use the transport of the Contact header of the remote UAC to decide which of our own Contact addresses we should use when replying to a SUBSCRIBE or sending a presence NOTIFY. If TLS is not enabled on a Sofia profile, then the TLS Contacts for that profile are NULL. Unfortunately we were using these NULL values uncritically when the remote UAC sent us a Contact header with a TLS transport and our own Sofia profile did not have TLS enabled. With this commit we fall back to our TCP Contact address when the remote Contact is TLS and our Sofia profile does not have TLS enabled.
Description
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unl
Multiple Licenses
270 MiB
Languages
C
64.4%
C++
21.8%
JavaScript
4.7%
Assembly
2%
Makefile
1%
Other
5.4%