---title: sidebar_position: 100---import Tabs from @theme/Tabs;import TabItem from @theme/TabItem;An example that redirects the next XML instruction to another call: xml https://www.your-application.com/next-instructions javascriptconst { RestClient } = require(@signalwire/compatibility-api);const response = new RestClient.LaML.VoiceResponse();response.redirect(https://www.your-application.com/next-instructions);console.log(response.toString()); phpredirect(https://www.your-application.com/next-instructions); echo $response;?> csharpusing Twilio.TwiML;using Twilio.Http;using System;class Example{ static void Main() { var response = new VoiceResponse(); response.Redirect(new Uri(https://www.your-application.com/next-instructions)); Console.WriteLine(response.ToString());; }} pythonfrom signalwire.voice_response import VoiceResponse, Redirectresponse = VoiceResponse()response.redirect(https://www.your-application.com/next-instructions)print(response) rubyrequire signalwire/sdkresponse = Signalwire::Sdk::VoiceResponse.new do |response| response.redirect(https://www.your-application.com/next-instructions)endputs response.to_s The verb transfers control from the current call to another. It is effectively an exit statement from the current call, as there is no way to return to any instructions listed after the verb.## Verb AttributesThe following attribute is available for the verb :| Attribute | || ------------------------------------------------------: | ---------------------------------------------------------------------------------------------------------------- || method optional | Specifies whether the redirect is a GET
or a POST
. Default value is POST
. |## NounsThe following item is accepted as a noun for the <Redirect>
verb:| Noun | || -----------: | ----------------------------------------------- || plain text | The URL, in plain text, of the call to execute. |## NestingNo other verbs can be nested within and you cannot nest within any other verbs.## Examples### Redirect to absolute URL xml 310-123-0000 http://www.your-application.com/next-instructions javascriptconst { RestClient } = require(@signalwire/compatibility-api);const response = new RestClient.LaML.VoiceResponse();response.dial(310-123-0000);response.redirect(http://www.your-application.com/next-instructions);console.log(response.toString()); phpdial(310-123-0000); $response->redirect(http://www.your-application.com/next-instructions); echo $response;?> csharpusing Twilio.TwiML;using System;class Example{ static void Main() { var response = new VoiceResponse(); response.Dial(310-123-0000); response.Redirect(new Uri(http://www.your-application.com/next-instructions)); Console.WriteLine(response.ToString());; }} pythonfrom signalwire.voice_response import VoiceResponse, Dial, Redirectresponse = VoiceResponse()response.dial(310-123-0000)response.redirect(http://www.your-application.com/next-instructions)print(response) rubyrequire signalwire/sdkresponse = Signalwire::Sdk::VoiceResponse.new do |response| response.dial(number: 310-123-0000) response.redirect(https://www.your-application.com/next-instructions)endputs response.to_s SignalWire makes a request after the number has been dialed and transfers the call to the XML received through the request.