mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Add Yealink T40G Template (#2940)
* Add new Yealink MWI Subscribe Variable Adds new variable in Yealink provisioning templates to allow control of MWI subscribe setting behavior on all accounts. Setting the new variable once affects all accounts. New variable: yealink_subscribe_mwi_to_vm. Setting affected: account.X.subscribe_mwi_to_vm setting Phones affected: T1x T2x T3x T4x May affect MWI subscription behavior. Yealink default is 0, many of the old templates hard coded 1. This change may affect MWI behavior for some users, so check to make sure the variable is added in FusionPBX to match your previous settings before upgrading. * Add Yealink alert_info Distinctive Ring Variables Adds new variables in Yealink provisioning templates to allow control of distinctive ring text and distinctive ringtone options. New variables: yealink_ring_text_X yealink_ring_file_X Setting affected: distinctive_ring_tones.alert_info.X.text distinctive_ring_tones.alert_info.X.ringer Phones affected: T1x T2x T3x T4x T5x User Effect This should not have any effect on existing provisioning settings unless the new variables are defined. * Add files via upload * Fix yealink_firmware_url
This commit is contained in:
74
resources/templates/provision/yealink/t40g/directory.xml
Normal file
74
resources/templates/provision/yealink/t40g/directory.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<YealinkIPPhoneDirectory>
|
||||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</YealinkIPPhoneDirectory>
|
||||
@@ -0,0 +1,8 @@
|
||||
<root_favorite_set>
|
||||
<item id_name="localdirectory" display_name="Local Directory" priority="2" enable="0" />
|
||||
<item id_name="history" display_name="History" priority="3" enable="1" />
|
||||
<item id_name="networkcalllog" display_name="Network CallLog" priority="4" enable="0" />
|
||||
<item id_name="remotedirectory" display_name="Remote Phone Book" priority="5" enable="1" />
|
||||
<item id_name="ldap" display_name="LDAP" priority="1" enable="0" />
|
||||
<item id_name="networkdirectory" display_name="Network Directory" priority="6" enable="0" />
|
||||
</root_favorite_set>
|
||||
@@ -0,0 +1,4 @@
|
||||
#!version:1.0.0.1
|
||||
## The header above must appear as-is in the first line
|
||||
|
||||
#overwrite_mode = 1
|
||||
1587
resources/templates/provision/yealink/t40g/y000000000076.cfg
Normal file
1587
resources/templates/provision/yealink/t40g/y000000000076.cfg
Normal file
File diff suppressed because it is too large
Load Diff
3119
resources/templates/provision/yealink/t40g/{$mac}.cfg
Normal file
3119
resources/templates/provision/yealink/t40g/{$mac}.cfg
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1583,5 +1583,5 @@ directory_setting.url = https://{if isset($http_auth_username)}{$http_auth_usern
|
||||
## Configure the access URL of firmware ##
|
||||
#######################################################################################
|
||||
#Before using this parameter, you should store the desired firmware (x.71.x.x.rom) to the provisioning server.
|
||||
firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t41p}
|
||||
firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t40p}
|
||||
|
||||
|
||||
@@ -276,7 +276,7 @@ static.redirect.password =
|
||||
#######################################################################################
|
||||
## Firmware Update ##
|
||||
#######################################################################################
|
||||
static.firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t46s}
|
||||
static.firmware.url = {$yealink_firmware_url}/{$yealink_firmware_t42s}
|
||||
|
||||
|
||||
#######################################################################################
|
||||
|
||||
Reference in New Issue
Block a user