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

[incoming]
exten => 1300,1,Answer
exten => 1300,2,Wait(2)
exten => 1300,3,ResponseTimeout(10)
exten => 1300,4,Background(welcome-tahovoip)

exten => t,1,Goto(1300,2)

exten => i,1,Playback(opcaoinvalida-tahovoip)
exten => i,2,Wait(2)
exten => i,3,Goto(1300,2)

exten => 1,1,Goto(sales,s,1)
exten => 2,1,Goto(tech,s,1)

[sales]
exten => s,1,Wait,1
exten => s,2,Queue(sales_people|tT|||300) 
exten => s,3,Hangup

exten => i,1,Playback(opcaoinvalida-tahovoip)
exten => i,2,Goto(s,2)

include => agents

[tech]
exten => s,1,Wait,1
exten => s,2,Queue(tech_people|tT|||300)
exten => s,3,Hangup

exten => i,1,Playback(opcaoinvalida-tahovoip)
exten => i,2,Goto(s,2)

include => agents

[pa]
include => agentlogin
include => agents
include => pausas

[agentlogin]
exten => *11,1,AgentLogin
exten => *11,2,Hangup

[pausas]
exten => 22,1,SendDTMF(22)	; Fixa
exten => 24,1,SendDTMF(24)	; Produtiva


[agents]
exten => 3137,1,Dial(SIP/3137,20,tT)
exten => 3137,2,Hangup
exten => 3138,1,Dial(SIP/3138,20,tT)
exten => 3138,2,Hangup
exten => 3139,1,Dial(SIP/3139,20,tT)
exten => 3139,2,Hangup
exten => 3140,1,Dial(SIP/3140,20,tT)
exten => 3140,2,Hangup
exten => 3141,1,Dial(SIP/3141,20,tT)
exten => 3141,2,Hangup
exten => 3142,1,Dial(SIP/3142,20,tT)
exten => 3142,2,Hangup
exten => 3143,1,Dial(SIP/3143,20,tT)
exten => 3143,2,Hangup
exten => 3144,1,Dial(SIP/3144,20,tT)
exten => 3144,2,Hangup
exten => 3145,1,Dial(SIP/3145,20,tT)
exten => 3145,2,Hangup
exten => 3146,1,Dial(SIP/3146,20,tT)
exten => 3146,2,Hangup
exten => 3147,1,Dial(SIP/3147,20,tT)
exten => 3147,2,Hangup
exten => 3148,1,Dial(SIP/3148,20,tT)
exten => 3148,2,Hangup
exten => 3149,1,Dial(SIP/3149,20,tT)
exten => 3149,2,Hangup
exten => 3150,1,Dial(SIP/3150,20,tT)
exten => 3150,2,Hangup
exten => 3151,1,Dial(SIP/3151,20,tT)
exten => 3151,2,Hangup
exten => 3152,1,Dial(SIP/3152,20,tT)
exten => 3152,2,Hangup
exten => 3153,1,Dial(SIP/3153,20,tT)
exten => 3153,2,Hangup
exten => 3154,1,Dial(SIP/3154,20,tT)
exten => 3154,2,Hangup
exten => 3155,1,Dial(SIP/3155,20,tT)
exten => 3155,2,Hangup
exten => 3156,1,Dial(SIP/3156,20,tT)
exten => 3156,2,Hangup
exten => 3172,1,Dial(SIP/3172,20,tT)
exten => 3172,2,Hangup

exten => 4000,1,Dial(SIP/4000,20,tT)
exten => 4000,2,Hangup

[supervisor]
include => agents
include => agentlogin

exten => *8159,1,ZapScan
exten => *8159,2,Hangup
