summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-12-16 15:08:33 +0000
committerTed Trask <ttrask01@yahoo.com>2011-12-16 15:08:33 +0000
commit7eedb3224001b3c0f2d3bd6d0d35e023e0506525 (patch)
treeec82e5bb81ce40cef9865c58142fcb28ffb48128 /config
parent35a0be160a60a2f7d1f0a3da126ecc1710deef03 (diff)
downloadacf-provisioning-7eedb3224001b3c0f2d3bd6d0d35e023e0506525.tar.bz2
acf-provisioning-7eedb3224001b3c0f2d3bd6d0d35e023e0506525.tar.xz
Modify linksys template so empty digitmap allows dialing any number
Diffstat (limited to 'config')
-rw-r--r--config/templates/linksysata-template.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/templates/linksysata-template.lua b/config/templates/linksysata-template.lua
index f125a97..73a1d1a 100644
--- a/config/templates/linksysata-template.lua
+++ b/config/templates/linksysata-template.lua
@@ -136,8 +136,10 @@ for pg, pg_t in pairs(values) do
-- 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
+ elseif values.device and values.device.digitmap and values.device.digitmap ~= "" then
xml_elem("Dial_Plan", "( "..values.device.digitmap.." )", "na", num)
+ else
+ xml_elem("Dial_Plan", "( x. )", "na", num)
end
if pg_t.callerid == "" then