Method: Plivo::Resources::CallInterface#update

Defined in:
lib/plivo/resources/calls.rb

#update(call_uuid, details) ⇒ Call

Transfer a call

Parameters:

  • call_uuid (String)
  • details (Hash)

Options Hash (details):

  • :legs (String)
    • aleg, bleg or both Defaults to aleg. aleg will transfer call_uuid ; bleg will transfer the bridged leg (if found) of call_uuid ; both will transfer call_uuid and bridged leg of call_uuid

  • :aleg_url (String)
    • URL to transfer for aleg, if legs is aleg or both, then aleg_url has to be specified.

  • :aleg_method (String)
    • HTTP method to invoke aleg_url. Defaults to POST.

  • :bleg_url (String)
    • URL to transfer for bridged leg, if legs is bleg or both, then bleg_url has to be specified.

  • :bleg_method (String)
    • HTTP method to invoke bleg_url. Defaults to POST.

Returns:



421
422
423
424
# File 'lib/plivo/resources/calls.rb', line 421

def update(call_uuid, details)
  valid_param?(:call_uuid, call_uuid, [String, Symbol], true)
  Call.new(@_client, resource_id: call_uuid).update(details)
end