directory.xml

This commit is contained in:
FusionPBX 2022-08-09 14:13:53 -06:00 committed by GitHub
parent d67fa590bd
commit 59b42035e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<CiscoIPPhoneDirectory>
{foreach $contacts as $row}
<DirectoryEntry>
{if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_organization}</Name>
{/if}
{if $row.phone_number != ""}
<Telephone>{$row.phone_number}</Telephone>
{else}
<Telephone>{$row.phone_extension}</Telephone>
{/if}
</DirectoryEntry>
{/foreach}
</CiscoIPPhoneDirectory>