juci-voice-client: add autodial options to voice-lines refs #12021
authorReidar Cederqvist <reidar.cederqvist@gmail.com>
Mon, 18 Jun 2018 11:39:28 +0000 (13:39 +0200)
committerSukru Senli <sukru.senli@inteno.se>
Sat, 1 Sep 2018 09:23:00 +0000 (11:23 +0200)
plugins/juci-voice-client/src/voice-client.js
plugins/juci-voice-client/src/widgets/phone-lines.html

index 5a7b2c8..845d757 100644 (file)
@@ -42,7 +42,9 @@ UCI.voice_client.$registerSectionType("brcm_line", {
        "callwaiting":                  { dvalue: false, type: Boolean }, 
        "clir":                                 { dvalue: false, type: Boolean }, 
        "name":                                 { dvalue: '', type: String }, 
-       "instance":                             { dvalue: '', type: String }
+       "instance":                             { dvalue: '', type: String },
+       "autodial":                     { dvalue: '', type: String },
+       "autodial_timeout":             { dvalue: '', type: Number }
 }); 
 UCI.voice_client.$registerSectionType("sip_service_provider",  {
        "name":                                 { dvalue: "", type: String },
index 73e759e..e0b208b 100644 (file)
                                <juci-config-line title="{{'Receive gain'|translate}}">
                                        <input type="number" min="-96" max="32" class="form-control" ng-model="line.rxgain.value" />
                                </juci-config-line>
+                               <juci-config-line title="{{'Hotline number'|translate}}">
+                                       <input type="text" class="form-control" ng-model="line.autodial.value"/>
+                               </juci-config-line>
+                               <juci-config-line title="{{'Hotline timeout [ms]'|translate}}">
+                                       <input type="number" class="form-control" ng-model="line.autodial_timeout.value" />
+                               </juci-config-line>
                        </juci-config-lines>
                </juci-expandable>
        </juci-config-section>