1

使用 java-asterisk 连接到 AMI 后,我创建一个调用:

  OriginateAction originateAction;
    ManagerResponse originateResponse;
    getEvent event = new getEvent();
    SipShowPeerAction peer = new SipShowPeerAction();
    peer.setPeer("phone1");
    managerConnection.addEventListener(event);
    originateAction = new OriginateAction();
    ParkAction park = new ParkAction();
    originateAction.setChannel("SIP/mark");
    originateAction.setCallerId("<6002>");
    originateAction.setContext("default");
    originateAction.setPriority(new Integer(1));
    originateAction.setExten("1304");

    managerConnection.login();
    managerConnection.addEventListener(event);
    originateResponse = managerConnection.sendAction(peer);

    originateResponse = managerConnection.sendAction(originateAction, 30000);
    Thread.sleep(3000);
    park.setActionId(originateAction.getActionId());

    managerConnection.logoff();

我想使用 Asterisk-java 保留和取消保留当前呼叫,我在网络中检查我发现我必须使用 ParkAction 但我真的不明白这个概念?如果有人有想法?

4

0 回答 0