GET (Getting the Domain CDR's List of details)
GET
1) Info of the entire list of Domain's extension level CDR values and their unique IDs
rest/domain/domain_name/cdrs
Parameters
Field | Type | Description |
---|---|---|
domain_name | String | Name of the existing domain. |
User | Integer | Extension number. |
Page | Integer | Page number of which details are requested. |
Size | Integer | Size of list per page |
Success (200 OK)
Example:
Request:
curl -u admin:password 'http://192.168.1.194:8080/rest/domain/localhost/cdrs?page=1&size=50&user=43'
[ {"id":7391, "call_id":"271c72fb@pbx", "from":"\"Classroom C\" <sip:444@localhost>", "to":"\"Awesome Day\" <sip:442@localhost>", "start":"1556560401.548", "connect":"1556560401.552", "end":"1556560414.611", "pcap":false, "extensions":[1279], "trunks":[] }, {"id":7383, "call_id":"313535363238363932303338363631-b71c6vhalr28", "from":"\"Classroom C\" <sip:444@localhost>", "to":"\"Brolin\" <sip:440@localhost>", "start":"1556286921.397", "connect":"1556286921.399", "end":"1556286922.347", "pcap":false, "extensions":[1279], "trunks":[] }, {"id":7382, "call_id":"313535363238363333353238343831-mhcre8atlrwj", "from":"\"Classroom C\" <sip:444@localhost>", "to":"\"Brolin\" <sip:440@localhost>", "start":"1556286336.287", "connect":"1556286336.293", "end":"1556286337.829", "pcap":false, "extensions":[1279], "trunks":[] }, {"id":7380, "call_id":"313535363238363130313539393239-pee7edzenzav", "from":"\"Classroom C\" <sip:444@localhost>", "to":"\"Brolin\" <sip:440@localhost>", "start":"1556286102.765", "connect":"1556286102.771", "end":"1556286104.610", "pcap":false, "extensions":[1279], "trunks":[] }
2) Info of the entire list of Domain's extension level CDR values and their unique IDs according to the dates
rest/domain/domain_name/cdrs?start=START_DATE&end=END_DATE&callid=EXT_NUM&size=INT&page=INT
Parameters
Field | Type | Description |
---|---|---|
domain_name | String | Name of the existing domain. |
Callid | Integer | Extension number. |
Page | Integer | Page number of which details are requested. |
Size | Integer | Size of list per page |
Start | Integer | Start date of the CDR search |
End | Integer | End date of the CDR search |
Success (200 OK)
Example:
Request:
curl -u admin: 'http://192.168.1.113/rest/domain/localhost/cdrs?start=20181127&end=20190205&callid=440&size=25&page=1'
[ {"id":7390, "call_id":"2c2ac35c2931-q0laacpnaimi", "from":"\"Brolin\" <sip:440@localhost>", "to":"\"Awesome Day\" <sip:442@localhost>", "start":"1556294193.434", "connect":"1556294197.492", "end":"1556294253.374", "pcap":true,"extensions":[1276,1278], "trunks":[] }, { "id":7389, "call_id":"3a2ac35cfd12-fil8p83l3mym", "from":"\"Brolin\" <sip:440@localhost>", "to":"<sip:+18572772251@localhost>", "start":"1556294206.210", "connect":"1556294210.815", "end":"1556294252.416", "pcap":false, "extensions":[1276], "trunks":[144] } ]
This is the list for all the CDRs for a particular extension.