-
-
Save bradland/bb7eb53cd8934de17778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!version:1.0.0.1 | |
#Enable or disable the phone to check the new configuration repeatedly; 0-Disabled (default), 1-Enabled; | |
auto_provision.repeat.enable = 1 | |
#Configure the interval (in minutes) the phone repeatedly checks the new configuration. The default is 1440. | |
auto_provision.repeat.minutes = 60 | |
#Configure the time zone and time zone name. The time zone ranges from -11 to +12, the default value is +8. | |
local_time.time_zone = {$timezoneString} | |
local_time.time_zone_name = {$timezoneString} | |
#Configure the domain name or the IP address of the NTP server. The default value is cn.pool.ntp.org. | |
local_time.ntp_server1 = {$NTP_PRIMARY} | |
local_time.ntp_server2 = | |
#Configure the update interval (in seconds) when using the NTP server. The default value is 1000. | |
local_time.interval = {$NTP_REFRESH} | |
#Configure the daylight saving time feature; 0-Disabled, 1-Enabled, 2-Automatic (default); | |
local_time.summer_time = 0 | |
#Configure the DST type when the DST feature is enabled; 0-By Date (default), 1-By Week; | |
local_time.dst_time_type = 0 | |
#Configure the dialnow rule for the phone. X ranges from 1 to 10; | |
@//Q: Why is the dialplan implemented inline and not using the DialPlan.xml? | |
@//A: The contents of the xml file varies between models: | |
@// T46 expects <dialnow>...</dialnow> | |
@// T36 expects <DialNow>...</DialNow> | |
{$DIALPLAN_dialnow} | |
#ringtone.url = tftp://{$OPERATOR_IP}/yealink/ringtone | |
#Configure the delay time (in seconds) for the dialnow rule. It ranges from 1 to 14, the default value is 1. | |
phone_setting.dialnow_delay = 0 | |
#disable voicemail beep | |
voice.tone.stutter = 0 | |
#disable screensaver | |
phone_setting.screen_saver_time = 0 | |
@ if ($DIRECTORY_ENABLED) { | |
#Configure the search criteria for name and number lookups. | |
ldap.enable = 1 | |
ldap.name_filter = {$DIRECTORY_NAME_FILTER} | |
ldap.number_filter = {$DIRECTORY_NUMBER_FILTER} | |
ldap.host = {$DIRECTORY_HOSTNAME} | |
ldap.port = {$DIRECTORY_PORT} | |
ldap.base = {$DIRECTORY_SEARCH_BASE} | |
ldap.user = {$DIRECTORY_USERNAME} | |
ldap.password = {$DIRECTORY_PASSWORD} | |
ldap.name_attr = {$DIRECTORY_FIRST_NAME} {$DIRECTORY_LAST_NAME} {$DIRECTORY_COMMON_NAME} | |
ldap.numb_attr = {$DIRECTORY_NUMBER_ATTRIBUTES} | |
ldap.display_name = %{$DIRECTORY_COMMON_NAME} | |
#Enable or disable the phone to sort the search results in alphabetical order; 0-Disabled (default), 1-Enabled; | |
ldap.ldap_sort = 1 | |
#Conifugre the search delay time. It ranges from 0 to 2000 (default). | |
ldap.search_delay = 50 | |
@ } | |
#Configure the time (in seconds) the phone automatically dial out the dialed digits. It ranges from 1 to 14, the default value is 4. | |
phone_setting.inter_digit_time = {$AUTODIAL_TIMEOUT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!version:1.0.0.1 | |
#Phone model: {$model} | |
#Set the password of the user or the administrator, the value format is: user:password or admin:password; | |
security.user_password = admin:{$ADMIN_PASSWORD} | |
@ if ($DISPLAY_LOGO && $logo_path) { | |
@ if ('img' === $logo_type) { | |
wallpaper_upload.url = http://{$OPERATOR_IP}{$logo_path}.png | |
phone_setting.backgrounds = Config:{basename($logo_path)}.png | |
@ } else if ('dob' === $logo_type) { | |
lcd_logo.url = http://{$OPERATOR_IP}{$logo_path}.dob | |
phone_setting.lcd_logo.mode = 2 | |
@ } | |
@ } | |
@if ($firmware_path) { | |
firmware.url = http://{$OPERATOR_IP}{$firmware_path} | |
@} | |
@ for ($i = 1; $i <= $MAX_LINES; $i++) { | |
@ $enabled = isset($LINES[$i - 1]); | |
@ if ($enabled) { | |
@ $data = $LINES[$i -1]; | |
@ $displayName = ($data['USER_FULLNAME'] ? $data['USER_FULLNAME'] . ' ' : '') . $data['TELNUM'] ; | |
@ } | |
#Enable or disable the account 1; 0-Disabled (default), 1-Enabled; | |
account.{$i}.enable = {($enabled ? 1 : 0)} | |
#Configure the label displayed on the LCD screen for account 1. | |
account.{$i}.label = {($enabled ? $data['SIP_USERNAME'] : '')} | |
#Configure the display name of account 1. | |
account.{$i}.display_name = {($enabled ? $displayName : '')} | |
#Configure the username and password for register authentication. | |
account.{$i}.auth_name = {($enabled ? $data['SIP_USERNAME'] : '')} | |
account.{$i}.password = {($enabled ? $data['SIP_PASSWORD'] : '')} | |
#Configure the register user name. | |
account.{$i}.user_name = {($enabled ? $data['SIP_USERNAME'] : '')} | |
#Configure the SIP server address. | |
account.{$i}.sip_server_host = {($enabled ? $OPERATOR_IP : '')} | |
#Configure the voice mail number of account 1. | |
voice_mail.number.{$i} = {$VOICEMAIL_EXT} | |
#Configure the call mode; 0-Voice, 1-Video (default); | |
account.{$i}.call_option.call_mode = 0 | |
#Enable or disable the phone to display the local video during call; 0-Disabled, 1-Enabled (default); | |
account.{$i}.call_option.local_video_enable = 0 | |
#Enable or disable the phone to subscribe the message waiting indicator; 0-Disabled (default), 1-Enabled; | |
account.{$i}.subscribe_mwi = 1 | |
#Enable or disable the phone to subscribe to the voicemail through the message waiting indicator; 0-Disabled (default), 1-Enabled; | |
#account.{$i}.subscribe_mwi_to_vm = | |
#Audio codecs for account 1 (Y ranges from 1 to 7). | |
account.{$i}.codec.1.enable = 1 | |
account.{$i}.codec.1.payload_type = PCMA | |
account.{$i}.codec.1.priority = 2 | |
account.{$i}.codec.1.rtpmap = 8 | |
account.{$i}.codec.2.enable = 1 | |
account.{$i}.codec.2.payload_type = PCMU | |
account.{$i}.codec.2.priority = 1 | |
account.{$i}.codec.2.rtpmap = 0 | |
account.{$i}.codec.3.enable = 1 | |
account.{$i}.codec.3.payload_type = G729 | |
account.{$i}.codec.3.priority =3 | |
account.{$i}.codec.3.rtpmap = 18 | |
account.{$i}.codec.4.enable = 1 | |
account.{$i}.codec.4.payload_type = G722 | |
account.{$i}.codec.4.priority = 4 | |
account.{$i}.codec.4.rtpmap = 9 | |
account.{$i}.codec.5.enable = 0 | |
account.{$i}.codec.5.payload_type = G723 | |
account.{$i}.codec.5.priority = 5 | |
account.{$i}.codec.5.rtpmap = 4 | |
account.{$i}.codec.6.enable = 0 | |
account.{$i}.codec.6.payload_type = AACLC | |
account.{$i}.codec.6.priority = 6 | |
account.{$i}.codec.6.rtpmap = 102 | |
account.{$i}.codec.7.enable = 0 | |
account.{$i}.codec.7.payload_type = iLBC | |
account.{$i}.codec.7.priority = 7 | |
account.{$i}.codec.7.rtpmap = 122 | |
@ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment