[asterisk-users] Playback/background audio from MySQL BLOB

Jeff LaCoursiere jeff at jeff.net
Tue Sep 23 14:33:41 CDT 2014


On 09/23/2014 02:17 PM, Steve Edwards wrote:
> For some applications, storing recorded audio (prompts and caller 
> recordings) as a BLOB in MySQL has advantages.
>
> So, once I have the audio in the database, how can I play it?
>
> Creating temporary files seems so tacky.
>
> Is there another way to playback or background audio either by 
> specifying a URL or from a memory buffer (either C or PHP)?
>

How about a named pipe (fifo)?  Of course then you might have issues 
with simultaneous calls.  You would have to have a pool of them and 
somehow manage locking them...

j



More information about the asterisk-users mailing list