beautypg.com

Rec api, Access call recording files, Rec api url format – Grandstream UCM6100 Series IP PBX Appliance CDR API Guide User Manual

Page 16: Rec api url parameters, Rec api – access call recording files

background image

UCM6100 Series CDR and REC API Guide

Page 15 of 17

REC API – ACCESS CALL RECORDING FILES

REC API URL FORMAT

The format of the HTTPS request for the REC API is as below. This is used to request call recordings, or

a list of recording files within the Asterisk spool directories, matching given parameters as set by the third

party application.

https://[UCM IP]:[Port]/recapi?[option1]=[value]&[option2]=[value]&...

By default, the port number for the API is 8443.

REC API URL PARAMETERS

REC API takes two parameters: filedir and filename. Both parameters are optional, and the response

depends on which parameters are included in the request.

Case 1: Neither parameter is set.

Example Request:

https://192.168.254.200:8443/recapi

Response:

A CSV file listing all directories under ast_config_AST_SPOOL_DIR.

Case 2: Only filedir is set.

In this case, multiple file directories are supported, separated by '@'.

Example Request: