Update directory.xml
This commit is contained in:
@@ -1,35 +1,37 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Contacts>
|
<Contacts>
|
||||||
<Contact id="123">
|
{foreach $contacts as $row}
|
||||||
|
{if $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||||
|
<Contact id="{$row.phone_number}">
|
||||||
<Name>
|
<Name>
|
||||||
<First></First>
|
<First>{$row.contact_name_given}</First>
|
||||||
<Middle></Middle>
|
<Middle></Middle>
|
||||||
<Last></Last>
|
<Last>{$row.contact_name_family}</Last>
|
||||||
<Display></Display>
|
<Display>{$row.contact_name_given} {$row.contact_name_family}</Display>
|
||||||
</Name>
|
</Name>
|
||||||
<Phone>
|
<Phone>
|
||||||
<Type></Type>
|
<Type>Work</Type>
|
||||||
<!-- Possible value one of the following: Work or Home -->
|
<!-- Possible value one of the following: Work or Home -->
|
||||||
<Type></Type>
|
<Type>IPPhone</Type>
|
||||||
<!-- Possible value one the following: Phone, Cell, Pager, IPPhone, -->
|
<!-- Possible value one the following: Phone, Cell, Pager, IPPhone, -->
|
||||||
<!-- Fax, Pager or Custom -->
|
<!-- Fax, Pager or Custom -->
|
||||||
<Phone></Phone>
|
<Phone>{$row.phone_number}</Phone>
|
||||||
<!-- The value is the actual phone number of the contact. -->
|
<!-- The value is the actual phone number of the contact. -->
|
||||||
<!-- For the contact to show in zoiper5 at least one phone field should -->
|
<!-- For the contact to show in zoiper5 at least one phone field should -->
|
||||||
<!-- be present -->
|
<!-- be present -->
|
||||||
<Account></Account>
|
<Account>{$account.1.auth_id}</Account>
|
||||||
<!-- The value is the ident valueof the account that will be used for dialing,it is found in the config.xml file -->
|
<!-- 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 it’s the default account) -->
|
<!-- If not provided Zoiper will use the XML contact service account (by default it’s the default account) -->
|
||||||
<Presence></Presence>
|
<Presence>{$account.1.auth_id}</Presence>
|
||||||
<!-- The ident valueof the account that willbe used for presence, it is found in the config.xml file -->
|
<!-- The ident value of the account that will be used for presence, it is found in the config.xml file -->
|
||||||
<!-- By default it’s do not use unless it is an IPPhone type -->
|
<!-- By default it’s do not use unless it is an IPPhone type -->
|
||||||
<AccountMappingType></AccountMappingType>
|
<AccountMappingType>Custom</AccountMappingType>
|
||||||
<!-- Possible value one of the following: -->
|
<!-- Possible value one of the following: -->
|
||||||
<!-- None = do not use -->
|
<!-- None = do not use -->
|
||||||
<!-- Default = the default account used by zoiper5 -->
|
<!-- Default = the default account used by zoiper5 -->
|
||||||
<!-- Service = the account used by XML contact service -->
|
<!-- 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 -->
|
<!-- 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: -->
|
<!-- Possible value one of the following: -->
|
||||||
<!-- None = do not use -->
|
<!-- None = do not use -->
|
||||||
<!-- Service = the account used by XML contact service. -->
|
<!-- Service = the account used by XML contact service. -->
|
||||||
@@ -37,4 +39,6 @@
|
|||||||
</Phone>
|
</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 -->
|
<!-- 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>
|
</Contact>
|
||||||
|
{/if}
|
||||||
|
{/foreach}
|
||||||
</Contacts>
|
</Contacts>
|
||||||
|
|||||||
Reference in New Issue
Block a user