forked from fusionpbx/fusionpbx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add provisioning template for Yealink T19P-E2 (fusionpbx#2584)
- Loading branch information
1 parent
06b62af
commit 9fdb3bf
Showing
4 changed files
with
3,346 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
8 changes: 8 additions & 0 deletions
8
resources/templates/provision/yealink/t19p/favorite_setting.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.