<div dir="ltr">Hey all -<div><br></div><div>At AstriDevCon this year, I noted that while we implemented remote media playback in Asterisk 14 [1], it didn't yet work with ARI. I was looking at finishing off this feature for a slightly later release of Asterisk 14, but as I was playing around with it, I realized that it actually *does* work, although the way in which you invoke the remote playback is admittedly a little funky.</div><div><br></div><div>When posting a /play operation on a bridge or channel resource, providing an HTTP or HTTPS URI to a media identifier of type 'sound:' will cause the Asterisk core to go ahead and pull the media from the provided HTTP/HTTPS URI. That is, something like this will work:</div><div><br></div><div>POST /channels/my_unique_id/play?media=sound:<a href="http://remote_ip_address/foo.wav">http://remote_ip_address/foo.wav</a></div><div><br></div><div>(Note that you'd obviously want to URL encode the URI of the media to be retrieved)</div><div><br></div><div>This works as well, of course, with JSON bodies POSTed.</div><div><br></div><div>I've updated the feature description accordingly [2].</div><div><br></div><div>Note that I do think Ben Langfeld's comments about supporting text/uri-list is reasonable, and would be useful in the long run. In the short term, at least, this feature does work from ARI.</div><div><br></div><div>Matt</div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Documentation">https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Documentation</a></div><div>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Project+-+URI+Media+Playback">https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Project+-+URI+Media+Playback</a></div><div><div><br></div>-- <br><div class="gmail_signature">Matthew Jordan<br>Digium, Inc. | CTO<br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div></div>