Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

joneug/media-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📢 Media Server

This repository contains code for a SIP application that calls SIP URIs provided in a redis database and play a given WAV file. The code was adapted from saghul/sipsimple-examples. It uses the SIP SIMPLE library.

The application runs as a service and can be deployed using Docker. The following environment variables can be specified to configure the application:

  • ACCOUNT_ID: Specifies the SIP account ID (e. g. [email protected]).
  • ACCOUNT_USERNAME: Specifies the SIP account username.
  • ACCOUNT_PASSWORD: Specifies the SIP account password.
  • REDIS_HOST: Specifies the redis host (defaults to localhost).
  • REDIS_PORT: Specifies the redis port (defaults to 6379).
  • REDIS_DB: Specifies the redis database (defaults to 0).
  • LOGLEVEL: Specifies the log level (defaults to INFO).
  • SLEEP_TIME: Specifies the time interval to sleep during active polling (defaults to 5).
  • AUDIO_FILE: Specifies the WAV file to play during calls. These have to be placed in the audio folder (defaults to audio.wav).
  • PLAYER_LOOP_COUNT: Specifies the number of times to play the WAV file (defaults to 3).
  • PLAYER_INITIAL_DELAY: Specifies the initial delay in seconds before playing the WAV file (defaults to 1).
  • PLAYER_PAUSE_TIME: Specifies the pause time in seconds between play loops (defaults to 1).

About

📢 VoIP Media Server playing WAV files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •