Play Prompt to Extension
Play a prompt to an extension user.
- The PBX system dials a specific extension number.
- The extension rings and the call gets picked up.
- The music will be played automatically.
Endpoint
POST /api/v1.1.0/extension/playprompt?token={token}
Request Parameters
Name | Importance | Type | Description |
---|---|---|---|
extid |
Required | Int | The extension number. |
prompt |
Required | String | Audio file name. Note:
For multiple audio files, separate the file names with Example: |
autoanswer |
Optional | String | Whether the extension will auto answer or not.
Note: This parameter requires the SIP phone to support. |
Response Parameters
Name | Type | Description |
---|---|---|
callid |
String | An unique identifier for the call. |
Examples
Request ExamplePlay one prompt:
POST /api/v1.1.0/extension/playprompt?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1 Content-Type:application/json; charset=utf-8 Host: 192.168.5.150 { "extid": "1000", "prompt": "hello111", "autoanswer": "no" }
Play a prompt list:
POST /api/v1.1.0/extension/playprompt?token=1e3b3ebb6a974cb42ed31de5413df52d HTTP/1.1 Content-Type:application/json; charset=utf-8 Host: 192.168.5.150 { "extid": "1000", "prompt": "1+queue1+queue2", "autoanswer": "no" }
HTTP/1.1 200 OK Access-control-allow-origin: * Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE { "status": "Success", "callid": "1495697869.171" }