[asterisk-users] Other apps checking Day/Night

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Oct 12 18:05:10 CDT 2007


On Friday 12 October 2007 15:47:41 Anthony Francis wrote:
> Lacy Moore wrote:
> > I guess it all depends on how you put your system on night mode.  If
> > you use asterisk's database, and manually put it in night mode every
> > day, my guess is that you dial an extension which puts it in
> > nightmode.  You could include as part of this the system command to
> > touch a file, and then on your webserver check for existance of that
> > file.
> >
> > That may be opening up more holes than needed between your web server
> > and asterisk.  As Tilghman suggested, func_odbc.conf may be better.
> > You could then set and unset by writing it directly to your store's
> > database.
>
> If you are going the external app method why not fire a script that
> updates a DB?

That is pretty much exactly how func_odbc can be used (except without the hit
of firing up a whole new process for the simple task of flicking a field in a
database to "on" or "off").

-- 
Tilghman



More information about the asterisk-users mailing list