Gateways API

update values

PUT /api/rest/admin/gateways/:id

Parameters

Name Description
data[type] Resource type (gateways)
data[id] Gateway ID
data[attributes][name] Name
data[attributes][enabled] Enabled
data[attributes][priority] Priority
data[attributes][weight] Weight
data[attributes][acd-limit] Acd limit
data[attributes][asr-limit] Asr limit
data[attributes][allow-origination] Allow origination
data[attributes][allow-termination] Allow termination
data[attributes][sst-enabled] Sst enabled
data[attributes][host] Host
data[attributes][port] Port
data[attributes][resolve-ruri] Resolve ruri
data[attributes][diversion-domain] Diversion domain
data[attributes][diversion-rewrite-rule] Diversion rewrite rule
data[attributes][diversion-rewrite-result] Diversion rewrite result
data[attributes][src-name-rewrite-rule] Src name rewrite rule
data[attributes][src-name-rewrite-result] Src name rewrite result
data[attributes][src-rewrite-rule] Src rewrite rule
data[attributes][src-rewrite-result] Src rewrite result
data[attributes][dst-rewrite-rule] Dst rewrite rule
data[attributes][dst-rewrite-result] Dst rewrite result
data[attributes][auth-enabled] Auth enabled
data[attributes][auth-user] Auth user
data[attributes][auth-password] Auth password
data[attributes][auth-from-user] Auth from user
data[attributes][auth-from-domain] Auth from domain
data[attributes][term-use-outbound-proxy] Term use outbound proxy
data[attributes][term-force-outbound-proxy] Term force outbound proxy
data[attributes][term-outbound-proxy] Term outbound proxy
data[attributes][term-next-hop-for-replies] Term next hop for replies
data[attributes][term-next-hop] Term next hop
data[attributes][term-append-headers-req] Term append headers req
data[attributes][orig-append-headers-req] Orig append headers req
data[attributes][orig-append-headers-reply] Orig append headers reply
data[attributes][sdp-alines-filter-list] Sdp alines filter list
data[attributes][ringing-timeout] Ringing timeout
data[attributes][relay-options] Relay options
data[attributes][relay-reinvite] Relay reinvite
data[attributes][relay-hold] Relay hold
data[attributes][relay-prack] Relay prack
data[attributes][relay-update] Relay update
data[attributes][suppress-early-media] Suppress early media
data[attributes][fake-180-timer] Fake 180 timer
data[attributes][transit-headers-from-origination] Transit headers from origination
data[attributes][transit-headers-from-termination] Transit headers from termination
data[attributes][sip-interface-name] Sip interface name
data[attributes][allow-1xx-without-to-tag] Allow 1xx without to tag
data[attributes][sip-timer-b] Sip timer b
data[attributes][dns-srv-failover-timer] Dns srv failover timer
data[attributes][proxy-media] Proxy media
data[attributes][single-codec-in-200ok] Single codec in 200ok
data[attributes][force-symmetric-rtp] Force symmetric rtp
data[attributes][symmetric-rtp-nonstop] Symmetric rtp nonstop
data[attributes][force-dtmf-relay] Force dtmf relay
data[attributes][rtp-ping] Rtp ping
data[attributes][rtp-timeout] Rtp timeout
data[attributes][filter-noaudio-streams] Filter noaudio streams
data[attributes][rtp-relay-timestamp-aligning] Rtp relay timestamp aligning
data[attributes][rtp-force-relay-cn] Rtp force relay cn
data[attributes][sip-schema-id] Sip schema id
data[attributes][preserve-anonymous-from-domain] Preserve anonymous from domain
data[attributes][registered-aor-mode-id] Registered aor mode id
data[attributes][origination-capacity] Origination capacity
data[attributes][termination-capacity] Termination capacity
data[attributes][incoming-auth-username] Incoming auth username
data[attributes][incoming-auth-password] Incoming auth password
data[attributes][force-cancel-routeset] Force cancel routeset

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTcsInN1YiI6MTMyfQ.ufryE7XTxHx7Hmc56cF3Gcqr2mGUh2cX1XE5QOq-AwY
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/gateways/26

