app/models/drb_endpoint.rb
# Do not use instance variables in this class!
# If an instance variable is set,
# the next time this DrbEndpoint is invoked it will use the previous instance variable
# DRb is not thread safe!
Do not use instance variables in this class.
If an instance variable is set,
the next time this DrbEndpoint is invoked it will use the previous instance variable
DRb is not thread safe!
Do not use instance variables in this class . If an instance variable is set the next time this DrbEndpoint is invoked it will use the previous instance variable DRb is not thread safe!
def initiate_outbound_call!(call_json)
    logger.info("Receiving DRb request: #{call_json}")
    call_params = JSON.parse(call_json)
    call_variables = get_call_variables(call_params)
    call_args = [
      call_variables[:dial_string],
      {
        :from => call_variables[:caller_id],
        :controller => CallController,
        :controller_metadata => controller_metadata(call_variables)
      }
    ]
    if call_variables[:disable_originate].to_i != 1
      logger.info("Initiating outbound call with: #{call_args}")
      Adhearsion::OutboundCall.originate(*call_args).id
    end
  end
def initiate_outbound_call! ( call_json ) logger . info ( "Receiving DRb request: #{call_json}" ) call_params = JSON . parse ( call_json ) call_variables = get_call_variables ( call_params ) call_args = [ call_variables [ :dial_string ] , { :from => call_variables [ :caller_id ] , :controller => CallController , :controller_metadata => controller_metadata ( call_variables ) } ] if call_variables [ :disable_originate ] . to_i != 1 logger . info ( "Initiating outbound call with: #{call_args}" ) Adhearsion :: OutboundCall . originate ( * call_args ) . id end end
Do not use instance variables in this class!
Do not use instance variables in this class!
call_json
<not_specific>