4.5 Decoding

Deprecated: The recording API has been replaced by the new Noojee API.

The recording API will no longer be supported post the release of 4.0

Decoding

When you retrieve a call recording via one fo the recording api methods the resulting file is a base 64 encoded wav file and must first be decoded before a media player can use the file.

There are several methods which can be used to decode the returned base 64 file into a wav file. The following provides references for a number of environments.

Linux command line

The following command worked to successfully decode a downloaded recording

base64 -d tmp.64 > tmp.wav

The required base64 decoder is available here http://www.fourmilab.ch/webtools/base64/

PHP

For php programmers you can use the base64_decode method to decode the resulting file:

http://php.net/manual/en/function.base64-decode.php

Java

For Java programmers you can use the Apache commons codec package:

http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html

 

https://127.0.0.1/rest/RecordingAPI/start?tag=1234&agentLoginName=Fred&timeStamp=1264853382&hash=45678905678956789678906789