Hi all,
I’m experiencing an issue when broadcasting alarm sounds over RTP multicast from Asterisk 20.2.1 to IP speakers.
Problem description:
-
Alarm sounds are usually single-tone or constant dual-tone signals.
-
When played at high volume, the tone intermittently drops or “pumps” – amplitude momentarily dips and then recovers.
-
Speech announcements or more complex audio do not exhibit this behavior.
-
Playing the same sound directly on my PC (ALSA/desktop player) works fine – no distortion.
Files tested:
-
GSM source files (original alarm tones) → decoded and re-encoded to G.711 μ-law for RTP
-
16-bit PCM WAV at 8 kHz mono → Asterisk encodes to μ-law RTP
-
SoX generated tones:
-
Single-tone 1000 Hz high-volume
-
Dual-tone 900+1300 Hz
-
Sweep tone 700–1200 Hz
-
Observed:
-
GSM source tones also exhibit distortion when broadcast
-
16-bit PCM WAV tones still produce noticeable “pumping” at high volume
-
Wireshark RTP logs show no packet loss or jitter significant enough to explain this
Things I have considered / tested:
-
File format compatibility – all files converted to 16-bit PCM 8kHz mono WAV or μ-law WAV
-
Re-encoding / bypassing GSM → μ-law pipeline
-
Adjusting SoX volume to lower levels
-
Checked RTP buffers / softmix → simple_bridge switching in logs
Questions:
-
Is this a known behavior with constant-frequency tones in Asterisk when broadcasting via RTP to IP speakers?
-
Could the distortion be caused by Asterisk’s audio pipeline, codec quantization, or the IP speaker’s AGC/limiter?
-
Are there recommended settings, workarounds, or best practices for broadcasting high-volume alarm tones reliably through Asterisk?
-
Any suggestions to tune Asterisk’s streaming or format handling for stable playback of constant tones?
Thanks in advance for your advice!
