Get/voicemail/file

Function


The Voicemail/file method returns detailed information about  a particular voicemail file.


The returned response Include the following fields of information:


  • Name - the name the voicemail.
  • Data - the actual audio of the voicemail in asci text format, encoded in base64.
  • mimetype - the format of the audio file. This is always defined as "audio\/x-wav"

You can convert the data into actual audio with any online base64 to wav convertor, such as this one:


http://www.motobit.com/util/base64-decoder-encoder.asp


Choose "decode" and enter the output file as ".wav"


Parameters:


Parameter
Type
Operation
dir
string
The directory for which the messages will be listed, either INBOX or SENT
mailbox
string
Indicate the number for the mailbox from which you want to obtain the voicemail file from.
voicemail
string
The file name of the voicemail for which you want to obtain the audio data.

You get the file name from the get/voicemail method as explained here.


Example


To get the audio for a file "1500371176_15003711625275027_10142__9" from mailbox 1113840  use this syntax:


webserv.telebroad.com/api/teleconsole/rest/voicemail/file?dir=INBOX&file=voicemail_1500371176_15003711625275027_10142__9&&mailbox=1113840


Result:


Note that the data may be dozens of pages long. Shown here is a truncated version.


.

.

.

{

        error":null,

        "result":{"name":"voicemail_20170718054616.wav",
"data":"UklGRmQnAgBXQVZFZm10IBAAAAABAAEAQB8AAIA+AAACABAAZGF0YUAnAgAIAOj\/mP+o\/\/j\/SABYAEgASAA4AFgAWAAYAOj\/CAAYANj\/XP8c\/zz\/2P8oADgASACEAIQAKAAIAPj\/+P\/4\/+j\/CAA4ACgA2P+o\/5j\/yP8IABgACADY\/9j\/CAAYADgASAA4APj\/yP\/I\/\/j\/KABoAFgAKAAIANj\/uP\/I\/+j\/GAAYAPj\/6P8oADgACADo\/\/j\/GAD4\/6j\/qP\/I\/\/j\/KAB4AIQAeAA4AOj\/mP+I\/7j\/uP\/I\/wgASAAoAPj\/KABYADgACACo\/5j\/uP\/I\/7j\/2P8IAHgAhABYADgACADY\/6j\/6P9IAEgAKAAYAAgA6P\/I\/7j\/6P\/Y\/8j\/uP\/I\/\/j\/OACUAIQAKAD4\/xgA6P98\/1z\/iP\/o\/8j\/qP\/Y\/xgAWABoAGgAaACEAKQAeAAYAMj\/yP\/I\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AFgAOADo\/+j\/KABYAHgAWAAoAMj\/fP+o\/\/j\/+P\/Y\/9j\/yP\/Y\/xgACADY\/9j\/6P\/4\/ygAGAC4\/7j\/+P8oAEgAaAB4AEgACADo\/ygASAAIANj\/uP+Y\/8j\/OACUAGgAyP+Y\/wgASAD4\/5j\/iP\/I\/+j\/6P\/o\/\/j\/+P\/4\/\/j\/uP\/Y\/=",
        "mimetype":"audio\/x-wav"
    }

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.