Update directory.xml

This commit is contained in:
FusionPBX
2019-12-18 13:14:56 -07:00
committed by GitHub
parent 3e5f93128f
commit 71e54b4b2a

View File

@@ -1,35 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<Contacts>
<Contact id="123">
{foreach $contacts as $row}
{if $smarty.get.contacts == "extensions" && $row.category == "extensions"}
<Contact id="{$row.phone_number}">
<Name>
<First></First>
<First>{$row.contact_name_given}</First>
<Middle></Middle>
<Last></Last>
<Display></Display>
<Last>{$row.contact_name_family}</Last>
<Display>{$row.contact_name_given} {$row.contact_name_family}</Display>
</Name>
<Phone>
<Type></Type>
<Type>Work</Type>
<!-- Possible value one of the following: Work or Home -->
<Type></Type>
<Type>IPPhone</Type>
<!-- Possible value one the following: Phone, Cell, Pager, IPPhone, -->
<!-- Fax, Pager or Custom -->
<Phone></Phone>
<Phone>{$row.phone_number}</Phone>
<!-- The value is the actual phone number of the contact. -->
<!-- For the contact to show in zoiper5 at least one phone field should -->
<!-- be present -->
<Account></Account>
<!-- The value is the ident valueof the account that will be used for dialing,it is found in the config.xml file -->
<Account>{$account.1.auth_id}</Account>
<!-- The value is the ident value of the account that will be used for dialing,it is found in the config.xml file -->
<!-- If not provided Zoiper will use the XML contact service account (by default its the default account) -->
<Presence></Presence>
<!-- The ident valueof the account that willbe used for presence, it is found in the config.xml file -->
<Presence>{$account.1.auth_id}</Presence>
<!-- The ident value of the account that will be used for presence, it is found in the config.xml file -->
<!-- By default its do not use unless it is an IPPhone type -->
<AccountMappingType></AccountMappingType>
<AccountMappingType>Custom</AccountMappingType>
<!-- Possible value one of the following: -->
<!-- None = do not use -->
<!-- Default = the default account used by zoiper5 -->
<!-- Service = the account used by XML contact service -->
<!-- Custom = when this is used, the ident value of the account should be provided in <Account></Account>, it is found in the config.xml -->
<PresenceMappingType>None/Service/Custom</PresenceMappingType>
<PresenceMappingType>Custom</PresenceMappingType>
<!-- Possible value one of the following: -->
<!-- None = do not use -->
<!-- Service = the account used by XML contact service. -->
@@ -37,4 +39,6 @@
</Phone>
<!-- If required more than one phone for a contact a new phone tag should be added that includes at least the two types tags and phone tag -->
</Contact>
{/if}
{/foreach}
</Contacts>