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.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