static void Main() { var response = new VoiceResponse(); response.Enqueue("support", waitUrl: "wait.xml"); response .Say("Unfortunately, the support line has closed. Please call again tomorrow."); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var connect = new Connect(); connect.Autopilot("UAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); response.Append(connect); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); response.Say("Our store is located at 123 Easy St."); response.Sms("Store Location: 123 Easy St.", action: "/smsHandler.php", method: "POST"); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(answerOnBridge: true, referUrl: new Uri("https://example.com/handler")); dial.Sip(new Uri("sip:[email protected]?User-to-User=123456789%3Bencoding%3Dhex&X-Name=Agent%2C+A")); response.Append(dial); Console.WriteLine(response.ToString()); }
/// <summary> /// Builds an instance. /// </summary> /// <returns>A new instance of the VoiceResponse</returns> public VoiceResponse Build() { var response = new VoiceResponse(); response.Say(this._question.Body); response.Say(QuestionTypeToMessage[this._question.Type]); this.AddRecordOrGatherCommands(response); return(response); }
static void Main() { var response = new VoiceResponse(); response.Dial("415-123-4567", action: new Uri("/handleDialCallStatus"), method: Twilio.Http.HttpMethod.Get); response.Say("I am unreachable"); Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Sip("sip:[email protected]?mycustomheader=foo&myotherheader=bar"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(callerId: "+15551112222"); dial.Number("+15558675309"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); response.Say("Our store is located at 123 Easy St."); response.Sms("Store Location: 123 Easy St.", statusCallback: new Uri("/smsHandler.php")); Console.WriteLine(response.ToString());; }
static void Main() { var response = new VoiceResponse(); var gather = new Gather(action: "/completed", input: "speech"); gather.Say("Welcome to Twilio, please tell us why you're calling"); response.Gather(gather); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var refer = new Refer(); refer.Sip(new Uri("sip:[email protected]?User-to-User=123456789%3Bencoding%3Dhex")); response.Append(refer); Console.WriteLine(response.ToString()); }
public void TestEmptyResponse() { var vr = new VoiceResponse(); Assert.AreEqual( vr.ToString(), "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + "<Response />" ); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Sip("sip:[email protected];transport=tcp"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var gather = new Gather(input: "speech dtmf", timeout: 3, numDigits: 1); gather.Say("Please press 1 or say sales for sales."); response.Gather(gather); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(record: "record-from-ringing"); dial.Sim("DE8caa2afb9d5279926619c458dc7098a8"); response.Append(dial); Console.WriteLine(response.ToString());; }
static void Main() { var response = new VoiceResponse(); var connect = new Connect(action: "https://myactionurl.com/"); connect.Room("meeting", statusCallback: "https://myactionurl.com/"); response.Append(connect); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); response.Dial("415-123-4567", action: "/handleDialCallStatus.php", method: "GET"); response.Say("I am unreachable"); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Conference("Room 1234"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Client("jenny"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var start = new Start(); start.Stream(name: "Example Audio Stream", url: "wss://mystream.ngrok.io/audiostream"); response.Append(start); Console.WriteLine(response.ToString()); }
public IActionResult PlayAll() { var allVoices = _voiceConfig.Mapping.Values.Aggregate((a, b) => a.Concat(b).ToList()).ToList(); var response = new VoiceResponse(); allVoices.ForEach(s => response.Play(GetVoiceUrl(s))); return(TwiML(response)); }
public IActionResult Index() { var response = new VoiceResponse(); response.Say("Thank you for calling! Have a great day."); Console.WriteLine("Response is: " + response); return(TwiML(response)); }
static void Main() { var response = new VoiceResponse(); var connect = new Connect(); connect.VirtualAgent(connectorName: "project", language: "fr"); response.Append(connect); Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Number("415-123-4567"); response.Append(dial); Console.WriteLine(response.ToString());; }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Conference("Customer Waiting Room", beep: "false"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Queue("support", url: "about_to_connect.xml"); response.Dial(dial); System.Console.WriteLine(response.ToString()); }
static void Main() { var response = new VoiceResponse(); response.Say("I will pause 10 seconds starting now!"); response.Pause(length: 10); response.Say("I just paused 10 seconds"); Console.WriteLine(response.ToString());; }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Conference("SimpleRoom", muted: true); response.Append(dial); Console.WriteLine(response.ToString()); }
public void TestEmptyElement() { var elem = new VoiceResponse(); Assert.AreEqual( "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + "<Response></Response>", elem.ToString() ); }
static void Main() { var response = new VoiceResponse(); var dial = new Dial(); dial.Sip(new Uri("sip:[email protected]")); response.Append(dial); Console.WriteLine(response.ToString()); }
public PlayerLine(string hint, float dur, Action finished) { if (hint == null) throw new UnityException ("JSON format error! Player input has no hint."); _hintText = hint; Duration = dur; _finished = finished; _hintMesh = GameObject.FindGameObjectWithTag ("Player").GetComponentInChildren<TextMesh>(); _voiceResponse = GameObject.FindGameObjectWithTag ("GameController").GetComponent<VoiceResponse> (); }
void Start() { //The voice response object is used to determine when the player is talking _voiceSystem = GameObject.FindGameObjectWithTag("GameController").GetComponent<VoiceResponse> (); if (_voiceSystem == null) throw new UnityException ("Game Controller has no VoiceResponse script attached to it!"); GetLinesFromJSON (); _NPCs = new List<GameObject> (); }