Einrichten einer Warteschlange
Buch - Scripte

 

/etc/asterisk/agent.conf

[general]
persistentagents = no

[agents]autologoff = 15
ackcall = no
musiconhold => agent
updatecdr = yes

recordagentcalls = yes
recordformat = wav
savecallsin = /var/spool/asterisk/monitor

agent => 007,1234,Tim
agent => 008,1234,Tom
agent => 009,1234,Jack

 

/etc/asterisk/queues.conf

[general]
persistentmembers = yes

[support]
musiconhold = supportqueue
strategy = roundrobin
timeout = 10
retry = 5
reportholdtime=yes
wrapuptime=15
maxlen = 5
announce-frequency = 15
announce-holdtime = yes
joinempty = yes

member => Agent/007
member => Agent/008
member => Agent/009

 


/etc/asterisk/extensions.conf

[warteschleife]
exten => 107,1,AgentCallbackLogin(007)
exten => 108,1,AgentCallbackLogin(008)
exten => 109,1,AgentCallbackLogin(009

exten => 1007,1,system(asterisk -rx "agent logoff agent/007")
exten => 1008,1,system(asterisk -rx "agent logoff agent/008")
exten => 1009,1,system(asterisk -rx "agent logoff agent/009")

exten => 140,1,setLanguage(de)
exten => 140,n,Ringing
exten => 140,n,Wait(2)
exten => 140,n,Queue(Support)
exten => 140,n, Hangup