Body

{"data":{"type":"gateways","id":26,"attributes":{"name":"name","acd-limit":1.0}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"3a564759ad14461d58c8be2ef642f3de"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f451ea5f-6d89-4eb8-adea-7c61f807b0ad
X-Runtime: 0.053844
Content-Length: 7080

Status

200 OK

Body

{
  "data": {
    "id": "26",
    "type": "gateways",
    "links": {
      "self": "http://example.org/api/rest/admin/gateways/26"
    },
    "attributes": {
      "name": "name",
      "enabled": true,
      "priority": 122,
      "weight": 220,
      "acd-limit": 1.0,
      "asr-limit": 0.0,
      "allow-origination": true,
      "allow-termination": true,
      "sst-enabled": false,
      "host": "test.example.com",
      "port": null,
      "resolve-ruri": false,
      "diversion-domain": null,
      "diversion-rewrite-rule": null,
      "diversion-rewrite-result": null,
      "src-name-rewrite-rule": null,
      "src-name-rewrite-result": null,
      "src-rewrite-rule": null,
      "src-rewrite-result": null,
      "dst-rewrite-rule": null,
      "dst-rewrite-result": null,
      "auth-enabled": false,
      "auth-user": null,
      "auth-password": null,
      "auth-from-user": null,
      "auth-from-domain": null,
      "term-use-outbound-proxy": false,
      "term-force-outbound-proxy": false,
      "term-outbound-proxy": null,
      "term-next-hop-for-replies": false,
      "term-next-hop": null,
      "term-append-headers-req": [

      ],
      "orig-append-headers-req": [

      ],
      "orig-append-headers-reply": [

      ],
      "sdp-alines-filter-list": null,
      "ringing-timeout": null,
      "relay-options": false,
      "relay-reinvite": false,
      "relay-hold": false,
      "relay-prack": false,
      "relay-update": false,
      "suppress-early-media": false,
      "fake-180-timer": null,
      "transit-headers-from-origination": null,
      "transit-headers-from-termination": null,
      "sip-interface-name": null,
      "allow-1xx-without-to-tag": false,
      "sip-timer-b": 8000,
      "dns-srv-failover-timer": 2000,
      "proxy-media": true,
      "single-codec-in-200ok": false,
      "force-symmetric-rtp": true,
      "symmetric-rtp-nonstop": false,
      "force-dtmf-relay": false,
      "rtp-ping": false,
      "rtp-timeout": 30,
      "filter-noaudio-streams": false,
      "rtp-relay-timestamp-aligning": false,
      "rtp-force-relay-cn": true,
      "preserve-anonymous-from-domain": false,
      "registered-aor-mode-id": 1,
      "incoming-auth-username": null,
      "incoming-auth-password": null,
      "origination-capacity": 1,
      "termination-capacity": 1,
      "force-cancel-routeset": false,
      "sip-schema-id": 1
    },
    "relationships": {
      "contractor": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/contractor",
          "related": "http://example.org/api/rest/admin/gateways/26/contractor"
        },
        "data": {
          "type": "contractors",
          "id": "87"
        }
      },
      "session-refresh-method": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/session-refresh-method",
          "related": "http://example.org/api/rest/admin/gateways/26/session-refresh-method"
        },
        "data": {
          "type": "session-refresh-methods",
          "id": "1"
        }
      },
      "sdp-alines-filter-type": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/sdp-alines-filter-type",
          "related": "http://example.org/api/rest/admin/gateways/26/sdp-alines-filter-type"
        },
        "data": {
          "type": "filter-types",
          "id": "0"
        }
      },
      "term-disconnect-policy": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/term-disconnect-policy",
          "related": "http://example.org/api/rest/admin/gateways/26/term-disconnect-policy"
        },
        "data": null
      },
      "orig-disconnect-policy": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/orig-disconnect-policy",
          "related": "http://example.org/api/rest/admin/gateways/26/orig-disconnect-policy"
        },
        "data": null
      },
      "gateway-group": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/gateway-group",
          "related": "http://example.org/api/rest/admin/gateways/26/gateway-group"
        },
        "data": null
      },
      "diversion-send-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/diversion-send-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/diversion-send-mode"
        },
        "data": {
          "type": "gateway-diversion-send-modes",
          "id": "1"
        }
      },
      "pop": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/pop",
          "related": "http://example.org/api/rest/admin/gateways/26/pop"
        },
        "data": null
      },
      "codec-group": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/codec-group",
          "related": "http://example.org/api/rest/admin/gateways/26/codec-group"
        },
        "data": {
          "type": "codec-groups",
          "id": "1"
        }
      },
      "sdp-c-location": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/sdp-c-location",
          "related": "http://example.org/api/rest/admin/gateways/26/sdp-c-location"
        },
        "data": {
          "type": "sdp-c-locations",
          "id": "2"
        }
      },
      "sensor": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/sensor",
          "related": "http://example.org/api/rest/admin/gateways/26/sensor"
        },
        "data": null
      },
      "sensor-level": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/sensor-level",
          "related": "http://example.org/api/rest/admin/gateways/26/sensor-level"
        },
        "data": {
          "type": "sensor-levels",
          "id": "1"
        }
      },
      "dtmf-receive-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/dtmf-receive-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/dtmf-receive-mode"
        },
        "data": {
          "type": "dtmf-receive-modes",
          "id": "1"
        }
      },
      "dtmf-send-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/dtmf-send-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/dtmf-send-mode"
        },
        "data": {
          "type": "dtmf-send-modes",
          "id": "1"
        }
      },
      "transport-protocol": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/transport-protocol",
          "related": "http://example.org/api/rest/admin/gateways/26/transport-protocol"
        },
        "data": {
          "type": "transport-protocols",
          "id": "1"
        }
      },
      "term-proxy-transport-protocol": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/term-proxy-transport-protocol",
          "related": "http://example.org/api/rest/admin/gateways/26/term-proxy-transport-protocol"
        },
        "data": {
          "type": "transport-protocols",
          "id": "1"
        }
      },
      "orig-proxy-transport-protocol": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/orig-proxy-transport-protocol",
          "related": "http://example.org/api/rest/admin/gateways/26/orig-proxy-transport-protocol"
        },
        "data": {
          "type": "transport-protocols",
          "id": "1"
        }
      },
      "rel100-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/rel100-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/rel100-mode"
        },
        "data": {
          "type": "gateway-rel100-modes",
          "id": "1"
        }
      },
      "rx-inband-dtmf-filtering-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/rx-inband-dtmf-filtering-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/rx-inband-dtmf-filtering-mode"
        },
        "data": {
          "type": "gateway-inband-dtmf-filtering-modes",
          "id": "1"
        }
      },
      "tx-inband-dtmf-filtering-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/tx-inband-dtmf-filtering-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/tx-inband-dtmf-filtering-mode"
        },
        "data": {
          "type": "gateway-inband-dtmf-filtering-modes",
          "id": "1"
        }
      },
      "network-protocol-priority": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/network-protocol-priority",
          "related": "http://example.org/api/rest/admin/gateways/26/network-protocol-priority"
        },
        "data": {
          "type": "gateway-network-protocol-priorities",
          "id": "1"
        }
      },
      "media-encryption-mode": {
        "links": {
          "self": "http://example.org/api/rest/admin/gateways/26/relationships/media-encryption-mode",
          "related": "http://example.org/api/rest/admin/gateways/26/media-encryption-mode"
        },
        "data": {
          "type": "gateway-media-encryption-modes",
          "id": "1"
        }
      }
    }
  }
}