lib/tropo-webapi-ruby/tropo-webapi-ruby.rb
##
# The redirect function forwards an incoming SIP call to another destination 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.
#
#
# @param [Hash] params the options to create a message with.
#   @option params [optional, String] :name this is the key used to identify the result of an operation, so you can differentiate between multiple results
#   @option params [optional, Boolean] :required (true) determines whether Tropo should move on to the next verb - if true, Tropo will only move on if the current operation completed
#   @option params [required, String] :to where to redirect the session to
# @return [String, nil] the JSON string to redirect the current session or nil
#   if the method has been called from inside a block
The redirect function forwards an incoming SIP call to another destination 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.
The redirect function forwards an incoming SIP call to another destination 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 .
def redirect(params={})
      hash = build_action('redirect', params)
      @response[:tropo] << hash
      render_response if @building.nil?
    end
def redirect ( params = { } ) hash = build_action ( 'redirect' , params ) @response [ :tropo ] << hash render_response if @building . nil? end
The redirect function forwards an incoming SIP call to another destination before answering it.
The redirect function forwards an incoming SIP call to another destination before answering it .
the JSON string to redirect the current session or nil if the method has been called from inside a block
the JSON string to redirect the current session or nil if the method has been called from inside a block
String, nil
params
params the options to create a message with. @option params [optional, String] :name this is the key used to identify the result of an operation, so you can differentiate between multiple results @option params [optional, Boolean] :required (true) determines whether Tropo should move on to the next verb - if true, Tropo will only move on if the current operation completed @option params [required, String] :to where to redirect the session to
params the options to create a message with . @option params [ optional String ] : name this is the key used to identify the result of an operation so you can differentiate between multiple results @option params [ optional Boolean ] : required ( true ) determines whether Tropo should move on to the next verb - if true Tropo will only move on if the current operation completed @option params [ required String ] : to where to redirect the session to