8000 GitHub - radiomv/sip-streamer: Docker container to stream audio to a SIP destination
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

radiomv/sip-streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A Docker image to stream audio to a SIP client.

Building

docker build --rm  -t sip-streamer .

Environment Variables

  • SIP_ID SIP 'from' address. When using with turbobridge, this can a anything. Excample user@example.com.
  • SIP_ADDR SIP destination address.
  • STREAM_URL Location of the source stream. As this is processed through ffmpeg, any url can be supplied that ffmpeg can open. If if video is given, only the audio will be used.

Running

docker run --rm \
    -e STREAM_URL=https://example.com/stream.mp3 \
    -e SIP_ID=user@example.com \
    -e SIP_ADDR=destination@example.com \
    -t  sip-streamer:latest

Theory of operation

  1. A fifo file is created to pipe the audio
  2. baresip is started in the background and connects to SIP_ADDR and plays audio from the fifo buffer.
  3. ffmpeg reads data from STREAM_URL, applies a compressor, downmixes it to mono, and sends it into the fifo as uncompressed PCM audio.
  4. If the ffmpeg proccess exits or crashes, the whole container stops. (to be restarted by the container manager) This causes a restart if the stream is unavailable or the call ends. If a call cannot be placed, the program is stuck, and needs to be restarted manually.

About

Docker container to stream audio to a SIP destination

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0