Cdr Api Url Format And Parameters - Grandstream Networks UCM6510 Manual

Ip pbx appliance cdr report and cdr api
Hide thumbs Also See for UCM6510:
Table of Contents

Advertisement

CDR API URL FORMAT AND PARAMETERS

The format of the HTTPS request for the CDR API is as below.
https://[UCM IP]:[Port]/cdrapi?[option1]=[value]&[option2]=[value]&...
By default, the port number for the API is 8443.
The options included in the request URI control the record matching and output format. For CDR
matching parameters, all non-empty parameters must have a match to return a record. Parameters can
appear in the URI in any order. Multiple values given for caller or callee will be concatenated. The
following table shows the parameter list used in the CDR API.
Field
Value
format
csv, xml, json
numRecords
Number: 0-1000
offset
Number
Comma separated extensions,
ranges of extensions, or regular
caller
expressions.
Example:
caller=5300,5302-5304,_4@
-OR-
caller=5300&caller=5302-
callee
5304&caller=_4@
(Matches extensions 5300,
5302, 5303, 5304, and any
extension containing 4 as the
second digit/character).
Table 3: CDR API URI Parameters
Details
Define the format for output of matching CDR rows.
Default is csv (comma separated values).
Number of records to return. Default is 1000, which is
also the maximum allowed value.
Number of matching records to skip. This will be
combined with numRecords to receive all matches
over multiple responses. Default is 0.
Filters based on src (caller) or dst (callee) value,
matching any extension contained in the parameter
input string.
Patterns containing one or more wildcards ('@' or '_')
will match as a regular expression, and treat '-' as a
literal hyphen rather than a range signifier. The '@'
wildcard matches any number of characters (including
zero), while '_' matches any single character.
Otherwise, patterns containing a single hyphen will be
matching a range of numerical extensions, with non-
numerical
containing multiple hyphens will be ignored. (The
pattern "0-0" will match all non-numerical and empty
strings).
UCM6510 CDR Report and CDR API Guide
characters
ignored,
Page 9 of 13
while
patterns

Advertisement

Table of Contents
loading

Table of Contents