Playing with time ranges - using the examples found in one of the
asterisk cook books... (pdf - page 17)
; After Hours
include => night_menu|00:00-08:00|Tue-Fri|*|*
include => night_menu|17:00-24:00|Mon-Thu|*|*
this gives...
... pbx.c:2962 get_timerange: 24:00 isn't a valid end time....
-- Including context 'night_menu|17:00-24:00|Mon-Thu|*|*' in context
'default'
Looking at pbx.c - I'm not sure if I should change the end time (ie
midnight) to either 23:59 -or- 00:00.
23:59 will work - but what happens to calls then between 23:59 and
midnight?
(Be nice if the people who wrote cookbook examples tested them too)
--
. . ___. .__ Posix Systems - Sth Africa
/| /| / /__ mje@posix.co.za - Mark J Elkins, Cisco CCIE
/ |/ |ARK \_/ /__ LKINS Tel: +27 12 807 0590 Cell: +27 82 601 0496
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :
http://lists.digium.com/pipermail/asterisk-users/attachments/20040430/ecdb649b/attachment.pgp
On Fri, 30 Apr 2004, Mark Elkins waxed:> Playing with time ranges - using the examples found in one of the > asterisk cook books... (pdf - page 17) > ; After Hours > include => night_menu|00:00-08:00|Tue-Fri|*|* > include => night_menu|17:00-24:00|Mon-Thu|*|* > > this gives... > ... pbx.c:2962 get_timerange: 24:00 isn't a valid end time.... > -- Including context 'night_menu|17:00-24:00|Mon-Thu|*|*' in context > 'default' > > Looking at pbx.c - I'm not sure if I should change the end time (ie > midnight) to either 23:59 -or- 00:00. > > 23:59 will work - but what happens to calls then between 23:59 and > midnight? > > (Be nice if the people who wrote cookbook examples tested them too)Well, considering you only have 60 seconds to test this every night, good luck ! But seriously, it sounds like a bug. --Chris -- Chris Maj, Rochester cmaj_at_freedomcorpse_dot_com Pronunciation Guide: Maj == May
On Fri, 30 Apr 2004, Mark Elkins wrote:> Looking at pbx.c - I'm not sure if I should change the end time (ie > midnight) to either 23:59 -or- 00:00.it is 23:59> 23:59 will work - but what happens to calls then between 23:59 and > midnight?23:59'59" is still 23:59 mainly because you are not handling "seconds", pnlu hours and minutes. And, actually, 24:00 does not exist... This about this recipe: include => night_menu|17:00-23:58|Mon-Thu|*|* in this example, you are starting at 17 hours, 0 minutes 0 seconds and ending at 23 hours, 58 minutes, 59 seconds..