SingleCallByVideo
Calls a single phone number and plays a voice or video file.
Operation description
-
The 5G video call feature is available by invitation only. Contact your account manager to enable this feature.
-
After you initiate a call, you can also call the PlayVideoFile, PauseVideoFile, and ResumeVideoFile operations to play, pause, and resume the video during the call.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dyvms:SingleCallByVideo |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CalledShowNumber |
string |
No |
The outbound number for the video notification. This is the number displayed to the callee.
|
0571****5678 |
| CalledNumber |
string |
Yes |
The phone number that receives the video notification. The number must be in one of the following formats:
|
1590****000 |
| VoiceCode |
string |
Yes |
The voice ID of the voice notification file. Log on to the Voice Service console to obtain the voice ID from one of the following pages. The voice notification file must be approved.
|
17d37e58-2a09-419f-9b3d-e7e4b4****dd.wav |
| PlayTimes |
integer |
No |
The number of times the notification file is played. Valid values: 1 to 3. |
3 |
| Volume |
integer |
No |
The playback volume of the notification file. Valid values: 0 to 100. The default value is 100. |
100 |
| Speed |
integer |
No |
The playback speed of the voice file. Valid values: -500 to 500. |
100 |
| OutId |
string |
No |
A custom ID that you can specify when you initiate a request. This ID is returned to you in a receipt message. A string of 1 to 15 characters. |
abcdefgh |
| VideoCode |
string |
Yes |
The ID of the video notification file. You can view the IDs of approved video notification files on the Video Notification Files page. |
1120213841979436_20240621103****39_.mp4 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The request status code.
|
OK |
| Message |
string |
The description of the status code. |
OK |
| RequestId |
string |
The request ID. |
a78278ff-26bb-48ec-805c-26a0f4c102*** |
| CallId |
string |
The unique ID of the voice or video notification. You can use this parameter to call operations such as PlayVideoFile to play a video. You can configure receipt messages to obtain call records, intermediate call status messages, and recording records. |
116012354148^10281378**** |
Examples
Success response
JSON format
{
"Code": "OK",
"Message": "OK",
"RequestId": "a78278ff-26bb-48ec-805c-26a0f4c102***",
"CallId": "116012354148^10281378****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.