aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configs/phoneprov.conf.sample4
-rw-r--r--phoneprov/snom-mac.xml24
2 files changed, 28 insertions, 0 deletions
diff --git a/configs/phoneprov.conf.sample b/configs/phoneprov.conf.sample
index a99b44a79..17d8b1f49 100644
--- a/configs/phoneprov.conf.sample
+++ b/configs/phoneprov.conf.sample
@@ -131,3 +131,7 @@ ${MAC}-phone.cfg => 000000000000-phone.cfg ; (relative to AST_DATA_DIR/phonepr
config/${MAC} => polycom.xml ; Dynamic Filename => template file
${MAC}-directory.xml => 000000000000-directory.xml
setvar => CUSTOM_CONFIG=/var/lib/asterisk/phoneprov/configs/custom.cfg ; Custom variable
+
+;snom 300, 320, 360, 370, 820, 821, 870 support
+snom-${MAC}.xml => snom-mac.xml
+
diff --git a/phoneprov/snom-mac.xml b/phoneprov/snom-mac.xml
new file mode 100644
index 000000000..bec01aae8
--- /dev/null
+++ b/phoneprov/snom-mac.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<settings>
+ <phone-settings>
+ <utc_offset perm="">${TZOFFSET}</utc_offset>
+ <dst perm="">3600 ${DST_START_MONTH}.${DST_START_MDAY}.${DST_START_HOUR} 00:00:00 ${DST_END_MONTH}.${DST_END_MDAY}.${DST_END_HOUR} 00:00:00</dst>
+ <challenge_response perm="">off</challenge_response>
+ <filter_registrar perm="">off</filter_registrar>
+ <publish_presence perm="">on</publish_presence>
+ <user_realname idx="1" perm="">${DISPLAY_NAME}</user_realname>
+ <user_name idx="1" perm="">${USERNAME}</user_name>
+ <user_host idx="1" perm="">${SERVER}</user_host>
+ <user_pname idx="1" perm="">${USERNAME}</user_pname>
+ <user_pass idx="1" perm="">${SECRET}</user_pass>
+ <user_outbound idx="1" perm="">${SERVER}</user_outbound>
+ <user_server_type idx="1" perm="">asterisk</user_server_type>
+ </phone-settings>
+ <functionKeys></functionKeys>
+ <tbook>${PP_EACH_USER(
+ <item context="active" type="none" index="">
+ <name>%{DISPLAY_NAME}</name>
+ <number>%{CALLERID}</number>
+ </item>,${MAC})}
+ </tbook>
+</settings>