Asterisk 13 ARI Playback Of Audio Via HTTP

Home » Uncategorized » Asterisk 13 ARI Playback Of Audio Via HTTP
Uncategorized 1 Comment

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

One thought on - Asterisk 13 ARI Playback Of Audio Via HTTP

  • Answering the below for search engine’s sake.

    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