Record an Extension Voicemail Greeting

Record an extension voicemail greeting through placing a call to a specified extension.

Request URL

GET {base_url}/{api_path}/extension_vm_greeting/record?access_token={access_token}

Request parameters

Parameter Required Type Description
owner Yes String

The number of the extension to which the recorded voicemail greeting belongs.

Note: You can query the extension number using Search Specific Extensions.
recorder Yes String The number of the extension used to record the voicemail greeting.
Note: You can query the extension number using Search Specific Extensions.
file Yes String The filename of the voicemail greeting to be recorded.
Note: Only numbers, letters, and special characters _ - are allowed.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
owner String

The number of the extension to which the recorded voicemail greeting belongs.

Examples

Request example

Record a voicemail greeting (filename: vm_welcome) for the extension (number: 3200) through placing a call to a specified extension (number: 3201). The extension user can answer the call and record greeting.

GET /openapi/v1.0/extension_vm_greeting/record?access_token=EiFJV5toj0HLHgU2K1fxgN447k4G91PK&owner=3200&recorder=3201&file=vm_welcome HTTP/1.1 
Host: 192.168.5.150:8088
User-Agent: OpenAPI

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "owner": "3200"
}