If thats the case, you should double check that and if you can confirm it post a bug to the issue tracker. Make sure its not just the header your sending via the http request for the blob from the adobe flash player.<br><br>
<div class="gmail_quote">On Thu, Nov 26, 2009 at 9:53 AM, Nir Simionovich <span dir="ltr"><<a href="mailto:nir.simionovich@gmail.com">nir.simionovich@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Kai,<br>
<br>
that's exactly it, when writing to a file, the file is perfectly a<br>
valid WAV. When the ODBC storage engine is used,<br>
the BLOB object created isn't a valid WAV object.<br>
<br>
Nir<br>
<br>
Kai Hörner wrote:<br>
> Hi,<br>
><br>
> i was just asking, because i used some flash media player once to<br>
> playback asterisk voicemails .. and it worked fine.<br>
><br>
> this was in times of asterisk 1.2 though, but i'm unable to believe<br>
> that PCM support has been broken over time.<br>
><br>
> i guess some of the core developers would have answered "there already<br>
> is proper WAV support in asterisk", but they're all on thanksgiving<br>
> holidays.<br>
><br>
> I believe the problem is somewhere on the flash side. (or database, or<br>
> you rest application)<br>
><br>
> you can try the following to confirm what i'm saying:<br>
> - define a test mailbox that is written to disk using wav/wav49<br>
> - record one voicemail for testing<br>
> - playback this wav file with one of the plenty free flash media players<br>
><br>
> can you write voicemails to disk and ODBC?<br>
> that would allow you to compare the data.<br>
><br>
><br>
> HTH,<br>
><br>
> Kaii<br>
><br>
><br>
><br>
> Nir Simionovich schrieb:<br>
<div><div></div><div class="h5">>> Oh yes, of course - been there, done that.<br>
>><br>
>> Nir S<br>
>><br>
>> Kai Hoerner wrote:<br>
>><br>
>>> Hello Nir,<br>
>>><br>
>>> have you already tried replacing the format "WAV" with "wav49" in<br>
>>> voicemail config? (or vice versa)<br>
>>><br>
>>><br>
>>> Regards,<br>
>>><br>
>>> Kaii<br>
>>><br>
>>><br>
>>> Nir Simionovich schrieb:<br>
>>><br>
>>>> Hi all,<br>
>>>><br>
>>>> I've developed a REST based API that is capable of fully<br>
>>>> integrating with the ODBC storage and management<br>
>>>> engine for app_voicemail. However, I've reached somewhat of an<br>
>>>> impass when trying to playback messages<br>
>>>> stored as BLOBs using a Flash Player.<br>
>>>><br>
>>>> In general, I gathered the the BLOB object stored in the database<br>
>>>> isn't a full WAV file format, and actually is<br>
>>>> a RAW ADPCM file, which is playable from a standard media player.<br>
>>>> However, the file in non-playable from<br>
>>>> an ADOBE based flash player - which requires a fully standard WAV<br>
>>>> file.<br>
>>>><br>
>>>> Questions that arise in this case are:<br>
>>>> 1. Is there a method to convert the stored BLOB to a valid WAV format?<br>
>>>> 2. Adding proper WAV support to Asterisk, is it feasible?<br>
>>>> 3. Is there an external method of converting from the RAW format to<br>
>>>> proper WAV? (tried SOX with no success).<br>
>>>><br>
>>>> I'm not an audiophile, so I'm kind'a of at a loss here.<br>
>>>><br>
>>>> Cheers,<br>
>>>> Nir S<br>
>>>><br>
<br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br>