Class: Telnyx::Resources::UacConnections::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/uac_connections/actions.rb,
sig/telnyx/resources/uac_connections/actions.rbs

Overview

UAC connection operations

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Actions.



33
34
35
# File 'lib/telnyx/resources/uac_connections/actions.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#check_registration_status(id, request_options: {}) ⇒ Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse

Returns the live SIP registration status for a UAC connection. Reports whether the endpoint is currently registered (status) and the timestamp of the last SIP registration event (last_registration).



21
22
23
24
25
26
27
28
# File 'lib/telnyx/resources/uac_connections/actions.rb', line 21

def check_registration_status(id, params = {})
  @client.request(
    method: :post,
    path: ["uac_connections/%1$s/actions/check_registration_status", id],
    model: Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse,
    options: params[:request_options]
  )
end