Twilio.TwilioRestClient.RedirectCallAsync C# (CSharp) Method

RedirectCallAsync() public method

Redirect a call in progress to a new TwiML URL. Makes a POST request to a Call Instance resource.
public RedirectCallAsync ( string callSid, string redirectUrl, string redirectMethod ) : IAsyncOperation
callSid string The Sid of the call to redirect
redirectUrl string The URL to redirect the call to.
redirectMethod string The HTTP method to use when requesting the redirectUrl
return IAsyncOperation
        public IAsyncOperation<Call> RedirectCallAsync(string callSid, string redirectUrl, string redirectMethod)
        {
            return (IAsyncOperation<Call>)AsyncInfo.Run((System.Threading.CancellationToken ct) => RedirectCallAsyncInternal(callSid, redirectUrl, redirectMethod));
        }
        private async Task<Call> RedirectCallAsyncInternal(string callSid, string redirectUrl, string redirectMethod)