[asterisk-users] Time of Day Routing

Danny Nicholas danny at debsinc.com
Thu Aug 13 15:51:52 CDT 2009


My “Assumption” would be that 00:00-12:00 actually covers midnight to
12:00:59.   I would verify this by hitting this dialplan at 30 seconds after
noon local time.  Since I’m still on 1.4, this one is academic to me.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dáibhéad
Antoine O'Reilligh
Sent: Thursday, August 13, 2009 3:43 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Time of Day Routing

 

Hi everybody

I have a logic question that is confusing me.

         ifTime(00:00-12:00|*|*|*) {

                Playback(welcome-morning);

             } else {
                        ifTime(12:00-18:00|*|*|*) {

                                Playback(welcome-afternoon);

                        } else {
                                Playback(welcome-evening);

                        }
                }


Does that cover the entire day? The question arose because of the time as
follows:

   ifTime(00:00-12:00|*|*|*) { ---- so midnight to noon fine--but should it
be 11:59 or 12:00

and ifTime(12:00-18:00|*|*|*) {   -- should it be from 12:01

However doing that I assume will miss a minute.

Anybody know :)

D


-- 
_________________________________________

Mr. David Anthony O'Reilly, M.Sc, B.Sc

Researcher @ MISL Group, University College Cork (Current)

M.Sc MOB Postgraduate @ University College Cork - M.Sc (Mobile Networking
and Computing) - 2009

Computer Science Graduate of The University of Dublin, Trinity College -
B.Sc (Computer Science) 2008

Email: oreillda at tcd.ie    /    dor3 at student.cs.ucc.ie
Tel: +353 (0) 86 030 60 32
_________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090813/df0f24f1/attachment.htm 


More information about the asterisk-users mailing list