SIP TN Leases

AssignTNLeasesToSIPConnection

POST https://api.opentact.org/rest/sip/connection/{uuid}/tnlease

Assign TN Leases to SIP connection.

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

Content-Type

string

application/json

Request Body

Name
Type
Description

add

string

array of strings List of TNLease uuids to be assigned

remove

string

Array of strings List of TNLease uuids to be removed

{
  "success": true,
  "payload": [
    {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "tn": {},
      "account": {},
      "tnorder": {},
      "expired_on": "2019-08-24T14:15:22Z",
      "autorenew": true,
      "messaging_profile": {},
      "class4_product_item_id": 0,
      "sip_connection": {},
      "sip_control_app": {},
      "created_by": {},
      "modified_by": {}
    }
  ]
}

Code Example

curl -X POST "https://api.opentact.org/rest/sip/connection/66eb0a8a-571e-41b1-8f50-4d97275cfab7/tnlease" -H  "accept: application/json" -H  "X-Auth-Token: JWT_TOKEN" -H  "Content-Type: application/json" \
-d "{\"add\":[\"string\"],\"remove\":[\"string\"]}"

GETSIPConnectionTNLeasesList

GET https://api.opentact.org/rest/sip/connection/{uuid}/tnlease

Get SIP Connection assigned TNLease's

Path Parameters

Name
Type
Description

uuid

string

^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Headers

Name
Type
Description

X-Auth-Token

string

JWT_TOKEN

{
  "success": true,
  "payload": [
    {
      "created_on": "2019-08-24T14:15:22Z",
      "modified_on": "2019-08-24T14:15:22Z",
      "uuid": "string",
      "tn": {},
      "account": {},
      "tnorder": {},
      "expired_on": "2019-08-24T14:15:22Z",
      "autorenew": true,
      "messaging_profile": {},
      "class4_product_item_id": 0,
      "sip_connection": {},
      "sip_control_app": {},
      "created_by": {},
      "modified_by": {}
    }
  ]
}

Code Example

curl -X GET "https://api.opentact.org/rest/sip/connection/66eb0a8a-571e-41b1-8f50-4d97275cfab7/tnlease" \
-H  "accept: application/json" -H  "X-Auth-Token: JWT_TOKEN"

Last updated

Was this helpful?