This method is used to manage ongoing, connected calls. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the Callback API documentation.
This method can only be used for calls that originate from or terminate to PSTN or SIP networks.
Array of objects (svaml.instruction) The collection of instructions that can perform various tasks during the call. You can include as many instructions as necessary. | |
object (svaml.action) The action that will control the call. Each SVAML object can only include one action. |
A success response, or an Error.
{- "instructions": [
- {
- "name": "sendDtmf",
- "value": "1234#"
}
], - "action": {
- "name": "hangup"
}
}
You can retrieve information about an ongoing or completed call using a call ID. You can find the call ID of an ongoing call by viewing the response object from a callout request. You can find the call ID of a completed call by looking at your call logs in your Sinch Dashboard.
Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
A success response, or an Error.
{- "from": {
- "type": "number",
- "endpoint": 12125550123
}, - "to": {
- "type": "number",
- "endpoint": 12125550123
}, - "domain": "pstn",
- "callId": "801a3ba3-1dbd-4daf-b0b3-46e1e1fb9f52",
- "duration": 60,
- "status": "ONGOING",
- "result": "ANSWERED",
- "reason": "N/A",
- "timestamp": "2023-04-21T14:45:51",
- "custom": "string",
- "userRate": {
- "currencyId": "string",
- "amount": 0.1
}, - "debit": {
- "currencyId": "string",
- "amount": 0.1
}
}
This method is used to manage ongoing, connected calls. This method is only used when using the PlayFiles
and Say
instructions in the request body. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the Callback API documentation.
Note: You can only use this method for calls that originate from or terminate to PSTN or SIP networks.
callId required | string The unique identifier of the call. This value is generated by the system. Example: 4398599d1ba84ef3bde0a82dfb61abed |
callLeg required | string Specifies which part of the call will be managed. This option is used only by the Example: caller |
Array of objects (svaml.instruction) The collection of instructions that can perform various tasks during the call. You can include as many instructions as necessary. | |
object (svaml.action) The action that will control the call. Each SVAML object can only include one action. |
A success response, or an Error.
{- "instructions": [
- {
- "name": "say",
- "text": "Hello, the call is over, hanging up now. Goodbye",
- "locale": "en-US"
}
], - "action": {
- "name": "hangup"
}
}
{- "content": "200 Successful response"
}