This repository was archived by the owner on Aug 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
guides/voice/gather-dtmf-tones-guide Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public TwiMLResult Index()
1818 response . Gather ( numDigits : 1 )
1919 . Say ( "For sales, press 1. For support, press 2." ) ;
2020 // If the user doesn't enter input, loop
21- response . Redirect ( new Uri ( "/voice" ) ) ;
21+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
2222
2323 return TwiML ( response ) ;
2424 }
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ private static void RenderMainMenu(VoiceResponse response)
4545 . Say ( "For sales, press 1. For support, press 2." ) ;
4646
4747 // If the user doesn't enter input, loop
48- response . Redirect ( new Uri ( "/voice" ) ) ;
48+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
4949 }
5050}
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ public TwiMLResult Gather(VoiceRequest request)
2828 break ;
2929 default :
3030 response . Say ( "Sorry, I don't understand that choice." ) . Pause ( ) ;
31- response . Redirect ( new Uri ( "/voice" ) ) ;
31+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
3232 break ;
3333 }
3434 }
3535 else
3636 {
3737 // If no input was sent, redirect to the /voice route
38- response . Redirect ( new Uri ( "/voice" ) ) ;
38+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
3939 }
4040
4141 return TwiML ( response ) ;
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ public class VoiceController : TwilioController
1313 public TwiMLResult Index ( )
1414 {
1515 var response = new VoiceResponse ( ) ;
16- response . Gather ( numDigits : 1 , action : new Uri ( "/voice/gather" ) )
16+ response . Gather ( numDigits : 1 , action : new Uri ( "/voice/gather" , UriKind . Relative ) )
1717 . Say ( "For sales, press 1. For support, press 2." ) ;
1818
1919 // If the user doesn't enter input, loop
20- response . Redirect ( new Uri ( "/voice" ) ) ;
20+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
2121
2222 return TwiML ( response ) ;
2323 }
@@ -41,14 +41,14 @@ public TwiMLResult Gather(VoiceRequest request)
4141 break ;
4242 default :
4343 response . Say ( "Sorry, I don't understand that choice." ) . Pause ( ) ;
44- response . Redirect ( new Uri ( "/voice" ) ) ;
44+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
4545 break ;
4646 }
4747 }
4848 else
4949 {
5050 // If no input was sent, redirect to the /voice route
51- response . Redirect ( new Uri ( "/voice" ) ) ;
51+ response . Redirect ( new Uri ( "/voice" , UriKind . Relative ) ) ;
5252 }
5353
5454 return TwiML ( response ) ;
You can’t perform that action at this time.
0 commit comments