[asterisk-users] Resetting Day/Night setting

Danny Nicholas danny at debsinc.com
Tue Jul 7 09:58:12 CDT 2009


Every minute seems like overkill.  Why not every hour/half hour/15 minutes?
Also, you could cue a call file to do this a few times a day and let
asterisk do the cron for you.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jeremy Winder
Sent: Tuesday, July 07, 2009 9:48 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Resetting Day/Night setting

It seemed to me cron was going to be the best solution. I'll create a
script that will run every minute or so that compares the Day/Night
Control with the Time Condition and when their outcomes match, reset the
Day/Night Control back to default.

I was curious as to how others would approach the same problem.

Thanks again,

Jeremy

On Tue, 2009-07-07 at 09:14 -0500, Danny Nicholas wrote:
> I concur that this is probably the best solution;  We could provide more
> helpful answers with more question details.  There are usually at least
two
> "correct" solutions to any query you can post; the more detail you can
> provide, the more likely you are to get a correct and efficient answer.
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jimmy
Godbout
> Sent: Tuesday, July 07, 2009 9:08 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] Resetting Day/Night setting
> 
> Use a cron entry to reset the setting using a cli command, as long as the
> setting is in the internal database of asterisk.
> 
> > -----Original Message-----
> > From: jwinder at logicalsi.com
> > Sent: Tue, 07 Jul 2009 09:44:58 -0400
> > To: asterisk-users at lists.digium.com
> > Subject: [asterisk-users] Resetting Day/Night setting
> > 
> > I'm not sure if this is part of Asterisk or FreePBX so I apologize if
> > this is the wrong list to ask my question.
> > 
> > As part of my companies call routes, I have a Time Condition for our
> > tech support queue. I would like to add a Day/Night Control so the Time
> > Condition can be overruled. However, I'm afraid someone will forget to
> > turn it off again. What is the best way of resetting this control back
> > to its default setting at say midnight?
> > 
> > Thanks in advance,
> > 
> > Jeremy
> > 
> > 
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> > 
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> ____________________________________________________________
> Receive Notifications of Incoming Messages
> Easily monitor multiple email accounts & access them with a click.
> Visit http://www.inbox.com/notifier and check it out!
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


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

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




More information about the asterisk-users mailing list