Twilio在上一个谓词完成后异步更新资源

Twilio在上一个谓词完成后异步更新资源,twilio,sleep,twilio-api,thread-sleep,twilio-functions,Twilio,Sleep,Twilio Api,Thread Sleep,Twilio Functions,如何阻止异步更新调用完全中断调用?我想要response.Say(“让我想想。”)在异步调用之前完成,目前它只是停止Say()动词中间句 [HttpPost] public ActionResult Intermediate(string RecordingUrl) { recordingUrl = RecordingUrl; var response = new VoiceResponse(); response.Say(

如何阻止异步更新调用完全中断调用?我想要
response.Say(“让我想想。”)
在异步调用之前完成,目前它只是停止
Say()
动词中间句

    [HttpPost]
    public ActionResult Intermediate(string RecordingUrl)
    {
        recordingUrl = RecordingUrl;
        var response = new VoiceResponse();
        response.Say("Let me think about that.");
        //Asynchronously POST
        var call = CallResource.UpdateAsync(
            method: Twilio.Http.HttpMethod.Post,
            url: new Uri("http://123456789/voice/show"),
            pathSid: sessionIdentifier, fallbackUrl: new Uri("http://123456789/voice/Fallback"));
        return TwiML(response);
    }

这里是Twilio开发者福音传道者

与其用对API的请求来更新调用,为什么不直接使用。您可以通过以下方式在
之后实现重定向:

[HttpPost]
public ActionResult Intermediate(string RecordingUrl)
{
    recordingUrl = RecordingUrl;
    var response = new VoiceResponse();
    response.Say("Let me think about that.");
    response.Redirect(new Uri("http://123456789/voice/show"));
    return TwiML(response);
}
让我知道这是否有帮助