comtech
November 20, 2017, 7:47pm
1
Hello,
FreePBX/Asterisk 14
http://the-asterisk-book.com/1.6/call-file.html
I’ve successfully setup a call file that calls people back in 45 minutes using the touch and mv commands:
exten => _*77*XXXXXXXXXXXX,n,System(touch -t ${year}${month}${day}${hours}${minutes}+45 /tmp/${UNIQUEID}.call)
exten => _*77*XXXXXXXXXXXX,n,System(mv /tmp/${UNIQUEID}.call /var/spool/asterisk/outgoing/)
I have observed that instead of showing up in /tmp/ the call files appear immediately in /var/spool/asterisk/outgoing/ but do not process until the touch timer elapses.
Question:
If I wanted to process the pending call files early, is there a way to do that?
Thanks for any insights!
You can touch the files again to update their timestamp with the new time you want the files to run at.
comtech
November 20, 2017, 8:57pm
3
Thanks!
If I put a time in the past (for simplicity) would that work? Or does it have to be the future?
Also do you know if the touch has to happen in /tmp/ (looks empty) or /var/spool/asterisk/outgoing/?
Well, It’s going to be hard for Asterisk to process your files at the correct time if they are in the past.
The only exception I can think of is if your location has daylight savings time, Then it might work during one hour a year.
The files need to be in the spool directory to be processed by Asterisk.
1 Like