]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update say.conf.sample to match the rules in say.c
authorLeif Madsen <leif@leifmadsen.com>
Tue, 31 Aug 2010 18:57:59 +0000 (18:57 +0000)
committerLeif Madsen <leif@leifmadsen.com>
Tue, 31 Aug 2010 18:57:59 +0000 (18:57 +0000)
(closes issue #17835)
Reported by: RoadKill
Patches:
      say.conf.sample.patch.rules uploaded by RoadKill (license 933)
Tested by: RoadKill

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@284316 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configs/say.conf.sample

index 25c369862dd172493a081148fc840a8f8789f187..5a3cda01ec14da4de56923b9c970a10b90adff61 100644 (file)
     ; the 'SAY' variable contains YYYYMMDDHHmm.ss-dow-doy
     ; these rule map the strftime attributes.
     _date:Y:. => num:${SAY:0:4}        ; year, 19xx
-    _date:[Bb]:. => digits/mon-$[${SAY:4:2}-1] ; month name, 0..11
+    _date:[Bbh]:. => digits/mon-$[${SAY:4:2}-1]                        ; month name, 0..11
     _date:[Aa]:. => digits/day-${SAY:16:1}     ; day of week
     _date:[de]:. => num:${SAY:6:2}             ; day of month
-    _date:[hH]:. => num:${SAY:8:2}             ; hour
+    _date:[H]:. => digits/oh, num:${SAY:8:2}                   ; hour (oh one, oh two, ..., oh nine, ten, eleven, ..., twenty-three)
     _date:[I]:. => num:$[${SAY:8:2} % 12]      ; hour 0-12
     _date:[M]:. => num:${SAY:10:2}             ; minute
     ; XXX too bad the '?' function does not remove the quotes
     ; _date:[pP]:. => digits/$[ ${SAY:10:2} > 12 ? "p-m" :: "a-m"]     ; am pm
     _date:[pP]:. => digits/p-m ; am pm
     _date:[S]:. => num:${SAY:13:2}             ; seconds
+    _date:[Ii]:. => num:$[${SAY:8:2} % 12]                     ; hour 0-12
+    _date:[k]:. => num:${SAY:8:2}                              ; hour (one, two. three, ...,twenty three
+    _date:[m]:. => num:${SAY:4:2}                              ; month number
+    _date:[Q]:. => date:dby ;incompleat                                ; "today", "yesterday" or ABdY
+    _date:[q]:. => date:dby ;incompleat                                ; "" (for today), "yesterday", weekday, or ABdY
+    _date:[R]:. => date:HM${SAY}                               ; 24 hour time, including minute
+    _date:[T]:. => date:HMS${SAY}                              ; 24 hour, minure, seconds
 
 [en-base](!)
     _[n]um:0. => num:${SAY:1}