[general]
static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=yes

[globals]
VSA=/var/spool/asterisk
TIMEOUT=30

[extensions]
exten => 1XX,1,Dial(SIP/${EXTEN},${TIMEOUT})


[time]
exten => s,1,Answer
exten => s,n,Set(H=${STRFTIME(${EPOCH},,%l)})
exten => s,n,Set(M=${STRFTIME(${EPOCH},,%M)})
exten => s,n,Set(P=${STRFTIME(${EPOCH},,%p)})
exten => s,n,Playback(beep)
exten => s,n,Playback(beep)
exten => s,n,Wait(1)
exten => s,n,Swift(The time is ${H} ${M} ${P})

exten => h,1,System(cp ${VSA}/tmp/callfile.txt ${VSA}/tmp/143.call)
exten => h,n,System(touch -cm -t 201501010330 ${VSA}/tmp/143.call)
exten => h,n,System( (sleep 10 && mv ${VSA}/tmp/143.call ${VSA}/outgoing/143.call) &)
exten => h,n,Hangup


