Summary
send_early_media_tone builds a FileTrack for progress audio with .with_loop(true).
Short cues (e.g. a generated double-beep WAV, or any brief prompt) therefore repeat continuously for the entire early-media phase instead of playing once. Operators hear “many beeps” rather than two.
Location
src/proxy/proxy_call/sip_session.rs — send_early_media_tone, progress-media FileTrack construction.
Expected
- Default for short progress tones: loop false (play once).
- Optional loop only when the configured progress/ringback asset is intended to be continuous (music-on-ring).
Suggested fix
.with_loop(false) for tone:// / explicit one-shot cues; keep loop only for ringback music files if desired (config flag).
Summary
send_early_media_tonebuilds aFileTrackfor progress audio with.with_loop(true).Short cues (e.g. a generated double-beep WAV, or any brief prompt) therefore repeat continuously for the entire early-media phase instead of playing once. Operators hear “many beeps” rather than two.
Location
src/proxy/proxy_call/sip_session.rs—send_early_media_tone, progress-mediaFileTrackconstruction.Expected
Suggested fix
.with_loop(false)for tone:// / explicit one-shot cues; keep loop only for ringback music files if desired (config flag).