secubox-openwrt/package/secubox/secubox-app-voip/files/etc/init.d/voip
CyberMind-FR e416fa14a6 feat(jabber): Add VoIP integration to LuCI dashboard
Add Jingle VoIP, SMS Relay, and Voicemail Notifications sections to
the Jabber overview.js. Expose 9 new RPC methods in api.js for VoIP
control. Also includes remaining VoIP package updates (dialer view,
asterisk-config.sh) from previous session.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-19 14:37:17 +01:00

31 lines
441 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=95
STOP=10
USE_PROCD=1
VOIPCTL="/usr/sbin/voipctl"
start_service() {
local enabled
enabled=$(uci -q get voip.main.enabled)
[ "$enabled" = "1" ] || return 0
procd_open_instance
procd_set_param command "$VOIPCTL" start
procd_set_param respawn
procd_close_instance
}
stop_service() {
"$VOIPCTL" stop
}
reload_service() {
"$VOIPCTL" reload
}
service_triggers() {
procd_add_reload_trigger "voip"
}