Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

viernes, 26 de julio de 2013

Asterisk time condition


[time]
 exten =>s,1,GotoIfTime(09:00-17:59,mon-fri,*,*?incoming-open,s,1)

;abrimos de lun-vi de  9 am a 5:59 pm

exten =>s,2,GotoIfTime(09:00-11:59,sat,*,*?incoming-open,s,1)

;también los sábados de  9 am -11:59 am

exten => s,3,Goto(incoming-closed,s,1)


[incoming-open]
exten=>s,1,Playback(demo-congrats)
same=>n,hangup()

[incoming-closed]
exten=>s,1,Playback(demo-thanks)
same=>n,hangup()


Other example

GotoIfTime(<time range>,<days of week>,<days of month>,<months>?[labeliftrue][:labeliffalse])

a working example

exten => _880010.,1,GotoIfTime(10:00-20:30,mon-sat,*,*?allow:disallow)
same=>n(allow),AGI(agi://127.0.0.1:4577/call_log)
same=>n,Dial(dahdi/g0/0${EXTEN:-10},60,tTo)
same=>n,Hangup()
same=>n(disallow),Playback(im-sorry)
same=>n,hangup()

No hay comentarios:

Publicar un comentario