Andrey Volk 815bbf8cfa [Core] Stop partner uuid lookups from growing the session pool, with a unit-test (#3311)
switch_channel_get_partner_uuid_copy() read signal_bond and originate_signal_bond with dup set, so every call
copied the uuid into the session pool before copying it into the caller's buffer. The read path calls it for
each comfort-noise frame of a bridged leg, so the pool grew by 40 bytes per frame until hangup. The lookups now
return the channel's own value, which stays valid under profile_mutex while it is copied.

The copy used strncpy(), which leaves the buffer without a terminating NUL when the value is as long as the
buffer or longer. switch_copy_string() cuts the value to fit and always terminates it.

With RTCP passthru, every received RTCP packet looked the partner up with switch_channel_get_partner_uuid(), which
copies the uuid into the session pool, so the pool grew with each packet until hangup. The lookup now copies the
uuid into a stack buffer with switch_channel_get_partner_uuid_copy().
2026-11-26 15:50:36 +03:00
…
2015-05-28 12:47:19 -05:00
…
2015-12-15 17:02:49 +00:00
2014-12-26 17:22:20 +00:00
…
…
…
2023-02-17 15:24:03 -05:00

FreeSWITCH

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 unlock the telecommunications potential of any device. Combined with our hosted cloud platform, SignalWire, FreeSWITCH can interconnect with the outside world and scale to any size.

Visit https://signalwire.com or https://github.com/signalwire for more info.

Getting Started

FreeSWITCH is available on Github in source code format. You can checkout the development branch and build for many popular platforms including Linux, Windows, MacOSX and BSD. There is an issue tracker and pull request system available as part of the repo online.

See https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/ for more detailed instructions.

Additional Help

If you need assistance or have an interest in using a commercially supported build, you can contact coreteam@freeswitch.com to learn about professional services to support your project.

Voice-over-IP services - SIP / SMS - App Integrations

SignalWire is the primary sponsor of the FreeSWITCH project and was founded by the original developers of FreeSWITCH. SignalWire provides scalable services to enhance and scale your project such as SMS, SIP, Serverless Application hosting as well as programmable telecom. mod_signalwire which is distributed in this code base allows you to instantly pair with SignalWire and extend your FreeSWITCH.

Documentation

The main index for documentation is available at:

Release notes:

Install from packages

Step by step tutorials to install FreeSWITCH from packages:

Build from source

Example Dockerfiles to build FreeSWITCH and dependencies from source:

Step by step tutorials to build FreeSWITCH with provided dependency packages:

How to build Debian packages

Downloads

Contributions

GitHub pull requests are the recommended way to contribute to the FreeSWITCH source code:

Community

Slack is our chat system where the developers, the FreeSWITCH team, and the most active users are present. This is the place to get answers faster and chat with other users in real time. All you need to do is enter your email and verify it on the Slack signup page and you are ready to join in the discussion!

Slack Community:

Mailing list (ARCHIVED):

Thank you for using FreeSWITCH!

S
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 unlock the telecommunications potential of any device.
Readme BSD-3-Clause, ISC
248 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 60.3%
C++ 27.2%
JavaScript 4.3%
Assembly 1.7%
Makefile 1%
Other 4.9%