I am hoping to get some help here with building custom PHP to manage a
‘wake up call’ system.
I have the script where the user can set the schedule for an extension wake up call.
It appears to write to the /var/spool/asterisk/outgoing/ directory.
My two issues:
1 – when the files do get moved over to outgoing/ directory via a cron job, the permissions show “-rw-r–r– 1 apache apache 100 Jan 1 2016
5680a312a28b2.call” and the calls get sent when the date comes to pass. But my question is, if I mv 3 files from my php script, ‘ll
/var/spool/asterisk/outgoing/’ shows ‘total 12’ when there are only three files in the directory. What does total mean? Is my perl script doing something that I am not aware of and really there are 12 files overlapped or something funky?
— cron job perl script my @list = glob(“/tmp/*.call”);
for( 0 .. $#list )
system “mv $list[$_] /var/spool/asterisk/outgoing/”;