diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-12-16 15:08:33 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-12-16 15:08:33 +0000 |
commit | 7eedb3224001b3c0f2d3bd6d0d35e023e0506525 (patch) | |
tree | ec82e5bb81ce40cef9865c58142fcb28ffb48128 | |
parent | 35a0be160a60a2f7d1f0a3da126ecc1710deef03 (diff) | |
download | acf-provisioning-7eedb3224001b3c0f2d3bd6d0d35e023e0506525.tar.bz2 acf-provisioning-7eedb3224001b3c0f2d3bd6d0d35e023e0506525.tar.xz |
Modify linksys template so empty digitmap allows dialing any number
-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 |