Class: DIDWW::Resource::VoiceOutTrunk

Inherits:
Base
  • Object
show all
Includes:
Callback::CONST
Defined in:
lib/didww/resource/voice_out_trunk.rb

Constant Summary collapse

ON_CLI_MISMATCH_ACTION_REJECT_CALL =
'Reject call'
ON_CLI_MISMATCH_ACTION_REPLACE_CLI =
'Replace CLI'
ON_CLI_MISMATCH_ACTION_SEND_ORIGINAL_CLI =
'Send Original CLI'
ON_CLI_MISMATCH_ACTIONS =
[
  ON_CLI_MISMATCH_ACTION_REJECT_CALL,
  ON_CLI_MISMATCH_ACTION_REPLACE_CLI,
  ON_CLI_MISMATCH_ACTION_SEND_ORIGINAL_CLI
].freeze
DEFAULT_DST_ACTION_ALLOW_CALLS =
'Allow Calls'
DEFAULT_DST_ACTION_REJECT_CALLS =
'Reject Calls'
DEFAULT_DST_ACTIONS =
[
  DEFAULT_DST_ACTION_ALLOW_CALLS,
  DEFAULT_DST_ACTION_REJECT_CALLS
].freeze
STATUS_ACTIVE =
'Active'
STATUS_BLOCKED =
'Blocked'
STATUSES =
[
  STATUS_ACTIVE,
  STATUS_BLOCKED
].freeze
MEDIA_ENCRYPTION_MODE_DISABLE =
'Disable'
MEDIA_ENCRYPTION_MODE_SRTP_SDES =
'SRTP SDES'
MEDIA_ENCRYPTION_MODE_SRTP_DTLS =
'SRTP DTLS'
MEDIA_ENCRYPTION_MODE_ZRTP =
'ZRTP'
MEDIA_ENCRYPTION_MODES =
[
  MEDIA_ENCRYPTION_MODE_DISABLE,
  MEDIA_ENCRYPTION_MODE_SRTP_SDES,
  MEDIA_ENCRYPTION_MODE_SRTP_DTLS,
  MEDIA_ENCRYPTION_MODE_ZRTP
].freeze

Constants included from Callback::CONST

Callback::CONST::CALLBACK_METHODS, Callback::CONST::CALLBACK_METHOD_GET, Callback::CONST::CALLBACK_METHOD_POST

Instance Method Summary collapse

Methods inherited from Base

#as_json_api

Instance Method Details

#regenerate_credentialsObject



68
69
70
71
72
# File 'lib/didww/resource/voice_out_trunk.rb', line 68

def regenerate_credentials
  resource = DIDWW::Resource::VoiceOutTrunkRegenerateCredential.new
  resource.relationships[:voice_out_trunk] = self
  resource.save
end