EncodeAndGet

Description

Download a Call Recording. The recordings are WAVE audio, Microsoft PCM, 16 bit, mono and 8000 Hz. They are encapsulated XML CDATA and are base64 encoded.

Parameters

int CDRUIDThe unique identifier for the Call Data Record associated with the recorded call. This can be retrieved from NoveroCDR::GetCDRs

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="CallRecordings" name="EncodeAndGet" id="TestRequest">
        <CDRUID>1245123456</CDRUID>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('CallRecordings', 'EncodeAndGet', 'TestRequest');
    $Request->SetData('CDRUID', '1245123456');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('CallRecordings', 'EncodeAndGet', 'TestRequest')
request.setdata('CDRUID', '1245123456')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('CallRecordings', 'EncodeAndGet', 'TestRequest')
request.setdata('CDRUID', '1245123456')
api.makerequest()
p request.getresponse()
using System;
using TTNCApi;
 
class Program
{
    static void Main(string[] args)
    {
        TTNCApi api = new TTNCApi("<username>", "<password>", "<vkey>");
        TTNCRequest request = api.NewRequest("CallRecordings", "EncodeAndGet", "TestRequest");
        request.setData("CDRUID", "1245123456");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

<?xml version="1.0"?>
<NoveroResponse>
    <Response target="CallRecordings" name="EncodeAndGet" Code="200" RequestId="TestRequest">
        <Recording><![CDATA[ *Call Recording Audio Data*  ]]></Recording>
    </Response>
</NoveroResponse>