summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-11-03 13:21:40 +0000
committerTed Trask <ttrask01@yahoo.com>2011-11-03 13:21:40 +0000
commit90416c42460f85cd10c1327b4d7240288ea311a2 (patch)
tree69f863f0fd2b83de77902b3e81ef68ba7946d5a3 /config
parent52a9a795696e681a08d47c1ba071e83589426485 (diff)
downloadacf-provisioning-90416c42460f85cd10c1327b4d7240288ea311a2.tar.bz2
acf-provisioning-90416c42460f85cd10c1327b4d7240288ea311a2.tar.xz
Removed from snom template parameters not controlled by acf-provisioning
Diffstat (limited to 'config')
-rw-r--r--config/templates/snom-template.lua27
1 files changed, 1 insertions, 26 deletions
diff --git a/config/templates/snom-template.lua b/config/templates/snom-template.lua
index dc50fc6..e109c04 100644
--- a/config/templates/snom-template.lua
+++ b/config/templates/snom-template.lua
@@ -27,29 +27,12 @@ end
<settings>
<phone-settings>
<admin_mode_password perm="R"><% io.write(values.device.adminpassword) %></admin_mode_password>
- <codec_tos perm="RW">184</codec_tos>
- <% if values.device.dateformat == string.lower("mm/dd/yyyy") then
- io.write('<date_us_format perm="RW">on</date_us_format>')
- else
- io.write('<date_us_format perm="RW">off</date_us_format>')
- end %>
- <dhcp perm="RW">on</dhcp>
- <dim_timer perm="R">60</dim_timer>
<% xml_elem('eth_pc',values.device.pcportenable,'R') %>
<http_pass perm="R"><% io.write(values.device.adminpassword) %></http_pass>
<http_user perm="R">admin</http_user>
- <ignore_security_warning perm="R">on</ignore_security_warning>
- <% xml_elem('language',values.device.uilanguage,'RW') %>
<ntp_server perm="RW"><% io.write(values.device.sntpserver) %></ntp_server>
- <publish_presence perm="R">off</publish_presence>
- <refer_brackets perm="R">on</refer_brackets>
- <settings_refresh_timer perm="RW">7200</settings_refresh_timer>
- <signaling_tos perm="RW">184</signaling_tos>
- <% xml_elem('time_24_format',values.device.timeformat24h,'RW') %>
<!--<timezone perm="RW">ITA+1</timezone> http://wiki.snom.com/Settings/timezone -->
<!--<tone_scheme perm="RW">ITA</tone_scheme> http://wiki.snom.com/wiki/index.php/Settings/tone_scheme -->
- <update_policy perm="R">auto_update</update_policy>
- <use_hidden_tags perm="RW">off</use_hidden_tags>
<%
for pg, pg_t in pairs(values) do
@@ -57,6 +40,7 @@ for pg, pg_t in pairs(values) do
local num = string.match(pg, 'reg(%d+)')
if num then
if pg_t.extension ~= "" then
+ xml_elem('user_active', 'on', 'RW', num )
xml_elem('record_dialed_calls', pg_t.callhistoryenable, 'R', num)
xml_elem('record_missed_calls', pg_t.callhistoryenable, 'R', num)
xml_elem('record_received_calls', pg_t.callhistoryenable, 'R', num)
@@ -67,20 +51,11 @@ for pg, pg_t in pairs(values) do
xml_elem('redirect_busy_number',pg_t.forwardbusy,'RW')
xml_elem('redirect_on_timeout',pg_t.forwardnoanswerenable,'RW')
xml_elem('redirect_time_number',pg_t.forwardnoanswer,'RW')
- xml_elem('redirect_time','20','RW')
- xml_elem('retry_after_failed_subscribe', '30', 'R', num)
- xml_elem('user_active', 'on', 'RW', num )
xml_elem('user_host', values.device.registrar, 'R', num )
- xml_elem('user_hold_inactive', 'off', 'R', num)
xml_elem('user_moh', 'sip:'..values.device.musiconhold, 'R', num)
xml_elem('user_name', pg_t.extension, 'R', num)
xml_elem('user_outbound', values.device.registrar, 'R', num)
xml_elem('user_pass', pg_t.password, 'R', num)
- xml_elem('user_publish_presence_bootup', 'off', 'R', num)
- xml_elem('user_ringer', 'Ringer'..pg_t.ringtone, '!', num)
- xml_elem('user_shared_line',pg_t.sharedlineenable, 'R', num)
- xml_elem('user_srtp', 'off', 'R', num)
- xml_elem('user_subscription_expiry', '120', 'R', num) -- by default SNOMs re-register after *half* of this time have passed
-- Caller ID string
if string.len(pg_t.callerid) == 0 then
xml_elem( 'user_realname', pg_t.extension,'R', num)