[Asterisk-Users] call files run at certain times
Anton Krall
akrall-lists at intruder.com.mx
Mon Mar 28 15:37:05 MST 2005
BTW, can you use the same call file to make 2 calls in order or just 1 call
per call 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.
Can this be done on the same call file or what do you guys suggest?
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steven
Critchfield
Sent: Lunes, 28 de Marzo de 2005 04:16 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 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 at basesys.com>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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
More information about the asterisk-users
mailing list