Пример #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();
        }