[asterisk-users] S3 Bucket support for playing sound files
Dovid Bender
dovid at telecurve.com
Thu May 6 15:27:10 CDT 2021
Jonathan,
How do you get around the authentication part? In my case I am using GSM
files so there are no issues there.
On Thu, May 6, 2021 at 4:11 AM Jonathan H <lardconcepts at gmail.com> wrote:
> I stream mp3s from s3 buckets all the time - but it's not Asterisk and s3
> that have the issue, it's the incredibly outdated mp3 player baked into
> Asterisk, which is from 1997 (see my original whinge about this below from
> last year) and gives all those annoying "junk" warnings, plays very
> quietly, and chokes on mp3 files with certain id3 tags (like embedded album
> art).
>
> At the moment, my workaround is to just grab the file and strip all id3
> tags and bumps up the outgoing volume to +7.
>
> I don't know why it's not been possible to update the mp3 library, but
> hopefully one way round it might be if Asterisk were to offer a way of
> using ControlPlayback etc with an external library?
>
> Good luck!
>
> ---------- Forwarded message ---------
> From: Jonathan H <lardconcepts at gmail.com>
> Date: Wed, 23 Dec 2020 at 09:33
> Subject: Re: [asterisk-users] Playing MP3's in Asterisk
> To: Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users at lists.digium.com>
>
>
> Hi all,
>
> Returning to the issue of mp3 support in Asterisk, it seems it is using a
> build from 1997?!
> http://svn.digium.com/svn/thirdparty/mp3/trunk/layer3.c
>
> I have the same problems as everyone with the mp3 add-on, but now a new
> one:
>
> - "mp3/interface.c: Junk at the beginning of frame 49443304" for ALL
> mp3 files, even when debug/verbose is off.
> - Very quiet playback compared to slin, so I have to control the
> outgoing volume by +7 for mp3 playback.
> - Now I find it chokes on mp3s which have a png cover art - this is
> perfectly valid in mp3 id3
>
> But I still need to use ControlPlayback from dialplan and f-agi.
>
> I started going down a rabbit-hole of ARI media and Audiosocket etc, for
> example:
>
> https://www.youtube.com/watch?v=tjduXbZZEgI
> https://github.com/CyCoreSystems/audiosocket
>
> These all seem to add a fair amount of complexity for controlling playback
> - for example:
>
> https://wiki.asterisk.org/wiki/display/AST/ARI+and+Media%3A+Part+2+-+Playbacks#ARIandMedia:Part2-Playbacks-Controllingplaybacks
> And I need to know the current cplaybackoffset at any given time.
>
> I was thinking: to keep it simple, is there a way to tell Asterisk to use
> a different mpg123 (the system one - my currently installed version from
> 2020!) instead of the Asterisk build?
>
> I can live with the "junk" warnings and the quiet playback, but it cannot
> be crashing on valid id3 content (and I have no control over the remotely
> hosting files).
>
> Thanks for any pointers in the right direction!
>
> On Wed, 5 May 2021 at 22:11, <asterisk at phreaknet.org> wrote:
>
>> On 5/5/2021 4:01 PM, Dovid Bender wrote:
>> > Hi,
>> >
>> > Is anyone aware of any way of getting ControlPlayBack to work with an
>> > amazon S3 bucket? I know I can put nginx in the middle but I am trying
>> > to avoid that.
>> I had some similar issues where ControlPlayback() wouldn't stream mp3
>> files from certain sites.
>> I ended up downloading the file to /tmp using wget and then playing the
>> local file, which worked perfectly as a workaround.
>> > TIA.
>> >
>> > Dovid
>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> Check out the new Asterisk community forum at:
>> https://community.asterisk.org/
>>
>> New to Asterisk? Start here:
>> https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
> https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210506/be3ac85a/attachment.html>
More information about the asterisk-users
mailing list