<div dir="ltr">Just as a follow up I put in nginx as as "prox" locally. Asterisk sends it its request it then adds the headers and goes out to S3.<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 6, 2018 at 11:55 AM, Antony Stone <span dir="ltr"><<a href="mailto:Antony.Stone@asterisk.open.source.it" target="_blank">Antony.Stone@asterisk.open.source.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday 06 June 2018 at 16:30:08, Dovid Bender wrote:<br>
<span class=""><br>
> On Wed, Jun 6, 2018 at 6:18 AM, Antony Stone wrote:<br>
> > On Wednesday 06 June 2018 at 12:02:38, Dovid Bender wrote:<br>
> > > Hi,<br>
> > > <br>
> > > I have tested ControlPlayback and grabbed files via an apache server<br>
> > > with no issue.<br>
> > <br>
> > ControlPlayback is an Asterisk dialplan function.<br>
> > <br>
> > How have you integrated this with Apache?<br>
> <br>
> By apache I mean<br>
> ControlPlayBack(<a href="http://voice1.mydomain.net:8090/1.wav,30000,6,4,0,5,1" rel="noreferrer" target="_blank">http://voice1.<wbr>mydomain.net:8090/1.wav,30000,<wbr>6,4,0,5,1</a>)<br>
<br>
</span>Aha.<br>
<span class=""><br>
> > > I want to be able to grab files via aws S3 which would require me to<br>
> > > add some headers to authenticate.<br>
> > <br>
</span>> > Presumably you mean you need to add some headers to an HTTP request?<br>
<span class="">> <br>
> Correct<br>
> <br>
> > > Is there any way to have Asterisk add headers or would I need a http<br>
> > > proxy in the middle?<br>
> > <br>
> > Where and how is Asterisk making an HTTP request at all?<br>
> <br>
> Asterisk is using URI Media Playback.<br>
<br>
</span>Ah. So the problem (or challenge) is with URI Media Playback rather than <br>
ControlPlayback, I think.<br>
<br>
> Please see:<br>
> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Project+-+URI+Media+" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Asterisk+14+<wbr>Project+-+URI+Media+</a><br>
> Playback<br>
<br>
ControlPlayback will play anything you give it; the challenge here seems to be <br>
fetching the media with URI Media Playback, and that's somethign I have no <br>
familiatiry with, so I'll let someone else step in with any ideas.<br>
<br>
<br>
Regards,<br>
<br>
<br>
Antony.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
What do you call a dinosaur with only one eye? A Doyouthinkesaurus.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
-- <br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a></div></div></blockquote></div><br></div>