Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/02/2008, 10:29
Avatar de guett_consul
guett_consul
 
Fecha de Ingreso: febrero-2003
Ubicación: Bucaramanga
Mensajes: 236
Antigüedad: 21 años, 2 meses
Puntos: 0
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.
Telefonia IP Bucaramanga
Asterisk Bucaramanga