简体   繁体   English

有没有办法使用 java OriginateAction 使用拨号选项进行电话会议

[英]Is there any way to do conference call with dial option using java OriginateAction

This is happening right now这正在发生

step1: A party Calling using OriginateAction and not passing dialoptions like tTG so that channel do not have transfer functionality. step1:使用OriginateAction呼叫的一方,不传递像tTG这样的拨号选项,因此该通道没有转移功能。

step2: B party Calling using dail() method where I am passing dailoptions like tTG .第 2 步:B 方使用dail()方法进行呼叫,其中我正在传递tTG之类的 dailoptions。

OriginateAction originateAction = new OriginateAction();
    originateAction.setChannel(ivrChannelStr);
    originateAction.setContext(DEFAULT_CALL_CONTEXT);
    originateAction.setExten("s");
    originateAction.setPriority(priority);
    originateAction.setTimeout(timeout);
    originateAction.setCallerId(processedCLI)
try {
        asteriskManagerService.sendAction(originateAction);
        logger.debug("asterisk call originated");
    } catch (Exception e) {
        if (callConnectListenersMap.contains(traceId)) {
            logger.warn("Throwing exception for traceID = {}", traceId);
            throw e;
        }
    }

What I want to acheive is我想要实现的是

step1: A party Calling using OriginateAction and want to pass dial options like tTG so channel can do transfer functionality步骤 1:使用OriginateAction呼叫的一方并希望传递像tTG这样的拨号选项,因此通道可以执行传输功能

step2: same as above step2:同上

So how should I pass tTG in OriginateAction ?那么我应该如何在OriginateAction中传递tTG呢?

You can do any options by using Local/ type channel.您可以使用本地/类型通道来执行任何选项。

https://www.voip-info.org/asterisk-local-channels/ https://www.voip-info.org/asterisk-local-channels/

Ie originate to Local/number@out and make in out context any dial command you want with any params.即源自 Local/number@out 并在上下文中使用任何参数制作您想要的任何拨号命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM