我想在更新他们在队列中的状态之前限制呼叫者听到的音乐量。
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>The average hold time is 15 seconds and you are in position 2.</Say>
<Gather timeout="30" action="http://someURL.com?nextStep=OptOut" method="GET" numDigits="1">
<Play>http://com.twilio.sounds.music.s3.amazonaws.com/BusyStrings.mp3</Play>
</Gather>
<Redirect method="GET">http://someURL.com?nextStep=Hold</Redirect>
</Response>
我正在播放的 AWESOME 音乐超过 30 秒。我希望它会在 Gather 中指定的 30 秒超时后下降到重定向,但它会播放整个 MP3,然后点击重定向。我知道我可以将 MP3 缩短到 30 秒,但我想要更灵活的东西。
谢谢并恭祝安康。