Im checking the wiki for call files info and seems somebody has a wake up script that runs call files at certain times. Do you know if its possible to run a call file by using some other methods different from cron jobs or at? The wiki mentions that it might be possible to do this is you modify the files creation date and time by using touch -f.. Is it true? The wakeup script creates call files with the date and time on the filename but I don't see how asterisk can then now when to run it since it runs all the files on the outgoing dir when it sees them. Any tips?
On Mon, 2005-03-28 at 15:55 -0600, Anton Krall wrote:> Im checking the wiki for call files info and seems somebody has a wake up > script that runs call files at certain times. > > Do you know if its possible to run a call file by using some other methods > different from cron jobs or at? The wiki mentions that it might be possible > to do this is you modify the files creation date and time by using touch > -f.. Is it true? > > The wakeup script creates call files with the date and time on the filename > but I don't see how asterisk can then now when to run it since it runs all > the files on the outgoing dir when it sees them.Without looking at code, I don't know for certain. If you modify the creation time and then 'mv' it into the outgoing dir, asterisk will see it and ignore it till the creation time is older than current time. You will find a lot of suggestions to not create files in the outgoing directory due to race conditions on your creation time and when you are done writing the file. -- Steven Critchfield <critch@basesys.com>
Any examples that can do that? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Steven Critchfield Sent: Lunes, 28 de Marzo de 2005 08:13 p.m. To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] call files run at certain times On Mon, 2005-03-28 at 16:37 -0600, Anton Krall wrote:> BTW, can you use the same call file to make 2 calls in order or just 1 > call per call file?1 call per file> What I want to do is first make a call to a sip phone and playback > some file and then make another call to the same sip phone but this > time connect the call to a zap line. > > This has to be in order since the first call is kind of an announce > and the second is the actual connect.While does this have to be 2 calls. Why not be one call that is scripted. Call the SIP phone then connect to a generic wakeup script that plays the canned audio then connects to the appropriate Zap channel. -- Steven Critchfield <critch@basesys.com> _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Anton Krall wrote:> Any examples that can do that?extensions.conf [mycontext] exten => 801,1,Answer() exten => 801,2,Playback(mysoundfile) exten => 801,3,Dial(Zap/5551234) sample.call Channel: Sip/bob MaxRetries: 2 RetryTime: 60 WaitTime: 30 Context: mycontext Extension: 801 Priority: 1 :) -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)