def response_params
      params = {
        "to" => to,
        "channel" => channel,
        "network" => network
      }
      params.merge!("from" => from) if from
      params.merge!("timeout" => timeout) if timeout
      params.merge!("answer_on_media" => answer_on_media) if answer_on_media
      params.merge!("headers" => headers) if headers
      params.merge!("recording" => recording) if recording
      params
    end
def response_params
      params = {
        "to" => to,
        "channel" => channel,
        "network" => network
      }
      params.merge!("from" => from) if from
      params.merge!("timeout" => timeout) if timeout
      params.merge!("answer_on_media" => answer_on_media) if answer_on_media
      params.merge!("headers" => headers) if headers
      params.merge!("recording" => recording) if recording
      params
    end
Generates a hash suitable for using to as input to:
 Tropo::Generator#message (see: http://github.com/voxeo/tropo-webapi-ruby)

 By default, "channel" => "TEXT" and "network" => "SMS"
 You can override these values and any other optional parameters by setting
 their values e.g. tropo_message.channel = "VOICE"

 Example:
   tropo_object = Tropo::Generator.parse(raw_json)

   tropo_object # => {
   #  "session" => {
   #    ...
   #    "parameters" => {
   #      "to" => "44122782474",
   #      "text" => "Hi+John%2C+how+r+u+today%3F",
   #      "my_favourite_food" => "Pizza"
   #    }
   #  }
   #}

   tropo_message = Tropo::Message.new(tropo_object)
   response_params = tropo_message.response_params # => {
   #  "to" => "44122782474",
   #  "channel" => "TEXT",
   #  "network" => "SMS"
   #}

   text = tropo_message.text

   Tropo::Generator.new.message(response_params) do
     say :value => text
   end