[Asterisk-Dev] Patch for voicemail date/time

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri May 16 15:30:52 MST 2003


On Friday 16 May 2003 05:28 pm, Tilghman Lesher wrote:
> On Friday 16 May 2003 12:50 am, Tilghman Lesher wrote:
> > On Thursday 15 May 2003 10:49, Jim Gottlieb wrote:
> > > On 2003-05-15 at 02:53, Brian Capouch (brianc at palaver.net)
> >
> > wrote:
> > > > If that could be done, then the timestamp should prolly be
> > > > played backwards, time-of-day first.  If I'm getting
> > > > messages very often, that's all I'd need to know of any use;
> > > > then beep right along.
> > >
> > > What's usually done in voicemail systems is to just say
> > > "Today" or "Yesterday" as appropriate.  Only if the message is
> > > older is, perhaps, the day of the week given, or the full
> > > date.
> >
> > Here's the latest bit of code.  This patch is currently UNTESTED,
> > but I'll test it tomorrow during the day.  It will allow a new
> > variable in voicemail.conf called "datetime" which is a format
> > string.  The string currently accepts the following specifiers:
> > 	'any/soundfile'	quoted, in single ticks, the name of a sound
> > 	A			weekday
> > 	B			monthname
> > 	d			day of month
> > 	Y			year
> > 	I (capital i)		hour, in 12-hour format
> > 	M			minute
> > 	p			am or pm
> > 	Q			"digits/today", "digits/yesterday", or
> > 				"ABdY" if neither.
> > Spaces and tabs are ignored within the string.  The default
> > string is:
> > 	'vm-received' Q 'digits/at' IMp
> >
> > The format specifiers, with the exception of Q, are in keeping
> > with strftime(3), in case you're interested.
>
> Okay, this patch has been tested (original voicemail).  I'll
> attempt to get the patch ported over to voicemail2 this weekend.

Ooops, let's try that again, with the non-inhouse patch.

-Tilghman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm1__msg_datetime__3.diff
Type: text/x-diff
Size: 6923 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030516/4f2a320b/vm1__msg_datetime__3.bin


More information about the asterisk-dev mailing list