Matt Riddell
2019-Feb-18 16:23 UTC
[asterisk-users] [asterisk-app-dev] Asterisk 13 ARI Playback of audio via HTTP
Hey, trying to use ARI with NodeJS - this doesn't work: play(channel, 'sound:http://www.nch.com.au/acm/8k16bitpcm.wav'); should it? https://wiki.asterisk.org/wiki/display/AST/ARI+and+Channels%3A+Simple+Media+Manipulation says: A sound file located on the Asterisk system. You can use the /sounds resource to query for available sounds on the system. You can also use specify a media file which is consumed via HTTP (e.g sound:http://foo.com/sound.wav) But I get [2019-02-18 11:18:29] WARNING[23860][C-0002f9e3]: file.c:774 ast_openstream_full: File http://www.nch.com.au/acm/8k16bitpcm.wav does not exist in any format Cheers, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190218/2e125b3b/attachment.html> -------------- next part -------------- _______________________________________________ asterisk-app-dev mailing list asterisk-app-dev at lists.digium.com http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
Matt Riddell
2019-Feb-18 16:52 UTC
[asterisk-users] [asterisk-app-dev] Asterisk 13 ARI Playback of audio via HTTP
Answering the below for search engine’s sake.> On Feb 18, 2019, at 11:23, Matt Riddell <lists at venturevoip.com> wrote: > > Hey, trying to use ARI with NodeJS - this doesn't work: > > play(channel, 'sound:http://www.nch.com.au/acm/8k16bitpcm.wav' <http://www.nch.com.au/acm/8k16bitpcm.wav'>);Problem 1: The url is http but gets redirected to https in the browser Problem 2: Although the wiki doesn’t state it, you need at least version 14 of Asterisk and I was using version 13. In the process of updating now -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190218/81ed4873/attachment-0001.html> -------------- next part -------------- _______________________________________________ asterisk-app-dev mailing list asterisk-app-dev at lists.digium.com http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev