The ill conceived chan_agent is no more. It is now replaced by app_agent_pool. Agents login using the AgentLogin() application as before. The AgentLogin() application no longer does any authentication. Authentication is now the responsibility of the dialplan. (Besides, the authentication done by chan_agent did not match what the voice prompts asked for.) Sample extensions.conf [login] ; Sample agent 1001 login ; Set COLP for in between calls so the agent does not see the last caller COLP. exten => 1001,1,Set(CONNECTEDLINE(all)="Agent Waiting" <1001>) ; Give the agent DTMF transfer and disconnect features when connected to a caller. same => n,Set(CHANNEL(dtmf-features)=TX) same => n,AgentLogin(1001) same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS}) same => n,Hangup() [caller] ; Sample caller direct connect to agent 1001 exten => 800,1,AgentRequest(1001) same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS}) same => n,Hangup() ; Sample caller going through a Queue to agent 1001 exten => 900,1,Queue(agent_q) same => n,Hangup() Sample queues.conf [agent_q] member => Local/800@caller,,SuperAgent,Agent:1001 Under the hood operation overview: 1) Logged in agents wait for callers in an agents holding bridge. 2) Caller requests an agent using AgentRequest() 3) A basic bridge is created, the agent is notified, and caller joins the basic bridge to wait for the agent. 4) The agent is either automatically connected to the caller or must ack the call to connect. 5) The agent is moved from the agents holding bridge to the basic bridge. 6) The agent and caller talk. 7) The connection is ended by either party. 8) The agent goes back to the agents holding bridge. To avoid some locking issues with the agent holding bridge, I needed to make some changes to the after bridge callback support. The after bridge callback is now a list of requested callbacks with the last to be added the only active callback. The after bridge callback for failed callbacks will always happen in the channel thread when the channel leaves the bridging system or is destroyed. (closes issue ASTERISK-21554) Reported by: Matt Jordan Review: https://reviewboard.asterisk.org/r/2657/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
71 lines
2 KiB
Text
71 lines
2 KiB
Text
;
|
|
; Agent pool configuration
|
|
;
|
|
|
|
[general]
|
|
; The general section of this config is not currently used, but reserved
|
|
; for future use.
|
|
|
|
;[agent-id]
|
|
; Define ackcall to require the agent to give a DTMF acknowledgement
|
|
; when the agent receives a call.
|
|
; The channel variable AGENTACKCALL overrides on agent login.
|
|
; Default is "no".
|
|
;ackcall=no
|
|
;
|
|
; Set what DTMF key sequence the agent should use to acknowledge a call.
|
|
; The channel variable AGENTACCEPTDTMF overrides on agent login.
|
|
; This option is ignored unless ackcall is enabled.
|
|
; Default is "#".
|
|
;acceptdtmf=##
|
|
;
|
|
; Set how many seconds a call for the agent has to wait for the agent to
|
|
; acknowledge the call before the agent is automatically logged off. If
|
|
; set to zero then the call will wait forever for the agent to acknowledge.
|
|
; The channel variable AGENTAUTOLOGOFF overrides on agent login.
|
|
; This option is ignored unless ackcall is enabled.
|
|
; Default is 0.
|
|
;autologoff=15
|
|
;
|
|
; Set the minimum amount of time after disconnecting a call before
|
|
; the agent can receive a new call in milliseconds.
|
|
; The channel variable AGENTWRAPUPTIME overrides on agent login.
|
|
; Default is 0.
|
|
;wrapuptime=5000
|
|
;
|
|
; Set the musiconhold class for the agent.
|
|
; Default is "default".
|
|
;musiconhold=default
|
|
;
|
|
; Enable recording calls the agent takes automatically by invoking the
|
|
; DTMF automixmon feature when the agent connects to a caller.
|
|
; See features.conf.sample for information about the automixmon feature.
|
|
; Default is "no".
|
|
;recordagentcalls=yes
|
|
;
|
|
; The sound file played to alert the agent when a call is present.
|
|
; Default is "beep".
|
|
;custom_beep=beep
|
|
;
|
|
; A friendly name for the agent used in log messages.
|
|
; Default is "".
|
|
;fullname=Mark Spencer
|
|
;
|
|
; --------------------------------------------------
|
|
;
|
|
; This section contains example agent definitions:
|
|
;
|
|
; Define a template called my-agents:
|
|
;[my-agents](!)
|
|
;autologoff=15
|
|
;ackcall=yes
|
|
;acceptdtmf=##
|
|
;
|
|
; Define agent 1001 using the my-agents template:
|
|
;[1001](my-agents)
|
|
;fullname=Mark Spencer
|
|
;
|
|
; Define agent 1002 using the my-agents template:
|
|
;[1002](my-agents)
|
|
;fullname=Will Meadows
|