| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | [general] | 
					
						
							| 
									
										
										
										
											2025-07-09 09:30:43 -04:00
										 |  |  | ; This section applies only to the default phoneprov_users.conf config provider | 
					
						
							| 
									
										
										
										
											2014-10-09 17:46:23 +00:00
										 |  |  | ; embedded in res_phoneprov.  Other providers may provide their own default settings. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-17 03:09:32 +00:00
										 |  |  | ; The default behavior of res_phoneprov will be to set the SERVER template variable to | 
					
						
							| 
									
										
										
										
											2022-11-28 13:05:21 -07:00
										 |  |  | ; the IP address that the phone uses to contact the provisioning server. Unless you have | 
					
						
							|  |  |  | ; an unusual setup, you should not need to set serveraddr, serveriface, or serverport. | 
					
						
							| 
									
										
										
										
											2008-01-17 03:09:32 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;serveraddr=192.168.1.1 ; Override address to send to the phone to use as server address. | 
					
						
							|  |  |  | ;serveriface=eth0       ; Same as above, except an ethernet interface. | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                         ; Useful for when the interface uses DHCP and the asterisk http | 
					
						
							| 
									
										
										
										
											2022-11-28 13:05:21 -07:00
										 |  |  |                         ; server listens on a different IP than sip. | 
					
						
							| 
									
										
										
										
											2008-01-17 03:09:32 +00:00
										 |  |  | ;serverport=5060        ; Override port to send to the phone to use as server port. | 
					
						
							| 
									
										
										
										
											2025-07-09 09:30:43 -04:00
										 |  |  | default_profile=polycom ; The default profile to use if none specified in phoneprov_users.conf | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; You can define profiles for different phones specifying what files to register | 
					
						
							|  |  |  | ; with the provisioning server.  You can define either static files, or dynamically | 
					
						
							|  |  |  | ; generated files that can have dynamic names and point to templates that variables | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | ; can be substituted into.  You can also set arbitrary variables for the profiles | 
					
						
							| 
									
										
										
										
											2014-10-09 17:46:23 +00:00
										 |  |  | ; templates to have access to.  Profiles are shared across all config providers. | 
					
						
							|  |  |  | ; Example: | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;[example] | 
					
						
							|  |  |  | ;mime_type => application/octet-stream | 
					
						
							|  |  |  | ;static_file => example/firmware | 
					
						
							|  |  |  | ;static_file => example/default.cfg,text/xml | 
					
						
							|  |  |  | ;${TOUPPER(${MAC})}.cfg => templates/example-mac.cfg | 
					
						
							|  |  |  | ;setvar => DB_CIDNAME=${ODBC_CID_NAME_LOOKUP(${USERNAME})} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ; Dynamically generated files have a filename registered with variable substitution | 
					
						
							| 
									
										
										
										
											2014-10-09 17:46:23 +00:00
										 |  |  | ; with variables obtained from various config providers.  The default provider | 
					
						
							| 
									
										
										
										
											2025-07-09 09:30:43 -04:00
										 |  |  | ; embedded in res_phoneprov reads phoneprov_users.conf.  Other providers will have their own | 
					
						
							| 
									
										
										
										
											2014-10-09 17:46:23 +00:00
										 |  |  | ; sources for the variables and may provide additional variables not listed here. | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-09 09:30:43 -04:00
										 |  |  | ; Built in variables and the options in phoneprov_users.conf that they come from | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | ;   MAC (macaddress) | 
					
						
							|  |  |  | ;   USERNAME (username) | 
					
						
							|  |  |  | ;   DISPLAY_NAME (fullname) | 
					
						
							|  |  |  | ;   SECRET (secret) | 
					
						
							|  |  |  | ;   LABEL (label) | 
					
						
							|  |  |  | ;   CALLERID (cid_number) | 
					
						
							|  |  |  | ;   VOCIEMAIL_EXTEN (vmexten) | 
					
						
							|  |  |  | ;   EXTENSION_LENGTH (localextenlength) | 
					
						
							| 
									
										
										
										
											2010-10-12 17:21:15 +00:00
										 |  |  | ;   LINE | 
					
						
							|  |  |  | ;   LINEKEYS | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; Built-in variables and the options in phoneprov.conf that they come from | 
					
						
							|  |  |  | ;   SERVER (server) | 
					
						
							|  |  |  | ;   SERVER_PORT (serverport) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-12 17:21:15 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; Built-in variables for managing timezones and daylight savings time. | 
					
						
							|  |  |  | ;   TZOFFSET | 
					
						
							|  |  |  | ;   DST_ENABLE | 
					
						
							|  |  |  | ;   DST_START_MONTH | 
					
						
							|  |  |  | ;   DST_START_MDAY | 
					
						
							|  |  |  | ;   DST_START_HOUR | 
					
						
							|  |  |  | ;   DST_END_MONTH | 
					
						
							|  |  |  | ;   DST_END_MDAY | 
					
						
							|  |  |  | ;   DST_END_HOUR | 
					
						
							|  |  |  | ;   TIMEZONE | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | [polycom] | 
					
						
							|  |  |  | staticdir => configs/ ; Sub directory of AST_DATA_DIR/phoneprov that static files reside | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                       ; in. This allows a request to /phoneprov/sip.cfg to pull the file | 
					
						
							|  |  |  |                       ; from /phoneprov/configs/sip.cfg | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | mime_type => text/xml ; Default mime type to use if one isn't specified or the | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  |                       ; extension isn't recognized | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | static_file => bootrom.ld,application/octet-stream ; Static files the phone will download | 
					
						
							|  |  |  | static_file => bootrom.ver,plain/text              ; static_file => filename,mime-type | 
					
						
							|  |  |  | static_file => sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => sip.ver,plain/text | 
					
						
							|  |  |  | static_file => sip.cfg | 
					
						
							|  |  |  | static_file => custom.cfg | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | static_file => 2201-06642-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2201-06642-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11000-001.bootrom.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2008-10-28 22:26:35 +00:00
										 |  |  | static_file => 2345-11300-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11300-010.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11300-010.sip.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | static_file => 2345-11402-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11402-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-010.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-020.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-030.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-030.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-040.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11500-040.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11600-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11600-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11605-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-11605-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-002.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-002.sip.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2008-10-28 22:26:35 +00:00
										 |  |  | static_file => 2345-12200-004.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-004.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-005.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12200-005.sip.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2011-01-13 17:02:34 +00:00
										 |  |  | static_file => 2345-12365-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12365-001.sip.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2008-10-28 22:26:35 +00:00
										 |  |  | static_file => 2345-12500-001.bootrom.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | static_file => 2345-12500-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12560-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12560-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12600-001.bootrom.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2008-10-28 22:26:35 +00:00
										 |  |  | static_file => 2345-12600-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12670-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 2345-12670-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 3111-15600-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 3111-15600-001.sip.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 3111-40000-001.bootrom.ld,application/octet-stream | 
					
						
							|  |  |  | static_file => 3111-40000-001.sip.ld,application/octet-stream | 
					
						
							| 
									
										
										
										
											2008-12-12 15:10:25 +00:00
										 |  |  | static_file => SoundPointIPWelcome.wav,application/octet-stream | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Japanese_Japan/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Norwegian_Norway/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Spanish_Spain/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Portuguese_Portugal/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/English_United_Kingdom/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/English_United_States/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Russian_Russia/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Italian_Italy/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Chinese_China/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Swedish_Sweden/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/English_Canada/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/German_Germany/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/French_France/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Danish_Denmark/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Dutch_Netherlands/SoundPointIP-dictionary.xml | 
					
						
							|  |  |  | static_file => SoundPointIPLocalization/Korean_Korea/SoundPointIP-dictionary.xml | 
					
						
							| 
									
										
										
										
											2008-10-28 22:26:35 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-10-09 17:04:11 +00:00
										 |  |  | ${MAC}.cfg => 000000000000.cfg               ; Dynamically generated files. | 
					
						
							|  |  |  | ${MAC}-phone.cfg => 000000000000-phone.cfg   ; (relative to AST_DATA_DIR/phoneprov) | 
					
						
							| 
									
										
										
										
											2009-05-28 14:39:21 +00:00
										 |  |  | config/${MAC} => polycom.xml                 ; Dynamic Filename => template file | 
					
						
							| 
									
										
										
										
											2008-10-09 17:04:11 +00:00
										 |  |  | ${MAC}-directory.xml => 000000000000-directory.xml | 
					
						
							| 
									
										
										
										
											2008-01-09 21:37:26 +00:00
										 |  |  | setvar => CUSTOM_CONFIG=/var/lib/asterisk/phoneprov/configs/custom.cfg  ; Custom variable | 
					
						
							| 
									
										
										
										
											2011-02-03 16:13:40 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ;snom 300, 320, 360, 370, 820, 821, 870 support | 
					
						
							|  |  |  | snom-${MAC}.xml => snom-mac.xml |