diff options
-rw-r--r-- | templates/linksysata-template.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/linksysata-template.lua b/templates/linksysata-template.lua index a2fcdc5..6a77465 100644 --- a/templates/linksysata-template.lua +++ b/templates/linksysata-template.lua @@ -9,6 +9,17 @@ dialpattern=values.device.digitmap <% local values = ... %> +<% + +local function yesno ( bool ) + if bool then + return "Yes" + else + return "No" + end +end +%> + <flat-profile> <Restricted_Access_Domains ua="na"></Restricted_Access_Domains> @@ -255,7 +266,7 @@ http://<% io.write(web_server) %>/Linksys/$MA.xml -<Call_Waiting_Serv_1_ ua="na">Yes</Call_Waiting_Serv_1_> +<Call_Waiting_Serv_1_ ua="na"><%= yesno(values.services and values.services.callwaitingenable) %></Call_Waiting_Serv_1_> <Block_CID_Serv_1_ ua="na">No</Block_CID_Serv_1_> <Block_ANC_Serv_1_ ua="na">No</Block_ANC_Serv_1_> <Dist_Ring_Serv_1_ ua="na">Yes</Dist_Ring_Serv_1_> |