0

我有以下 TWIMlet:

<?php if ($_REQUEST['Digits'] == '1') { ?>
    <Play>ConnectingSupport.wav</Play>
    <Dial callerId="15559998888" action="Call_in.php">
        <Number url="screen_for_machine.php">
        +1555XXXXXXX
        </Number>
        <Number url="screen_for_machine.php">
        +1555YYYYYYY
        </Number>
    </Dial>

<?php } elseif ($_REQUEST['Digits'] == '2') { ?>
    <Play>ConnectingAssociate.wav</Play>
    <Dial callerId="18889990000" action="Call_in.php">
        <Number url="screen_for_machine.php">
        +1555YYYYYYY
        </Number>
        <Number url="screen_for_machine.php">
        +1555XXXXXXX
        </Number>
    </Dial>
<?php } elseif ($_REQUEST['Digits'] == '3') { ?>
    <Play>leavemessage.wav</Play>
    <Record maxLength="180" action="recording.php" />
<?php } ?>

一切都按预期工作,除非来电者在手机上键入 #2 时,只调用 1555YYYYYYY。而如果键入 #1,则两个数字(1555XXXXXXX 和 1555YYYYYYYY)会按预期同时调用。

我错过了什么?非常感谢您的帮助。

4

1 回答 1

0

使用上面的代码,如果一条线路直接进入语音信箱(即没有接收信号的手机),那就是接听电话。因此,第二行还没有机会响铃。

解决方案是将呼叫保持在队列中,然后呼叫每条线路并使用“语音邮件”检测。在此处查看详细信息

更多的编码让我做:) 这么久。

于 2014-05-01T07:00:25.627 回答