[asterisk-users] Time of Day Routing

Dáibhéad Antoine O'Reilligh oreillda at tcd.ie
Thu Aug 13 15:43:28 CDT 2009


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/7f9f8025/attachment.htm 


More information about the asterisk-users mailing list