This provides a websocket resource for streaming audio channel Asterisk. It works with asterisk versions 16.x or later
- Asterisk 16.x (or later) header files (http://asterisk.org)
$ make
$ make install
Loading module
asterisk -r
CLI> module unload res_ari_stream.so
CLI> module load res_ari_stream.so
Edit the sample to have the good configuration. To build image to test with docker.
docker build -t asterisk-ari-stream .
docker run -it asterisk-ari-stream bash
asterisk
Check our example in contribs directory. You need to send the subprotocol stream-channel with a http header Channel-ID which contains the channel id you would like to stream.