[asterisk-users] Call file in the future

Tzafrir Cohen tzafrir.cohen at xorcom.com
Sun Jan 18 02:28:19 CST 2009


On Sat, Jan 17, 2009 at 08:06:08PM +0100, randulo wrote:
> On Sat, Jan 17, 2009 at 7:52 PM, didier.cuffaut <didier.cuffaut at neuf.fr> wrote:
> > May i have some comment/opinion on these two ways below to place a call file
> > in the future ? (from the wiki and the asterisk book but added typos and
> > stupidity come from me)
> >
> > The best is ?  (and should work ?)
> 
> This is just me, but if I were going to program calls in the future I
> would just name them with the time (2009-01-17-20-08.call for four
> minutes from now, for example) and put them in a directory. The I'd
> have a cron job running that looked once per minute in that dir and
> did the mv if found file with that name.
> 
> Does that make sense?

Run a program when something in the filesystem changes?

Looks like inotify can help you there. E.g.
http://packages.debian.org/sid/incron

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list