Ver Mensaje Individual
Antiguo 18-feb-2008, 09:29   #2 (permalink)
guett_consul
guett_consul está en el buen camino
 
Avatar de guett_consul
 
Fecha de Ingreso: febrero-2003
Ubicación: Bucaramanga
Mensajes: 226
Enviar un mensaje por MSN a guett_consul
Re: Llamadas automaticas desde asterisk

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
guett_consul está desconectado   Responder Citando