summaryrefslogtreecommitdiffstats
path: root/config/templates/linksysata-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/linksysata-template.lua')
-rw-r--r--config/templates/linksysata-template.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/templates/linksysata-template.lua b/config/templates/linksysata-template.lua
index 8387823..f125a97 100644
--- a/config/templates/linksysata-template.lua
+++ b/config/templates/linksysata-template.lua
@@ -10,7 +10,7 @@ values["device"]["musiconhold"] = ""
values["device"]["registrar"] = ""
values["device"]["sntpserver"] = ""
values["device"]["template"] = "/etc/provisioning/templates/linksysata-template.lua"
--- Unimplemented -- values["device"]["timezone"] = ""
+values["device"]["timezone"] = ""
values["regX"]["callerid"] = ""
values["regX"]["extension"] = ""
values["regX"]["forwardall"] = ""
@@ -23,7 +23,8 @@ values["regX"]["password"] = ""
-- Unimplemented -- values["services"]["callhistoryenable"] = true
values["services"]["callwaitingenable"] = true
values["services"]["forwarding"] = true
--- Unimplemented -- values["services"]["hotlineenable"] = false
+values["services"]["hotlinedestination"] = ""
+values["services"]["hotlineenable"] = false
-- Unimplemented -- values["services"]["mailbox"] = ""
-- Unimplemented -- values["services"]["speeddialenable"] = true
--]]
@@ -131,7 +132,13 @@ for pg, pg_t in pairs(values) do
xml_elem("MOH_Server", values.device.musiconhold, "na", num)
xml_elem("Proxy", values.device.registrar, "na", num)
xml_elem("Call_Waiting_Serv", (values.services and values.services.callwaitingenable), "na", num)
- xml_elem("Dial_Plan", "( "..values.device.digitmap.." )", "na", num)
+ if values.services and values.services.hotlineenable then
+ -- Tested and found delay of 0 didn't work, so using 1 second
+ -- Need to escape < and >
+ xml_elem("Dial_Plan", "( P1&lt;:"..values.services.hotlinedestination.."&gt; )", "na", num)
+ else
+ xml_elem("Dial_Plan", "( "..values.device.digitmap.." )", "na", num)
+ end
if pg_t.callerid == "" then
pg_t.callerid = pg_t.extension
@@ -156,7 +163,6 @@ for pg, pg_t in pairs(values) do
-- Cannot disable the lines, or check-sync will not work, just set User ID to ""
xml_elem("Line_Enable", "Yes", "na", num)
xml_elem("User_ID", "", "na", num)
--- xml_elem("Cfwd_No_Ans_Delay", "0", "na", num)
end
end
end %>