Voicemail maxsilence Must Be Less Than minsecs

Troubleshooting -- Last reviewed 2026-04-01 voicemail configuration Found this useful? Upvote it. ×

The Problem

Asterisk logs a warning at startup:

maxsilence should be less than minsecs or you may get empty messages

What These Settings Do

In voicemail.conf [general]:

The Conflict

If maxsilence >= minsecs, Asterisk could stop recording after maxsilence seconds of silence, producing a message that is exactly maxsilence seconds long, which would then be discarded for being shorter than minsecs.

The caller thinks they left a message, but it gets thrown away.

Fix

Ensure maxsilence is strictly less than minsecs:

[general]
minsecs = 3      ; discard messages shorter than 3 seconds
maxsilence = 2   ; stop recording after 2 seconds of silence

If you do not want silence detection, set maxsilence = 0 to disable it entirely.

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.

Related Snippets