예제 #1
0
        /// <summary>
        /// The redirect function forwards an incoming call to another destination / phone number before answering it.
        /// The redirect function must be called before answer is called; redirect expects that a call be in the ringing or answering state.
        /// Use transfer when working with active answered calls.
        /// </summary>
        /// <param name="to">The SIP destination for the incoming call, as a URL.</param>
        /// <param name="name">Identifies the return value of a Redirect, so you know the context for the returned information.</param>
        /// <param name="required">Determines whether Tropo should move on to the next action.</param>
        public void Redirect(IEnumerable <String> to, string name, bool?required)
        {
            Redirect redirect = new Redirect();

            redirect.To       = to;
            redirect.Name     = name;
            redirect.Required = required;

            Serialize(redirect, "redirect");
        }
예제 #2
0
 /// <summary>
 /// Overload for Redirect that allow a Redirect object to be passed.
 /// </summary>
 /// <param name="redirect">A Redirect object.</param>
 public void Redirect(Redirect redirect)
 {
     Redirect(redirect.To, redirect.Name, redirect.Required);
 }
예제 #3
0
        /// <summary>
        /// The redirect function forwards an incoming call to another destination / phone number before answering it.
        /// The redirect function must be called before answer is called; redirect expects that a call be in the ringing or answering state.
        /// Use transfer when working with active answered calls. 
        /// </summary>
        /// <param name="to">The SIP destination for the incoming call, as a URL.</param>
        /// <param name="name">Identifies the return value of a Redirect, so you know the context for the returned information.</param>
        /// <param name="required">Determines whether Tropo should move on to the next action.</param>
        public void Redirect( IEnumerable<String> to, string name, bool? required)
        {
            Redirect redirect = new Redirect();
            redirect.To = to;
            redirect.Name = name;
            redirect.Required = required;

            Serialize(redirect, "redirect");
        }
예제 #4
0
 /// <summary>
 /// Overload for Redirect that allow a Redirect object to be passed.
 /// </summary>
 /// <param name="redirect">A Redirect object.</param>
 public void Redirect(Redirect redirect)
 {
     Redirect(redirect.To, redirect.Name, redirect.Required);
 }
예제 #5
0
 /// <summary>
 /// Overload for Redirect that allow a Redirect object to be passed.
 /// </summary>
 /// <param name="redirect">A Redirect object.</param>
 public void redirect(Redirect redirect)
 {
     this.redirect(redirect.to, redirect.name, redirect.required);
 }
예제 #6
0
        /// <summary>
        /// The redirect function forwards an incoming call to another destination / phone number before answering it.
        /// The redirect function must be called before answer is called; redirect expects that a call be in the ringing or answering state.
        /// Use transfer when working with active answered calls. 
        /// </summary>
        /// <param name="to">The SIP destination for the incoming call, as a URL.</param>
        /// <param name="name">Identifies the return value of a Redirect, so you know the context for the returned information.</param>
        /// <param name="required">Determines whether Tropo should move on to the next action.</param>
        public void redirect(ArrayList to, string name, bool? required)
        {
            Redirect redirect = new Redirect();
            redirect.to = to;
            redirect.name = name;
            redirect.required = required;

            serialize(redirect, "redirect");
        }