我正在使用Asterisk 13并构建呼叫中心的PBX应用程序控制器。我在处理代理时遇到了一个问题,由于某种原因,Asterisk 13默认情况下没有启用通道类型Agent,所以我不知道如何在队列成员上添加Agent。
[May 17 02:03:58] WARNING[1767][C-00000001]: channel.c:5932 ast_request: No channel type registered for 'Agent'
是否可以在星号13上启用通道类型代理?我正在测试的成员是这样配置的queue.conf:
member => Agent/marcioantonio,0,Márcio Antônio,Agent:marcioantonio,no
登录时,我只需要使用以下AMI:
Action: Originate
Channel: Local/2000@login-agent
Application: AgentLogin
Data: marcioantonio,s
CallerID: OdinPBX Login Agent
Variable: login=marcioantonio
注意:该变量仅用于记录目的。下面是login-agent上下文的Dialplan:
[login-agent]
exten => _[0-9a-zA-Z].,1,NoOp(Trying to log agent ${login} on ${EXTEN})
same => n,Dial(Local/${EXTEN}@extensions)
经过多次尝试,我找到了一个没有通道类型代理的方法。诀窍是在dialplan上使用AgentRequest(AgentId)
函数。所以把我的拨号计划改成:
[login-agent]
exten => _[0-9a-zA-Z].,1,NoOp(Trying to log agent ${login} on ${EXTEN})
same => n,Dial(Local/${EXTEN}@extensions)
[agents]
exten => _[0-9a-zA-Z].,1,NoOp(Connecting the current call to agent ${EXTEN})
same => n,AgentRequest(${EXTEN})
same => n,Hangup()
和queue.conf上的成员:
member => Local/marcioantonio@agents,0,Márcio Antônio,Agent:marcioantonio,no
队列和代理工作正常!
Márcio Antônio (Local/marcioantonio@agents from Agent:marcioantonio) (ringinuse disabled) (Not in use) has taken 5 calls (last was 346 secs ago)
希望这对其他人有帮助!