Hey all -

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.

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:

POST /channels/my_unique_id/play?media=sound:
http://remote_ip_address/foo.wav

(Note that you'd obviously want to URL encode the URI of the media to be
retrieved)

This works as well, of course, with JSON bodies POSTed.

I've updated the feature description accordingly [2].

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.

Matt

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Documentation
[2]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+Project+-+URI+Media+Playback

-- 
Matthew Jordan
Digium, Inc. | CTO
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to