Name
SAY DATETIME
Synopsis
SAY DATETIMEdatetime escape_digits[format] [timezone]
Says the given datetime,
returning early if any of the given DTMF digits are received on the
channel. The datetime is the number of
seconds elapsed since 00:00:00 on January 1, 1970, Coordinated
Universal Time (UTC). The optional format
argument is the format in which the time should be spoken. (See
voicemail.conf for a complete description of the
format options.) format defaults to
"ABdY 'digits/at' IMp". Acceptable
values for timezone can be found in
/usr/share/zoneinfo/.
timezone defaults to the default time zone
of the Asterisk server.
Return values:
-1Error or hangup
0Playback completed without being interrupted by an escape digit
valueASCII value of digit (if pressed), in decimal
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access