<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 20, 2018, at 1:39 PM, Naftoli Gugenheim <<a href="mailto:naftoligug@gmail.com" class="">naftoligug@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">I've tried it with .wav. Same result. It doesn't even hit my server.<div class=""><br class=""></div></div></blockquote><div><br class=""></div><div>Can you provide a debug level 5 log (including all higher level verbose+ messages) from Asterisk that shows the playback operation?</div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Jul 20, 2018, 11:45 AM Matthew Jordan <<a href="mailto:mjordan@digium.com" class="">mjordan@digium.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jul 15, 2018, at 11:37 PM, Naftoli Gugenheim <<a href="mailto:naftoligug@gmail.com" target="_blank" class="">naftoligug@gmail.com</a>> wrote:</div><br class="m_-9162623396875115649Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Crickets...</div><div class=""><br class=""></div>I've tried this now on 15.5.0. Still completely broken.<div class=""><br class=""></div><div class=""><br class=""></div></div></div></blockquote><div class=""><br class=""></div></div></div><div style="word-wrap:break-word;line-break:after-white-space" class=""><div class=""><div class="">I suspect you’re encountering behavior that is working as intended.</div><div class=""><br class=""></div><div class="">Normally, when Asterisk plays back a file, it scans the file system for all files with the provided sound file name. For each file that it finds with a given file extension, it picks the best media file (where best is given by transcoding cost) that matches the channel capabilities. That works great when you have a file system that can be scanned quickly.</div><div class=""><br class=""></div><div class="">You can probably guess why that approach isn’t used with a remote HTTP server: making a lot of HEAD/GET requests to ‘scan’ the remote server for available file types is not a good idea for a multitude of reasons.</div><div class=""><br class=""></div><div class="">As such, the remote playback determines the type of file it is playing back from the extension of the resource it downloads from the remote server. If the remote resource doesn’t have an extension, then Asterisk is going to complain that it does not know what type of media it just downloaded.</div><div class=""><br class=""></div><div class="">That is: if your remote resource was named “sounds/prompts/nine.wav” you’d probably be okay.</div><div class=""><br class=""></div><div class="">Now, it would be nice if there was a way for Asterisk to be told to expect the remote resource to be in a particular file format, but to my knowledge, that feature hasn’t been added.</div><div class=""><br class=""></div><div class="">(As an aside, I use this functionality through AGI, so I know it isn’t “completely broken”.)</div></div></div><div style="word-wrap:break-word;line-break:after-white-space" class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Sun, Apr 8, 2018 at 11:28 PM Naftoli Gugenheim <<a href="mailto:naftoligug@gmail.com" target="_blank" class="">naftoligug@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">I've come back to this because of issues with the other approach I took.<div class=""><br class=""></div><div class="">I've set up everything so that curl <a href="http://local.xxx.com/sounds/prompts/nine" target="_blank" class="">http://local.XXX.com/sounds/prompts/nine</a> hits my dev server, yet passing the same URL to STREAM FILE does not. I still get WARNING[103][C-00000001]: file.c:774 ast_openstream_full: File <a href="http://local.mikvahbook.com/sounds/prompts/please%2Dmake%2Da%2Dselection" target="_blank" class="">http://local.mikvahbook.com/sounds/prompts/please%2Dmake%2Da%2Dselection</a> does not exist in any format, and my server is not being hit.</div><div class=""><br class=""></div><div class="">Please help!</div><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Mar 5, 2018 at 2:49 AM Naftoli Gugenheim <<a href="mailto:naftoligug@gmail.com" target="_blank" class="">naftoligug@gmail.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Interesting!<div class=""><br class=""></div><div class="">Anyway I've deployed my app, and I left it with filenames. I have a Google Cloud Storage bucket that's mounted via gcsfuse into both the app and to Asterisk. That way they both act like they're working with their own local filesystem but really it's shared but distributed. Maybe I'll change it to use URLs and serve the files from the app in the future. I feel like it's more elegant for the app to own everything and treat asterisk like a stateless service, but there's no immediate reason to change the status quo.</div><div class=""><br class=""></div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Fri, Mar 2, 2018, 2:36 PM Ross Buggins <<a href="mailto:rbuggins@via.co.uk" target="_blank" class="">rbuggins@via.co.uk</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72" class="">
<div class="m_-9162623396875115649m_-7805927490629476927m_8699788777244938842m_7697014932981045922WordSection1"><p class="MsoNormal"><span class="">Just monitors for changes in a directory, takes the file, processes it (sends off to a web service) it and then removes it from the local file system<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><b class=""><span lang="EN-US" class="">From:</span></b><span lang="EN-US" class=""> <a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank" class="">asterisk-app-dev-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-app-dev-bounces@lists.digium.com" target="_blank" class="">asterisk-app-dev-bounces@lists.digium.com</a>]
<b class="">On Behalf Of </b>Naftoli Gugenheim<br class="">
<b class="">Sent:</b> 02 March 2018 19:30</span></p></div></div><div lang="EN-GB" link="#0563C1" vlink="#954F72" class=""><div class="m_-9162623396875115649m_-7805927490629476927m_8699788777244938842m_7697014932981045922WordSection1"><p class="MsoNormal"><span lang="EN-US" class=""><br class="">
<b class="">To:</b> Asterisk Application Development discussion <<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank" class="">asterisk-app-dev@lists.digium.com</a>><br class="">
<b class="">Subject:</b> Re: [asterisk-app-dev] AGI stream audio from URI<u class=""></u><u class=""></u></span></p></div></div><div lang="EN-GB" link="#0563C1" vlink="#954F72" class=""><div class="m_-9162623396875115649m_-7805927490629476927m_8699788777244938842m_7697014932981045922WordSection1"><div class=""><span lang="EN-US" class=""></span><br class="m_-9162623396875115649webkit-block-placeholder"></div><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
<div class=""><p class="MsoNormal">How does the background service know when something was recorded?<u class=""></u><u class=""></u></p>
<div class=""><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
</div>
</div>
</div>

_______________________________________________<br class="">
asterisk-app-dev mailing list<br class="">
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank" class="">asterisk-app-dev@lists.digium.com</a><br class="">
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank" class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br class="">
</blockquote></div></div></blockquote></div></blockquote></div>
_______________________________________________<br class="">asterisk-app-dev mailing list<br class=""><a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank" class="">asterisk-app-dev@lists.digium.com</a><br class=""><a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank" class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br class=""></div></blockquote></div></div>_______________________________________________<br class="">
asterisk-app-dev mailing list<br class="">
<a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank" class="">asterisk-app-dev@lists.digium.com</a><br class="">
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank" class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br class="">
</blockquote></div></div>
_______________________________________________<br class="">asterisk-app-dev mailing list<br class=""><a href="mailto:asterisk-app-dev@lists.digium.com" class="">asterisk-app-dev@lists.digium.com</a><br class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev<br class=""></div></blockquote></div><br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Matthew Jordan<br class="">Digium, Inc. | CTO<br class="">445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br class="">Check us out at: <a href="http://digium.com" class="">http://digium.com</a> & <a href="http://asterisk.org" class="">http://asterisk.org</a></div>

</div>
<br class=""></body></html>