[B]How to schedule a Call in the Future [/B]
Files with a [B]modified[/B] date in the future are ignored until that time arrives. Create the file in /var/spool/asterisk/tmp, modify the mtime using "touch", and then move it...
[FONT=monospace]$ date [/FONT]
[FONT=monospace]Mon Mar 19 13:52:30 EDT 2007 [/FONT]
[FONT=monospace]$ touch -d 20080101 /var/spool/asterisk/tmp/blah [/FONT]
[FONT=monospace]$ mv /var/spool/asterisk/tmp/blah . [/FONT]
[FONT=monospace]$ ls -l blah [/FONT]
[FONT=monospace]-rw-r--r-- 1 andrew users 0 Jan 1 00:00 blah [/FONT]
Bash example: to schedule a call in 100 s :
[FONT=monospace]# gives you the current time in seconds since dawn of UNIX [/FONT]
[FONT=monospace]NOW=`date +%s` [/FONT]
[FONT=monospace]# add 100 seconds [/FONT]
[FONT=monospace]let NOW=$NOW+100 [/FONT]
[FONT=monospace]# create a timestamp used by 'touch -t' (no space between %M. %S, but the Wiki wants a space at this place) [/FONT]
[FONT=monospace]TOUCH_TMSP=`date -d "1970-01-01 $NOW sec GMT" +%Y%m%d%H%M. %S` [/FONT]
[FONT=monospace]# and do the touch [/FONT]
[FONT=monospace]touch -t $TOUCH_TMSP blah [/FONT]