From 7eedb3224001b3c0f2d3bd6d0d35e023e0506525 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 16 Dec 2011 15:08:33 +0000 Subject: Modify linksys template so empty digitmap allows dialing any number --- config/templates/linksysata-template.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/templates') 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 -- cgit v1.2.3