EncodeAndGet

Description

Download a specified Voicemail message. The voicemails 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 Voicemail. This can be retrieved from NoveroCDR::GetCDRs

Request

<?xml version="1.0"?>
<NoveroRequest>
    <Request target="NoveroVoicemails" name="EncodeAndGet" id="TestRequest">
        <CDRUID>12345678</CDRUID>
    </Request>
</NoveroRequest>
<?php
    require_once('TTNCApi.php');
    $Api = new TTNCApi('<username>', '<password>', '<VKey>');
    $Request = $Api->NewRequest('NoveroVoicemails', 'EncodeAndGet', 'TestRequest');
    $Request->SetData('CDRUID', '12345678');
    $Api->MakeRequests();
    $Response = $Api->GetResponseFromId('TestRequest');
?>
require TTNCApi
api = TTNCApi.new('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroVoicemails', 'EncodeAndGet', 'TestRequest')
request.setdata('CDRUID', '12345678')
api.makerequest()
p request.getresponse()
api = TTNCApi('<username>', '<password>', '<vkey>')
request = api.newrequest('NoveroVoicemails', 'EncodeAndGet', 'TestRequest')
request.setdata('CDRUID', '12345678')
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("NoveroVoicemails", "EncodeAndGet", "TestRequest");
        request.setData("CDRUID", "12345678");
        api.MakeRequests();
        TTNCParser dic = request.GetResponse();
     }
}

Response

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