c. API Status v5

 

CAMPAIGNS SUMMARY

 

Summary

Relative URL: Integra/resources/Supervisor/queuesummary

Method: POST content-type:application/x-www-form-urlencoded; charset=UTF-8

Result: JSON

 

CAMPAIGNS STATUS

 

Status

Relative URL: Integra/resources/Supervisor/campaignstatus

Method: POST content-type:application/x-www-form-urlencoded; charset=UTF-8

Params: queue (Example: CampTest2<-)

Result: JSON (Has different type of Objects, Campaigns, Agents and ACD Calls)

 

GET RECORDINGS

 

Recordings

Relative URL: Integra/resources/Cdr/getrecords

Method: POST content-type:application/x-www-form-urlencoded; charset=UTF-8

Params: lastrow (Last number of records for pagination, example 0 (will get you 50 recordings from 0-50), 50 (will get from 51-100))

filter (Json of the filter object)

Random: 1 (Always 1)

Result: JSON

JSON Object
{ "calldatei": "2015-12-03 00:00:00", //Initial date "calldatef": "2016-02-24 23:59:59", //Final date "agent": "", //Agent "campaign": "", //Campaign "source": "", //Source "destination": "", //Destination "data": "", //Data of the call Tag "range": "", //Hour range "rating": "", //Qualification "mindur": "", //Min duration "exclude": "", //Exclude number "type": "record" //Type of record alway the same ,"cont": "" //How many times at least we have this number in the range }

 

The recording could be in 4 different places:

 

https://TelephonyIP/records/guid.mp3 https://TelephonyIP/records/guid.mp3 https://BackupRecords/records/20160118/guid.mp3 https://BackupRecords/records/guid.mp3   Guid (Unique identifier found in JSON)  Example: 7e4e7db9-f080-494e-b04b-7c8e47711558

 

The folders are the date of the recording that is on the JSON string (calldate) without hypens or time.

This is done because if you are storing many million files the Operating System wont be able to manage them ok, that is why we store the recording per day in folders.

If you don't find the recording on any of this places the recording could be in gsm format you can do 2 things here:

 

  1. If your application is capable to reproduce GSM format then just replace mp3 with gsm and try to find them on the same 4 places.

  2. You can Convert the GSM to MP3 with a WebService.

 

 

CONVERT RECORDINGS

 

 

Then you will try again to find the MP3 file (you can reproduce the URL with HTML5 or any capable audio player).

 

https://TelephonyIP/records/guid.mp3 https://TelephonyIP/records/guid.mp3 https://BackupRecords/records/20160118/guid.mp3 https://BackupRecords/records/guid.mp3   Guid (Unique identifier found in JSON)  Example: 7e4e7db9-f080-494e-b04b-7c8e47711558