ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #20554
Dekko && base64 encoded content
Hello,
The company I'm working for has a Cisco PBX and voice mail system, i.e.
the call, when I'm away, gets delivered to my mailbox as a WAVE audio
file of the following structure (I pulled it out from my mbox file):
From unityconnection@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Wed May 11 18:09:05 2016
Date: Wed, 11 May 2016 16:09:03 +0000
From: Cisco Unity Connection Messaging System
<unityconnection@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: <apitzm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Message-ID: <MAL.d4f990c7-a766-4ee1-90f3-fb922036@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
X-CiscoUnity-HandlerId: 744aba77-c7fe-4335-80a7-c5da9106bd89
X-CiscoUnity-CallerAni: 908945902470
X-CiscoUnity-CallerLang: ENU
Sensitivity: None
Subject: Message from Unknown sender (9089xxxxxxxxxxxxxxxx)
X-CiscoUnity-MessageType: SynchVoice
Content-Type: audio/wav; name="VoiceMessage.wav"
Content-Disposition: inline; filename="VoiceMessage.wav"; voice=Voice-Message
X-CiscoUnity-DbMessageId: 88392a04-24bf-4546-b3a3-46487518bf09
Content-Transfer-Encoding: base64
x-ciscounity-messageduration: 55430
x-CiscoUnity-SyncTime: 11-May-2016 16:09:08 +0000
Content-Class: urn:content-class:custom.Cisco.Unity.Voice
Keywords: ViewMail
MIME-Version: 1.0
Status: RO
Content-Length: 599113
Lines: 7781
UklGRmLEBgBXQVZFZm10IBIAAAAHAAEAQB8AAEAfAAABAAgAAABmYWN0BAAAADDEBgBkYXRhMMQG
AP///////////////////////////////////////////////////////////////35+fv39/X79
/X5+/f39fn5+fv39/X5+/f1+fn79fn5+/f1+/f1+fn5+/X79/f1+fn5+/X5+/X5+fn5+fn5+fn5+
/f39fn5+fv39/X79/X79fn5+fn5+fn5+fn5+fn79fn5+/f1+fn5+fn5+fn5+/f39/X79fn79/X79
....
Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7
Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7
Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7
Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7
O/7+/v7+/v7///////////////7+/v7+/////v/////////+/v7+///////+/v///////v7+/v7+
/v7+/v7+/v7+//7+//////////////7//////////////////////////////////////////v7+
/v7+/v7+/v/+//////7+/v///////////////////v7+///////+/v//////////////////////
/////35+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+
fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn4=
When is save the 7781 base64 encoded lines to a file 'b64' I can decode it
and play it fine with:
$ mmencode -u b64 -o b64.out
$ file b64.out
b64.out: RIFF (little-endian) data, WAVE audio, ITU G.711 mu-law, mono
8000 Hz
$ mplayer b64.out
MPlayer SVN-r37564-snapshot-3.7.1 (C) 2000-2015 MPlayer Team
Playing b64.out.
libavformat version 56.40.101 (internal)
Audio only file format detected.
So far so good. But Dekko was unwilling to do something with it, at
least I wanted to save it to a file and play it somehow.
Why?
(Dan, I could send you off-list the complete original mail as a gziped
file,; just contact me if you need it).
matthias
--
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/ ☎ +49-176-38902045
8 мая 1945: Спасибо, Советского Союза! -- May 8, 1945: Thank you, Soviet Union!
Follow ups