como hacer una llamada preprogramada con asterisk:
Código:
$ date
Mon Mar 19 13:52:30 EDT 2007
$ touch -d 20080101 /var/spool/asterisk/tmp/blah
$ mv /var/spool/asterisk/tmp/blah .
$ ls -l blah
-rw-r--r-- 1 andrew users 0 Jan 1 00:00 blah
Bash example: to schedule a call in 100 s :
Código:
# gives you the current time in seconds since dawn of UNIX
NOW=`date +%s`
# add 100 seconds
let NOW=$NOW+100
# create a timestamp used by 'touch -t' (no space between %M. %S, but the Wiki wants a space at this place)
TOUCH_TMSP=`date -d "1970-01-01 $NOW sec GMT" +%Y%m%d%H%M. %S`
# and do the touch
touch -t $TOUCH_TMSP blah
FUENTE:
http://www.voip-info.org