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

时间:2015-05-17 02:11:52

标签: asterisk

我正在使用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上启用频道类型代理?我正在测试的成员在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

注意:变量仅用于记录prupose。这是登录代理上下文的Dialplan:

[login-agent]

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

1 个答案:

答案 0 :(得分:0)

经过多次尝试,我找到了一种没有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)

希望这有助于其他人!