diff options
Diffstat (limited to 'config/templates/linksysata-template.lua')
-rw-r--r-- | config/templates/linksysata-template.lua | 4 |
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<:"..values.services.hotlinedestination.."> )", "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 |