如何使用AMI星号接口登录代理?

时间:2014-07-13 13:26:32

标签: java asterisk ami agi

方法AgentCallbackLogin已从星号管理器界面(asterisk-java)弃用,我想管理代理连接,以便在不使用手机登录的情况下准备好接收来自队列的呼叫(使用agentLogin(代理))如果somone对此有所了解吗?

1 个答案:

答案 0 :(得分:1)

现在您可以将AddQueueMember用于相同目的

core show application AddQueueMember 

  -= Info about application 'AddQueueMember' =- 

[Synopsis]
Dynamically adds queue members. 

[Description]
Dynamically adds interface to an existing queue. If the interface is already
in the queue it will return an error.
This application sets the following channel variable upon completion:
${AQMSTATUS}: The status of the attempt to add a queue member as a text
string.
    ADDED
    MEMBERALREADY
    NOSUCHQUEUE

[Syntax]
AddQueueMember(queuename[,interface[,penalty[,options[,membername[,stateinterface]]]]])

例如,如果您希望回拨号码为123456789,则可以使用

AddQueueMember(800,Local/123456789@out/n)