예제 #1
0
        /// <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());
        }
예제 #2
0
        /// <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());
        }
예제 #3
0
 /// <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();
 }
예제 #4
0
 /// <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();
 }
예제 #5
0
 /// <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());
 }
예제 #6
0
 /// <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());
 }
예제 #7
0
        /// <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();
        }
예제 #8
0
        /// <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();
        }