Why FreeSWITCH audio fails in BigBlueButton and who needs to fix it
This page covers diagnosing and fixing FreeSWITCH bind failures, container scheduler errors and external RTP IP settings on a self-hosted BigBlueButton server, usually after users join a meeting and cannot connect audio, or after a change breaks an audio bridge that worked before. FreeSWITCH is the audio bridge that carries microphone and listen-only audio for each meeting, and its failures often look like user-side problems: a blocked microphone prompt, a muted browser tab or a weak home connection. Those causes matter for some users, but when several people fail at once, the server is the first place to look. The fix is usually a server setting, a firewall rule or a host or container configuration, and it is seldom a code change, so the work falls to the operators who control the machine, its network path and its container runtime.
Ownership is the decision to make first. The team that runs the BigBlueButton host usually owns the server configuration, the operating system firewall and the container runtime, while the cloud or data center team may own security groups, NAT and upstream firewalls. A media problem can sit in either layer, so confirm who can change each one before the investigation starts. The install docs list the ports the server must reach: TCP 80 and 443 for web traffic, and UDP ports 16384 to 32768 for media. If that UDP range is blocked, or translated to the wrong public address anywhere along the path, FreeSWITCH can start and still leave audio dead for every user. Walk the UDP range through each layer as a checklist before you change anything in the application configuration.
Confirm every log message, file path and setting against the version you run. BigBlueButton 4.0.0 was released on October 14, 2026, the 3.0 branch still receives maintenance releases, and the install docs state that direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a 4.0 server is normally a clean installation. Record the version and the output of your own bbb-conf --check before you change anything, and keep a note of each setting you touch so you can reverse it. For the port and network requirements this section relies on, the next read is the BigBlueButton install documentation.
Which FreeSWITCH failure you have and where to start
Use this tab when FreeSWITCH fails to start, exits shortly after starting, or your logs show that it could not bind to an IPv4 address or to port 8021. The usual causes are a second process holding the port, a configured address that is no longer on the host, or an IPv6 setting the host does not use. This tab does not quote log strings. Match the wording in your own logs before you search for a fix, because message text varies by build and configuration.
- Who holds the port: Run
ss -tulpnand look for the listener on port 8021 and on the SIP ports. A second FreeSWITCH instance or an unrelated service on the same port is a common finding. - Whether the address exists: Compare the IPv4 address in the FreeSWITCH configuration with the output of
ip -4 addr. An address left over from a network change will fail to bind. - The first error: Read
systemctl status freeswitchand the journal from the top. Later errors often follow from the first one. - IPv6 listeners: If IPv6 is enabled on the host but not routed, confirm which address family the bridge tries first before you disable anything.
Do not change ports first, because a new port hides the conflict and can break components that expect the defaults. Check the port holder, the address on the interface and the first error line before you edit any file.
Use this tab when FreeSWITCH runs on the host but fails inside a container, or when your logs mention scheduling, thread priority or real-time settings that the bridge could not apply. Container runtimes limit CPU time and Linux capabilities, and the media process is affected by both. This tab does not quote log strings, so compare the messages in your own logs with the checks below. Treat the problem as a runtime question first, since the BigBlueButton configuration is often correct.
- Capabilities: Check whether the container was started with the permissions needed to set scheduling priority. Compare your runtime settings with the documentation for your container engine.
- CPU limits: Look at the CPU quota and throttling counters for the container. A quota that is too tight can stall audio threads even when average load looks low.
- Host load: Run
toporhtopon the host during a live test. Heavy load from other containers on the same host changes how the media process is scheduled. - Start-time messages: Capture the first messages after the container starts, when scheduler errors usually appear, and keep them with the container definition for comparison.
Do not raise thread counts or media settings until the container permissions and CPU limits are known to be adequate. Check the capabilities, the CPU quota and the host load during a live test, then record the scheduler messages before you escalate.
Use this tab when the server starts cleanly, users join the meeting, but they hear no audio, hear one direction only, or hear audio from some locations and not from others. The bridge advertises an IP address for media in its signaling. If that address is not the public address clients can reach, media is sent to the wrong place. Confirm the setting in your own configuration before you change it, because key names and file locations depend on your release.
- Advertised address: Compare the external IP in the FreeSWITCH configuration with the public address that clients see. Check the public address from a network outside your own.
- Address changes: Find out whether the public address changed after a provider maintenance event, a load balancer change or a DHCP renewal on an interface that carries it.
- UDP path: Confirm that UDP ports 16384 to 32768 reach the server from the internet, and that the cloud security group or host firewall allows the same range.
- NAT forwarding: If the server sits behind NAT, confirm the NAT forwards the full UDP range along with the TCP ports, and that the mapping is one for one.
Rule out a client network problem by testing from a second network before you edit the external address. Check the advertised address, the public address from outside your network and the UDP path, then change one setting at a time and retest.
Use this tab when the bridge works for most people but some users cannot hear or be heard. Because the server works for others, the cause usually sits in the user's network, browser or the path between the user and the server. Find the pattern before you change server settings, because a server-wide change can break users who already connect without trouble. This tab does not quote log strings, so match the symptoms to your own logs.
- Pattern of failures: Group affected users by network, browser, operating system, country and time of day. A shared network or internet provider points away from the server.
- Restrictive networks: Users behind strict corporate or school firewalls may need a TURN server. Confirm whether one is configured and reachable on the ports you expect.
- Address family: Check whether affected users reach the server over IPv6 while the bridge advertises IPv4, or the reverse.
- Browser permissions: Confirm microphone permission and the selected audio device, because a denied permission looks like a server fault.
Test from one failing network and one working network. If the failure reproduces only from the failing network, examine that path first and leave the server configuration unchanged until the difference is understood. Group the affected users, check TURN and browser permissions, and compare the two test runs before you change anything on the server.
Audio configuration options and when each fits
This table compares the four audio configuration paths operators can take when FreeSWITCH audio fails. Read each row against your network: the simplest fix is correcting the server's own IP and firewall settings, and each later step adds network or operator work. Start with the least effort option that fits your topology, and move to TURN or LiveKit only when the first two do not resolve the failures.
| Option | Fits when | What it changes and requires | Operator effort |
|---|---|---|---|
| Keep FreeSWITCH on the BigBlueButton server | Single server with users on open networks, and the failure is a bind or IP setting error | Corrects the server's IP settings and firewall rules so UDP 16384 to 32768 is reachable from clients | Lowest. Mostly verifying addresses, firewall rules and service status after each change |
| Media address behind NAT with an external IP | Server has a private address and clients reach it through a NAT gateway or public cloud address | Sets the public address FreeSWITCH advertises for media. Needs UDP 16384 to 32768 forwarded to the server | Moderate. Keep the advertised address current if the public address changes, and recheck after network changes |
| TURN server for restrictive firewalls | Some users' firewalls block direct UDP to the server, such as strict corporate or school networks | Adds a relay for users whose firewalls block direct media. Needs a reachable TURN host and confirmed transports for those users | Moderate to high. A separate service to run, secure, monitor and keep credentials in step |
| Move audio to LiveKit | Audio failures persist after network fixes and you can plan a change to the audio media path | Moves audio off FreeSWITCH to LiveKit. Confirm the supported release, ports and client requirements first | Highest. A change to the audio stack, so it needs its own test plan and rollback |
Where audio breaks between the browser and FreeSWITCH
The path starts in the user's browser, which sends audio through the firewall in front of the BigBlueButton host, or through a TURN server when the user sits behind a restrictive network. Both routes reach the host, where FreeSWITCH runs the audio bridge. Four points fail in practice: the UDP media range blocked at the firewall, a wrong external IP setting that advertises an address users cannot reach, a bind failure on IPv4 or port 8021, and scheduler errors when the host runs its services in containers. Check the four points in that order before changing other settings.
Audio path from the browser to FreeSWITCH, with the four common failure points marked.
Fixing FreeSWITCH audio on a BigBlueButton server, step by step
This sequence takes an audio failure on a BigBlueButton server from diagnosis to a verified fix, checking the host, the network path and the container layer in order. Each step ends with a check, and the work closes with test calls from inside and outside your network. Copy every file before you change it so you can roll back.
Capture the current state before changing anything
Run
bbb-conf --checkas root and save its output alongside the FreeSWITCH log and the BigBlueButton logs covering a failed join. Note the exact error text, the time, and whether audio fails for every user or only for users on certain networks. Before editing any file in this sequence, copy it to a dated backup directory. Done when you have a saved bundle of check output, logs and configuration copies, and you can state the symptom in one sentence.Confirm listening addresses and port 8021
Check which addresses FreeSWITCH binds to and whether another process already holds port 8021, using a standard socket listing tool such as
ss. A bind failure on IPv4 usually appears in the FreeSWITCH log at startup, so compare that timestamp with the listing. Stop any duplicate process you did not start, and change configuration only when the other listener is expected. Passing result: FreeSWITCH is the only listener on the expected address and port, and the log shows a clean start without bind errors.Verify the UDP media range and TURN reachability
From a machine outside your network, test that TCP ports 80 and 443 answer and that UDP ports 16384 to 32768 are open end to end, since the install documentation requires that range. Confirm that your TURN server accepts connections from outside, because it relays media for users behind restrictive firewalls. Ask your network team to confirm that firewall and security group rules match these ports, and record which rules you tested. Passing result: the media range and TURN respond from outside.
Correct the external IP setting for NAT
If the server sits behind NAT, the media settings must advertise the public address that outside clients actually reach. Compare the external address entries in the FreeSWITCH SIP and RTP profile files with the public address your firewall maps to the server. Save a dated backup of each file, then edit only the external IP entries. Reload or restart the service only after the edit is saved. Passing result: the advertised address matches the address confirmed in the previous step, and a diff against the backup shows no other changes.
Fix container scheduler settings if audio runs in a container
Skip this step if FreeSWITCH runs directly on the host. If it runs in a container, inspect the network mode, the published ports and the restart policy, because a container that cannot bind the media range fails at startup even when the host is healthy. Confirm that the scheduler gives the audio container host networking or publishes the full UDP range, and that CPU or memory limits leave enough capacity for the server. Passing result: the container inspection shows the expected network mode, ports and restart policy, and the container stays running after a restart.
Restart the audio service and recheck the server
Restart the audio service with the commands documented for your installation, during a window when dropping active audio is acceptable. Then rerun
bbb-conf --checkand read the FreeSWITCH log for bind errors from the new startup. If the check still reports a failure, return to the step that matches its message and compare against your saved backups before making further edits. Passing result: the check reports no failures and the log shows a clean start.Verify audio with test calls from inside and outside
Join a test meeting from a machine inside your network and from a machine outside it, using the browser and audio path your users choose. Confirm that each side hears the other, that audio stays connected through a full test session, and that the browser reports no ICE errors. Check the FreeSWITCH log during both calls and record the results with your list of changed files. Passing result: both test calls carry audio in both directions, and the logs show no new errors during the calls.
Security and operational risks when changing the audio bridge
Each change made to fix FreeSWITCH audio touches a part of the server that is exposed, shared or hard to undo. The six risks below each have a control you can put in place before the first edit. Keep changes small, record them, and check the result from outside the server.
Exposed FreeSWITCH control interface
FreeSWITCH exposes a control interface on port 8021, and a bind change made while troubleshooting can publish it to every network that reaches the server. Anyone who can reach that port may be able to query or control the audio bridge, so treat it as an internal service. Bind it to the loopback address or a management address only, then confirm from a host outside the management network that port 8021 does not answer. Repeat the check after every change to bind settings or firewall rules.
Media port range too wide
BigBlueButton needs UDP ports 16384 to 32768 reachable for media, and that range is the documented requirement. Opening it to the whole internet or to every subnet widens exposure beyond what clients need. Scope the rule to the public interface and the client networks that actually connect, and confirm the range against the install documentation for your release before you narrow or close any ports. Record which networks are allowed so the next reviewer does not have to guess.
Install docsFirewall changes without approval
A firewall rule added during an audio incident often outlives the incident and is never reviewed. Each change to host firewalls, cloud security groups or upstream devices should carry an approved change record that gives the reason, source networks, ports and a review or removal date. Require an approved change record before any rule is applied, and remove temporary rules once the audio fault is closed. Keep the record next to the server runbook so operators can match live rules to approvals.
Losing the working configuration
Editing FreeSWITCH and BigBlueButton files in place during an outage leaves no known-good state to return to. Before the first edit, copy every file you will touch, including the external RTP IP settings and SIP profile files, to a dated rollback location outside the live path. Keep a rollback copy of every file you change, and write down the restore command now so it is ready under pressure. If you have a non-production server, test the restore there first.
Secrets in configuration and logs
The BigBlueButton shared secret signs every API call, and it can appear in configuration files, copied terminal output, support bundles and log lines. A leaked secret lets a holder make API calls as your server. Search configuration and logs for the shared secret and other credentials before you send anything to a vendor or partner, then redact or rotate any match. Never place the secret in a web page, and restrict read access to configuration files on the server.
BigBlueButton API docsDrift from the documented setup
A manual fix on one server can leave it different from the documentation, from other servers in a pool and from any rebuild script. The next upgrade or reinstall may then reproduce the fault or silently drop the fix. Store the FreeSWITCH and BigBlueButton configuration you change under version control, and commit each manual fix with a message that names the symptom and the reason. Compare live files with the repository after each change so the documented setup matches the server.
Questions operators ask before fixing audio or hiring help
How long does a typical FreeSWITCH audio fix take?
No single duration fits every server, and the timeline depends mainly on how quickly the team can reach the host and test the fault. Diagnosis is the first driver. A bind failure on IPv4 or port 8021 usually shows in the logs, while an external RTP IP mismatch takes longer to confirm because it needs a test call from outside your network. The second driver is change control. Firewall rules, NAT mappings and DNS edits go through your review and change windows, and that waiting time sits outside the technical work. The third is where the fault sits. A server-side problem, such as a container scheduler error, is fixed on the host. A user-side problem, such as a network that blocks UDP, may need TURN or network changes owned by someone else. Ask for any estimate to split diagnosis, changes and verification, with each dependency named.
What do we need to give a partner for audio fixes?
A partner needs a controlled path into the server, a window to change the network, and clear evidence of the failure. Typical inputs include:
- SSH access under a named account, with the sudo rights needed on the BigBlueButton host
- A change window for firewall edits, since BigBlueButton needs TCP ports 80 and 443 and UDP ports 16384 to 32768 reachable
- Logs from FreeSWITCH, bbb-web and nginx, collected around a failed join with timestamps
- The output of
bbb-conf --checkand the current external IP settings - A test account and a test meeting on the same server, so the fix can be verified with a real audio join
- A named contact who approves changes and can confirm what users saw
Agree in writing who holds the access and how it ends, because logs and configuration files can contain meeting data.
Can our in-house team fix BigBlueButton audio without outside help?
Often yes, if someone on the team is comfortable with Linux services, networking and reading BigBlueButton logs. Common FreeSWITCH faults, such as bind errors and external IP settings, can be reproduced on a test server before any live change. The harder cases tend to involve containers, NAT on cloud instances and firewalls owned by another team, because the work then spans several groups. Ask three questions before deciding. Does someone own the host and can test changes in a non-production environment first? Can your team reproduce the fault outside a live class? Who approves firewall and NAT changes? If the answer to any of these is unclear, a partner can add a second pair of hands or take the work under a fixed scope. Outside help is usually a capacity and access decision, so settle those points before comparing options.
What does a fixed-scope audio engagement cover in writing before work starts?
A fixed-scope engagement sets out the systems, the problems and the deliverables in writing before any change is made. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so that document is where you check the details. Ask that it names:
- The servers and environments in scope, and any that are excluded
- The faults to diagnose, such as bind failures, scheduler errors or external RTP IP settings
- Access arrangements, change windows and who approves firewall or NAT edits
- The fixes to be delivered, the verification steps and the test calls used to prove audio works
- The documentation handed over, and what happens to logs and credentials afterward
- What is out of scope, including any later move of audio to a different media stack
Clear written scope is the main protection against surprises in both cost and timing.
What does a BigBlueButton audio fix quote depend on?
A quote follows from the written scope, so it depends on what is actually being changed and verified. The main drivers are the number of servers, whether the fault sits on the server or the user side, how many environments need testing, and how much access and change coordination the work requires. Fault location matters a great deal: a misconfigured external IP on one host is a different job from a fault that needs TURN, firewall work across several sites or a cluster behind Scalelite. Cost components include diagnosis, changes, verification and handover notes. Ask for a quote that lists each component separately, states what is one-time and what recurs, such as retainer support or retesting, and names its assumptions, including access and change windows. DeployOpen does not publish a price list.
How do I tell a server audio fault from a user network fault?
Look at how widely the failure appears. If most users fail to join audio, the problem is likely on the server, such as a bind failure on IPv4 or port 8021, or an external RTP IP that does not match the public address. If only some users fail, check their networks first, since restrictive firewalls that block UDP ports 16384 to 32768 often cause ICE failures, and a TURN server can help those users. Run bbb-conf --check on the server and read the FreeSWITCH log around a failed join. Then test from outside your network using a connection you control. The result shows who needs to act and which change window to request, which shortens diagnosis.
When moving audio to LiveKit is worth considering
Moving audio off the FreeSWITCH bridge is worth evaluating when the fault is architectural, not when one setting is wrong. Treat it as a candidate only after three signals hold. First, audio faults keep returning after you have checked the FreeSWITCH bind settings, the scheduler errors and the external RTP IP settings covered in this guide, and the firewall rules that carry media. Second, the media architecture you need no longer matches what your FreeSWITCH setup can provide for your sessions. Third, you already have a planned BigBlueButton version change that will touch the audio stack anyway. If none of these hold, a configuration fix is usually the lower-risk path. Keep a dated incident log for each fault, with the server, the user network, and the output of bbb-conf --check, so the decision rests on evidence rather than memory.
LiveKit would add a media component you must operate. Your team would own its deployment, certificates, upgrades, capacity limits and logs alongside the existing BigBlueButton servers, so the on-call runbook, the Prometheus and Grafana monitoring and the alert thresholds all need review before go-live. Firewall rules change as well. The media ports and the paths users take through TURN may differ from the UDP range and TURN setup your current servers assume, so each network rule needs a written owner and a test. Plan verification across the networks your users actually use, including campus, home, mobile and restrictive corporate networks. A fault that appears only on one network type will not show up in a single lab test, and that is where migrations usually lose time.
Before you decide, ask the BigBlueButton project three questions in writing: whether it supports moving audio to LiveKit for the version you run or plan to run, what the current release status of that option is, and which LiveKit versions it tests against. Record the release tags and documentation versions you checked, because both move quickly. BigBlueButton 4.0 installs on Ubuntu 24.04 64-bit, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a clean server installation is the recommended route for any version change that also moves audio. Write the migration scope, the test plan and the rollback path before work starts. Treat the supported combination as something the project must confirm, not something this page or a vendor claim establishes.
Limits to confirm in your environment before you change audio
These six items decide whether an audio fix will hold. Each one usually has a different owner, so confirm them before you edit FreeSWITCH or any address setting, and record the answers next to your change log.
BigBlueButton version and install state
Confirm that the server runs BigBlueButton 4.0 on Ubuntu 24.04 64-bit and was installed fresh. The 4.0.0 release came out on October 14, 2026, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a server that was upgraded in place falls outside the documented path. Check the installed version on the server itself, then compare it with the install docs for your OS and release. If the answer is unclear, treat it as a rebuild question before you touch any audio setting.
Install docsContainer layout on the host
Confirm whether any audio component runs inside a container, including FreeSWITCH, or whether all services run directly on the host. Container networking changes which addresses and ports the media bridge sees, so an address that looks correct on the host can be wrong inside the container. The install docs require Docker for sandboxed LibreOffice conversion, which does not tell you how the audio services are packaged, so check that separately. If your hosting provider adds its own container platform, ask for the network mode and published ports, and record the runtime version before you change any audio setting.
NAT and public address layout
Map how the server's private interface, public address and any NAT mapping relate to each other. FreeSWITCH advertises addresses that clients use to send media back, so a wrong value can leave users joined to the room without working audio. Ask your network team for the public address clients use to reach this server, whether the mapping is one-to-one, and whether the public hostname resolves to that same address. If your network hands out IPv6 addresses to users, check that path too. Your network team owns the NAT rules, so they should sign off on the mapping before the change.
Firewall and security group rules
Confirm that TCP ports 80 and 443 and UDP 16384 to 32768 are open from user networks to the server. Check the host firewall and the cloud security group or network ACL separately, since either one can drop media traffic even when the other allows it. Ask your hosting provider whether a load balancer or edge appliance sits in front of the server and whether it forwards UDP as well as TCP. Also confirm that the public hostname has a valid SSL setup, because the install requires one. Log each rule with its owner so the change can be rolled back cleanly.
TURN for restricted networks
Decide whether any user group sits behind a firewall that blocks the media path, such as some campus, corporate or public networks. The install docs recommend a TURN server for users behind restrictive firewalls, so ask your network team which groups fall into that category and whether outbound UDP is restricted for them. Confirm whether you already run a TURN service, which hostname and ports it uses, and whether it sits in your own infrastructure. Test a restricted test network before and after the change, because a TURN relay can make audio work for those users while a server fault still affects everyone else.
Server resource requirements
Compare the server with the documented minimums: at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 500 GB of disk for recordings (50 GB without recording) and 250 Mbit/s symmetrical bandwidth. Read the actual values from your hosting provider's instance specification and from the host itself. Ask the provider whether the bandwidth is dedicated, since a shared uplink may not deliver the symmetrical rate. Audio failures that appear only when many participants join can point to capacity, so note when they occur before you change configuration.
Install docsHow DeployOpen diagnoses and fixes BigBlueButton audio
DeployOpen works on FreeSWITCH audio problems in BigBlueButton inside your own infrastructure, starting from the logs and the state of the server. The work covers the audio bridge settings, the container and network conditions around it, and the decision about whether audio should stay on FreeSWITCH or move to LiveKit. Each engagement is fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.
How we scope
- Written scope lists the affected server, the symptoms, and the FreeSWITCH settings and logs we review.
- Scope names whether the fix stays on FreeSWITCH or includes a planned move of audio to LiveKit.
- Engagements are fixed-scope, and ongoing support after the fix is available as a retainer.
How we build
- Confirm bind and port conflicts on IPv4 and port 8021 before changing any configuration.
- Check the container scheduler and external RTP IP settings against the host network and firewall rules.
- Apply changes in a test environment first, recording each setting change so it can be reverted.
How we hand over
- Documentation records the root cause, each changed setting, and the
bbb-confand log checks used to confirm the fix. - Operators get a runbook covering the failure signs to watch and the steps to take when audio fails again.
- Your team receives a walkthrough of the changes so it can repeat the checks without us.
How we support
- Retainers can include ongoing support, upgrades and continuous testing, agreed in writing.
- Re-test audio after each BigBlueButton point release or FreeSWITCH setting change on the server.
- Ask us to quote the LiveKit move as its own scope if the review shows audio should leave FreeSWITCH.

