Cache Status
Download OpenAPI specification:Download
REST API to manage fallback cache for SIPRec service and routing fallback configuration for mediaservice functions.
Base url: https://api.prod-eu-north-1.iotcomms.io/cache
The cache API provides access to the fallback functions for the SIPRec service and the Mediaservice. The API can be used to resolve situations where connectivity is lost between iotcomms.io platform and the customer. It allows the services to be executed based on the previously cached data.
/{domain}/ivrfallback/{number}
Query IVR fallback cache for configuration for a specific number
Authorizations:
path Parameters
domain required | string |
number required | string |
Responses
Response samples
- 200
{- "data": {
- "mode": "onError",
- "ttl": 0,
- "command": {
- "action": {
- "sipFrom": "string",
- "xHeaders": { },
- "sipDiversion": "string",
- "sipPAI": "string",
- "type": "call",
- "contactParameters": { },
- "sipTo": "string",
- "pHeaders": { },
- "copyHeaders": [
- "string"
], - "contactUserParameters": { },
- "sipRPID": "string",
- "destAddr": "string",
- "maxRingTime": 0
}, - "phrases": [
- {
- "fileName": "string",
- "format": "string",
- "cacheTimeToLive": "string",
- "googleTTSParameters": { },
- "refreshCache": true,
- "awsTTSParameters": { }
}
]
}
}, - "success": true
}
/{domain}/ivrfallback/{number}
Set IVR fallback configuration for a specific number
Authorizations:
path Parameters
domain required | string |
number required | string |
Request Body schema: application/jsonrequired
mode | string Enum: "onError" "always" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
expiration | string Default: "HALF-YEAR" When the fallback object should expire. This property can either be a string in which case it behaves as a period of days (enum listed below) or as a number in which case it behaves as a unix timestamp (in seconds).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (FallbackInstruction) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Request samples
- Payload
{- "mode": "onError",
- "expiration": "HALF-YEAR",
- "command": {
- "action": {
- "sipFrom": "string",
- "xHeaders": { },
- "sipDiversion": "string",
- "sipPAI": "string",
- "type": "call",
- "contactParameters": { },
- "sipTo": "string",
- "pHeaders": { },
- "copyHeaders": [
- "string"
], - "contactUserParameters": { },
- "sipRPID": "string",
- "destAddr": "string",
- "maxRingTime": 0
}, - "phrases": [
- {
- "fileName": "string",
- "format": "string",
- "cacheTimeToLive": "string",
- "googleTTSParameters": { },
- "refreshCache": true,
- "awsTTSParameters": { }
}
]
}
}
Response samples
- 200
{- "success": true
}