【问题标题】:How to enable Agent Channel Type on Asterisk 13如何在 Asterisk 13 上启用代理通道类型
【发布时间】:2015-05-17 18:01:39
【问题描述】:

我正在使用 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

注意:变量仅用于记录目的。这是登录代理上下文的拨号方案:

[login-agent]

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

【问题讨论】:

    标签: asterisk


    【解决方案1】:

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

    希望这对其他人有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多