17 lines
495 B
Bash
17 lines
495 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
bashio::log.info "Starting SIP Voice Notifier..."
|
|
|
|
# Get config from add-on options
|
|
SIP_SERVER=$(bashio::config 'sip_server')
|
|
SIP_USER=$(bashio::config 'sip_user')
|
|
SIP_PASSWORD=$(bashio::config 'sip_password')
|
|
DEFAULT_DURATION=$(bashio::config 'default_duration')
|
|
|
|
bashio::log.info "SIP Server: ${SIP_SERVER}"
|
|
bashio::log.info "SIP User: ${SIP_USER}"
|
|
bashio::log.info "Default Duration: ${DEFAULT_DURATION}s"
|
|
|
|
# Start the service
|
|
exec python3 /app/sip_service.py
|