From 8f48ff9e8311549195e7a7fe8038387b25d2cd0f Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 19 Nov 2015 15:56:55 +0100 Subject: [PATCH] voice_client: add ringing_status section if it is missing --- .../files/etc/uci-defaults/99-voice_client | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 voice-client/files/etc/uci-defaults/99-voice_client diff --git a/voice-client/files/etc/uci-defaults/99-voice_client b/voice-client/files/etc/uci-defaults/99-voice_client new file mode 100755 index 000000000..8b1f84410 --- /dev/null +++ b/voice-client/files/etc/uci-defaults/99-voice_client @@ -0,0 +1,15 @@ +#!/bin/sh + +uci -q get voice_client.RINGING_STATUS >/dev/null && exit 0 + +uci -q batch <<-EOT + add voice_client ringing_status + rename voice_client.@ringing_status[-1]=RINGING_STATUS + set voice_client.RINGING_STATUS.status=0 + set voice_client.RINGING_STATUS.enabled=1 + set voice_client.RINGING_STATUS.shouldring=1 + commit voice_client +EOT + +exit 0 +