Twilio 在未请求状态的情况下以进行中响应?
Twilio responds with in-progress without the status being requested?
我正在尝试解决一个问题,由于 Dial
动词,我们得到了 in-progress
呼叫状态,在这种情况下,只有在按下星号时才会出现。
但是,无论是否按下星号,都会调用该动作。在这种情况下,我们正在播放音乐,因此真正的呼叫是 in-progress
.
我认为只有通过回调请求它们才能获得这些额外的状态。
<Response>
<Say language="en-GB" voice="woman">Welcome person....</Say>
<Dial callerId="record-from-answer" record="record-from-answer" hangupOnStar="true"
action="http://ourserver/handler">
<Conference beep="false" startConferenceOnEnter="true" muted="false"
waitUrl="http://com.twilio.music.classical.s3.amazonaws.com/ClockworkWaltz.mp3"
waitMethod="GET">57354</Conference>
</Dial>
</Response>
在这种情况下,Twilio 间歇性地不响应传递给它的 Twiml,而是等到真正按下星号。我相信在某些情况下,调用状态必须是 completed
,然后处理正确的 Twiml。
此处的目标是仅在按下星号时才使用该操作?
Dial action fires when the dialed party hangs-up or is hung-up on or doesn't answer (which won't happen here since you dialing into a conference). So you will see the action URL fire, when * is pressed since you are using the dial attribute, hangupOnStar="true" BUT you will also see the action URL fire when the dial party manually disconnects from the conference (without pressing star). The DialCallStatus 提供了表盘的详细信息。
我不同意你的说法,"intermittently Twilio doesn't respond to the Twiml passed to it in this instance"。 TwiML 应该来自您的应用程序服务器,位于:http://ourserver/handler. You can look at the Twilio Request Inspector 以查看您的应用程序服务器可能不返回 TwiML 的原因。
我正在尝试解决一个问题,由于 Dial
动词,我们得到了 in-progress
呼叫状态,在这种情况下,只有在按下星号时才会出现。
但是,无论是否按下星号,都会调用该动作。在这种情况下,我们正在播放音乐,因此真正的呼叫是 in-progress
.
我认为只有通过回调请求它们才能获得这些额外的状态。
<Response>
<Say language="en-GB" voice="woman">Welcome person....</Say>
<Dial callerId="record-from-answer" record="record-from-answer" hangupOnStar="true"
action="http://ourserver/handler">
<Conference beep="false" startConferenceOnEnter="true" muted="false"
waitUrl="http://com.twilio.music.classical.s3.amazonaws.com/ClockworkWaltz.mp3"
waitMethod="GET">57354</Conference>
</Dial>
</Response>
在这种情况下,Twilio 间歇性地不响应传递给它的 Twiml,而是等到真正按下星号。我相信在某些情况下,调用状态必须是 completed
,然后处理正确的 Twiml。
此处的目标是仅在按下星号时才使用该操作?
Dial action fires when the dialed party hangs-up or is hung-up on or doesn't answer (which won't happen here since you dialing into a conference). So you will see the action URL fire, when * is pressed since you are using the dial attribute, hangupOnStar="true" BUT you will also see the action URL fire when the dial party manually disconnects from the conference (without pressing star). The DialCallStatus 提供了表盘的详细信息。
我不同意你的说法,"intermittently Twilio doesn't respond to the Twiml passed to it in this instance"。 TwiML 应该来自您的应用程序服务器,位于:http://ourserver/handler. You can look at the Twilio Request Inspector 以查看您的应用程序服务器可能不返回 TwiML 的原因。