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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dáibhéad
Antoine O'Reilligh
Sent: Thursday, August 13, 2009 3:43 PM
To: asterisk-users@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: oreil...@tcd.ie    /    d...@student.cs.ucc.ie
Tel: +353 (0) 86 030 60 32
_________________________________________

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to