To download the CDR files using REST queries, use the following command:

(This example downloads the CDR file with the extension .ACT)

curl -k -i --user admin:Sonus@123 -X GET 'https://xx.xx.xx.xxx/pm/api/Logs/downloadLog?type=eventLog&name=1000012.ACT'

To retrieve the CDR file list using REST queries, use the following command: 

curl -k -i --user admin:adminpw -X GET 'https://xx.xx.xx.xxx/pm/api/Logs/getLogList?type=eventLog'

….

{

    "aaData":

        [

            ["1000019.DBG", "07\/09\/2022", "12:45:27", true, true],

            ["100000F.AUD", "07\/09\/2022", "12:45:25", true, true],

            ["1000012.SYS", "07\/09\/2022", "12:45:17", true, true],

            ["1000020.MEM", "07\/09\/2022", "12:44:26", true, true],

            ["100000E.SEC", "07\/09\/2022", "12:39:28", true, true],

            ["1000018.DBG", "07\/07\/2022", "16:20:00", true, true],

            ["10000CE.ACT", "07\/07\/2022", "11:27:57", true, true],

            ["1000001.TRC", "07\/07\/2022", "11:27:53", true, true],

        ...

        ],

    "iTotalRecords": 283,

    "iTotalDisplayRecords": 283

}

  • No labels