Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REST API Method: POST /rest/relay

Page Tree
rootResource - relay

Modifies the digital (DS1) port pair relay on the Sonus SBC 1000/2000 system.

URL:

https://134.56.227.163/rest/relay

HTTP Method

POST

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
digitalRelayStateNoYesEnum0Possible values:
  • 0 - rcsOnline
  • 1 - rcsPassThru
  • 2 - rcsPowerdownPassThru
Configures the digital relay state
  • rcsOnline - each DS1 pair of ports are connected to the unit and capable of originating and terminating PSTN calls.
  • rcsPassThru - each DS1 part of ports are in pass through and not connected to the unit.
  • rcsPowerdownPassThru - each pair of ports is cross-connected when the unit's power is lost or powered off.
analogSysRelayNoYesEnum0Possible values:
  • 0 - rcsOnline
  • 1 - rcsPassThru
  • 2 - rcsPowerdownPassThru
Configures the digital relay state
  • rcsOnline - each Relay FXS and FXO port pairs are connected to the unit and capable of originating and terminating PSTN calls.
  • rcsPassThru - each Relay FXS and FXO port pairs are in pass through and not connected to the unit.

Tip
titleHelpful Tip

The POST can contain either only the attributes that are being updated, or the full set of attributes for the resource

Usage Example: (about cURL | requires a session token)

Code Block
languagebash
Put code example here

Response:

Code Block
languagehtml/xml
Put Code response here