/// <summary> /// Simultaniously dial multiple phone numbers. The first of these calls to answer will be connected to the current caller, while the rest of the connection attempts are canceled. /// </summary> /// <param name="numbers">An array of phone numbers to dial</param> /// <returns></returns> public TwilioResponse DialSip(IEnumerable <Twilio.TwiML.Uri> uris) { BeginDial(); var sip = new Sip(); Current.Push(sip); foreach (var uri in uris) { Add(uri); } Add(Current.Pop()); return(EndDial()); }
/// <summary> /// Simultaniously dial multiple phone numbers. The first of these calls to answer will be connected to the current caller, while the rest of the connection attempts are canceled. /// </summary> /// <param name="addresses">An array of phone numbers to dial</param> /// <returns></returns> public TwilioResponse DialSip(params string[] addresses) { BeginDial(); var sip = new Sip(); Current.Push(sip); foreach (var number in addresses) { Add(new Twilio.TwiML.Uri(number)); } Add(Current.Pop()); return(EndDial()); }
/// <summary> /// Connects the current caller to a SIP address /// </summary> /// <param name="sip">The SIP endpoint to dial</param> /// <param name="dialAttributes"></param> /// <returns></returns> public TwilioResponse Dial(Sip sip, object dialAttributes) { BeginDial(dialAttributes); Add(sip); return EndDial(); }
/// <summary> /// Connects the current caller to a SIP address /// </summary> /// <param name="sip">The SIP endpoint to dial</param> /// <returns></returns> public TwilioResponse Dial(Sip sip) { BeginDial(); Add(sip); return EndDial(); }
/// <summary> /// Connects the current caller to a SIP address /// </summary> /// <param name="sip">The SIP endpoint to dial</param> /// <param name="dialAttributes"></param> /// <returns></returns> public TwilioResponse Dial(Sip sip, object dialAttributes) { BeginDial(dialAttributes); Add(sip); return(EndDial()); }
/// <summary> /// Connects the current caller to a SIP address /// </summary> /// <param name="sip">The SIP endpoint to dial</param> /// <returns></returns> public TwilioResponse Dial(Sip sip) { BeginDial(); Add(sip); return(EndDial()); }
/// <summary> /// Simultaniously dial multiple phone numbers. The first of these calls to answer will be connected to the current caller, while the rest of the connection attempts are canceled. /// </summary> /// <param name="numbers">An array of phone numbers to dial</param> /// <returns></returns> public TwilioResponse DialSip(IEnumerable<Twilio.TwiML.Uri> uris) { BeginDial(); var sip = new Sip(); Current.Push(sip); foreach (var uri in uris) { Add(uri); } Add(Current.Pop()); return EndDial(); }
/// <summary> /// Simultaniously dial multiple phone numbers. The first of these calls to answer will be connected to the current caller, while the rest of the connection attempts are canceled. /// </summary> /// <param name="addresses">An array of phone numbers to dial</param> /// <returns></returns> public TwilioResponse DialSip(params string[] addresses) { BeginDial(); var sip = new Sip(); Current.Push(sip); foreach (var number in addresses) { Add(new Twilio.TwiML.Uri(number)); } Add(Current.Pop()); return EndDial(); }