Grandstream UCM6100 Series IP PBX Appliance CDR API Guide User Manual
Page 13

UCM6100 Series CDR and REC API Guide
Page 12 of 17
Query 5: Request all records during July 2013 Central Standard Time, 200 at a time, with results in CSV
format.
https://192.168.254.200:8088/cdrapi?startTime=2013-07-01T00:00:00-06:00&endTime=2013-07-31T23:59:59-
06:00&numRecords=200&offset=0
-THEN-
https://192.168.254.200:8088/cdrapi?sstartTime=2013-07-01T00:00:00-06:00&endTime=2013-07-31T23:59:59-
06:00&numRecords=200&offset=200
-THEN-
https://192.168.254.200:8088/cdrapi?startTime=2013-07-01T00:00:00-06:00&endTime=2013-07-31T23:59:59-
06:00&numRecords=200&offset=400
Note:
Disallowed characters in the caller, callee, startTime, or endTime strings, and non-digit characters
in the values of numRecords, offset, minDur, or maxDur, will result in no records returned - the
appropriate container/header for the output format will be the only output. If the format parameter
is in error, the CSV header will be used. Error messages will appear in the Asterisk log (along with
errors stemming from failed database connections, etc.).
Other errors which return no records include:
- Multiple hyphens in an extension range (e.g. caller=5300-5301-,6300)
- Empty parameter value (e.g. caller=)
- Extension values starting with comma, or with consecutive commas (e.g. caller=5300,,5303)
- Unknown parameters (e.g. caler=5300) or URI ending with '&'
- Except for caller and callee, multiple instances of the same parameter within the URI (e.g.
minDur=5&minDur=10)