Say Datetime

Since 1.2.0 AGI Commands Found this useful? Upvote it. ×

Says a given time as specified by the format given.

Last reviewed 2026-04-14

say datetime time escape_digits format timezone
Description

Say a given time, returning early if any of the given DTMF digits are received on the channel. Returns 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if one was pressed or -1 on error/hangup.

Arguments
  • time required - Is number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC)
  • escape_digits required
  • format - Is the format the time should be said in. See voicemail.conf (defaults to ABdY 'digits/at' IMp).
  • timezone - Acceptable values can be found in /usr/share/zoneinfo Defaults to machine default.

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.