summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-11-23 16:55:23 +0000
committerTed Trask <ttrask01@yahoo.com>2011-11-23 16:55:23 +0000
commit2a20bf8c1bc77f7c6c67e8468f7195001dbe2b1a (patch)
tree6ba06dad99bf6814a681d3e5d1a6d5b0967ce7b4
parent88b3a15e16b764cf5a930aee58c8026de2ba0f8e (diff)
downloadacf-provisioning-2a20bf8c1bc77f7c6c67e8468f7195001dbe2b1a.tar.bz2
acf-provisioning-2a20bf8c1bc77f7c6c67e8468f7195001dbe2b1a.tar.xz
Added hotline functionality to linksys template
-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 %>