Last active
February 2, 2018 07:58
-
-
Save fagnersilva/6cdb7c645c60905e08a5 to your computer and use it in GitHub Desktop.
feriados e horario atendimento
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [inbound-call] | |
| exten => s,1,Answer() | |
| same => n,Set(TELLER=0) | |
| same => n,Set(TIMEOUT(digit=1) | |
| same => n,Set(TIMEOUT(response=6) | |
| same => n,NoOp(Controle de Horario e Dias de Atendimento) | |
| same => n,NoOp(=========================================) | |
| same => n,NoOp(===== Validando Feriados Federais =======) | |
| same => n,GotoIfTime(*,*,1,jan?lb_fnac); Confraternização Universal | |
| same => n,GotoIfTime(*,*,12,jan?lb_fnac) ; Carnaval | |
| same => n,GotoIfTime(*,*,29,mar?lb_fnac) ; Paixao de Cristo | |
| same => n,GotoIfTime(*,*,21,apr?lb_fnac) ; Tiradentes | |
| same => n,GotoIfTime(*,*,1,may?lb_fnac) ; Dia do Trabalho | |
| same => n,GotoIfTime(*,*,30,may?lb_fnac) ; Corpus Christi (Facultativo) | |
| same => n,GotoIfTime(*,*,7,sep?lb_fnac) ; Independencia do Brasil | |
| same => n,GotoIfTime(*,*,12,oct?lb_fnac) ; Nossa Sr. Aparecida / Dia das Crianças (Facultativo) | |
| same => n,GotoIfTime(*,*,2,nov?lb_fnac) ; Finados | |
| same => n,GotoIfTime(*,*,15,nov?lb_fnac) ; Proclamacao da Republica | |
| same => n,GotoIfTime(*,*,25,dec?lb_fnac) ; Natal / Nascimento de Cristo (Facultativo) | |
| same => n,NoOp(=========================================) | |
| same => n,NoOp(===== Validando Feriados Estaduais ======) | |
| same => n,NoOp() | |
| same => n,NoOp(=========================================) | |
| same => n,NoOp(===== Validando Feriados Municipais =====) | |
| same => n,NoOp() | |
| same => n,GotoIfTime(00:00-23:59,sun,*,*?lb_fexp) | |
| same => n,GotoIfTime(12:00-07:59,sat,*,*?lb_fexp) | |
| same => n,GotoIfTime(08:00-11:59,sat,*,*?lb_dexp) | |
| same => n,GotoIfTime(18:00-07:59,mon-fri,*,*?lb_fexp) | |
| same => n,GotoIfTime(08:00-11:59,mon-fri,*,*?lb_dexp) | |
| same => n,GotoIfTime(12:00-12:59,mon-fri,*,*?lb_fexp) | |
| same => n,GotoIfTime(13:00-17:59,mon-fri,*,*?lb_dexp) | |
| same => n,Goto(lb_fexp) | |
| same => n,NoOp(Fora do Horario de Atendimento) | |
| same => n(lb_fexp),NoOp(KOK) | |
| same => n,Background(br/beep&br/custom/res/fora_horario_comercial_res) | |
| same => n,WaitExten(6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
;------------------------------------------------------------------------
; "corretores.conf" -> extensions.conf - Plano de marcacao do Asterisk
;------------------------------------------------------------------------
; AAC Atendimento Automáco de Chamadas com controlo de horario
;
[labcom]
exten => s,1,NoOp(Atendimento Automatico labcom)
same => n,Answer()
same => n,NoOp(CHAMADA DE ${CALLERID(all)} PARA ${EXTEN})
same => n,AGI(blacklist_entrante.php,${CALLERID(num)})
same => n,Set(MCDU=${EXTEN})
same => n,NoOp(O MCDU e: ${MCDU})
same => n,Dial(SIP/8001,45,rtT)
same => n,GotoIf($[$["${LIMIT}"="1"]|$["${DIALSTATUS}"="${NOANSWER}"]]?touno)
same => n(touno),Dial(SIP/8002,40,rtT)
same => n,GotoIf($[$["${LIMIT}"="1"]|$["${DIALSTATUS}"="${NOANSWER}"]]?todue)
same => n(todue),Dial(SIP/8003,40,rtT)
same => n,HangUp()
; Trydial$["$ {DIALSTATUS}"="ANSWER"]?reload)$["$ {DIALSTATUS}"="ANSWER"]?reload)$["$ {DIALSTATUS}"="ANSWER"]?reload)
;exten => s,1,Dial(${ACH1},60,rTt)
;exten => s,n,GotoIf(
;exten => s,n,Dial(${ACH2},55,rTt)
;exten => s,n,GotoIf(
;exten => s,n,Dial(${ACH3},50,rTt)
;exten => s,n,GotoIf(
;exten => s,n,Dial(${ACH4},45,rTt)
;exten => s,n,Goto(reload)
;
;---------------------------------------------------------------