如何在 Asterisk 13 上启用代理通道类型

How to enable Agent Channel Type on Asterisk 13

我正在使用 Asterisk 13 并为呼叫中心构建一个 PBX 应用程序控制器。我在处理代理时遇到问题,由于某种原因,Asterisk 13 默认没有启用通道类型代理,所以我不知道如何在队列成员上添加代理。

[May 17 02:03:58] WARNING[1767][C-00000001]: channel.c:5932 ast_request: No channel type registered for 'Agent'

有没有办法在 Asterisk 13 上启用 Channel Type Agent?我正在测试的成员的配置类似于 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]

exten => _[0-9a-zA-Z].,1,NoOp(Trying to log agent ${login} on ${EXTEN})
same => n,Dial(Local/${EXTEN}@extensions)

经过多次尝试,我找到了一种不用Channel Type Agent的方法。诀窍是在拨号规则上使用 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)

希望这对其他人有帮助!