我让呼叫者能够退出队列并留下语音邮件,但是,当发送到语音邮件TWiML时,它播放外播消息,但不播放哔哔声或记录,它只是挂断。我看到控制台中没有错误。
如果我将此页面设置为语音答案页面,则按预期工作。我失去了理智!
answer.asp:
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
<Say voice="woman">Thank you for calling . </Say>
<Say voice="woman">No notices</Say>
<Say voice="woman">Calls may be recorded for quality and training purposes.</Say>
<Say voice="woman">Please hold for a customer service representative. </Say>
<Enqueue method="GET" action=/voice/dequeue.asp" waitUrlMethod="GET" waitUrl="/voice/holdMusic.asp">CustomerService</Enqueue>
</Response>
进入保留队列并大约每20秒重新加载一次: holdmusic.asp
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather numDigits="1" action="/voice/quitHold.asp" method="GET">
<Say>You are number 1 of 1 in the queue. Expected hold time is under a minute. Press any key while on hold to leave a voicemail.</Say>
<Play>/voice/mp3s/quiet.mp3</Play>
</Gather>
<Redirect/>
</Response>
超过最长保留时间:
holdmusic.asp
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman">Unfortuantely, we are experiencing long hold times and we are transferring you to voicemail.</Say>
<Redirect method="GET">/voice/quitHold.asp</Redirect>
</Response>
quithold.asp:
<?xml version="1.0" encoding="UTF-8" ?>
<Response>
<Say voice="woman">You are leaving the hold queue and going to voicemail</Say>
<Say voice="woman">Please ree cord a message and we will return your call shortly. If you are calling after hours, we will return your call the next business day. </Say>
<Record finishOnKey="*" method="GET" action="/voice/hangup.asp" maxLength="60" playBeep="true" transcribe="true" transcribeCallback="/voice/transcribe.asp" recordingStatusCallbackMethod="GET" recordingStatusCallback="/voice/voicemail.asp" trim="trim-silence" />
<Hangup/>
</Response>