I see the pattern.. let me think for a second.. and I'm sure I can get you something that's simpler than 31 gotoif's
bkw > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of brian > Sent: Tuesday, July 06, 2004 5:24 PM > To: [EMAIL PROTECTED] > Subject: RE: [Asterisk-Users] multiple days on a GotoIfTime command? > > You're making this WAY too complicated its simpler than you can even > imagine. > > Mind answering my original question first? WHAT THE HECK is the pattern > your logic? What times are you open.. what times are you closed? What? > > > bkw > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:asterisk-users- > > [EMAIL PROTECTED] On Behalf Of Roger Gulbranson > > Sent: Tuesday, July 06, 2004 4:20 PM > > To: [EMAIL PROTECTED] > > Cc: Roger Gulbranson > > Subject: Re: [Asterisk-Users] multiple days on a GotoIfTime command? > > > > On Tue, 2004-07-06 at 17:03, Gelson Dias Santos wrote: > > > brian wrote: > > > > > > > What are you trying to do? What is the end result and what hours > are > > you > > > > open? > > > > > > > > > Exactly what I said. Need to call a number if time and day matches > > what > > > is on the rule. This month I have to: > > > > > > call NUMBER1 if day = 1,2,3,4,5,8,14,17,18,20,23,26,29 > > > call NUMBER2 if day = 6,9,10,11,12,15,21,27,30,31 > > > call NUMBER3 if day = 7,13,16,19,22,24,25,28 > > > > > > I have it working now using 31 "GotoIfTime" lines, one for each day > > of > > > month but I would like to optimize it. If I could group all days > related > > > to a number somehow, I would end up with just three "GotoIfTime" > lines. > > > > You are making this way too complicated. > > > > Use DBget to retrieve a number which is the extension you want and then > > dial that extension. > > > > Have a cron job (or something similar) set the extension you want via > > DBset. You can put all of your time logic into the cron job. > > > > There may be even simpler solutions. > > > > > > > > _______________________________________________ > > Asterisk-Users mailing list > > [EMAIL PROTECTED] > > http://lists.digium.com/mailman/listinfo/asterisk-users > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
