2019-12-17 18:41:24 +01:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
<Contacts>
|
2019-12-18 21:14:56 +01:00
|
|
|
|
{foreach $contacts as $row}
|
|
|
|
|
|
{if $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
|
|
|
|
|
<Contact id="{$row.phone_number}">
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<Name>
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<First>{$row.contact_name_given}</First>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<Middle></Middle>
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<Last>{$row.contact_name_family}</Last>
|
|
|
|
|
|
<Display>{$row.contact_name_given} {$row.contact_name_family}</Display>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
</Name>
|
|
|
|
|
|
<Phone>
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<Type>Work</Type>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- Possible value one of the following: Work or Home -->
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<Type>IPPhone</Type>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- Possible value one the following: Phone, Cell, Pager, IPPhone, -->
|
|
|
|
|
|
<!-- Fax, Pager or Custom -->
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<Phone>{$row.phone_number}</Phone>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- 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 -->
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<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 -->
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- If not provided Zoiper will use the XML contact service account (by default it’s the default account) -->
|
2019-12-18 21:14:56 +01:00
|
|
|
|
<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 -->
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- By default it’s do not use unless it is an IPPhone type -->
|
2019-12-18 22:03:21 +01:00
|
|
|
|
<AccountMappingType>Service</AccountMappingType>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- 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 -->
|
2019-12-18 22:03:21 +01:00
|
|
|
|
<PresenceMappingType>Service</PresenceMappingType>
|
2019-12-17 18:41:24 +01:00
|
|
|
|
<!-- Possible value one of the following: -->
|
|
|
|
|
|
<!-- None = do not use -->
|
|
|
|
|
|
<!-- Service = the account used by XML contact service. -->
|
|
|
|
|
|
<!-- Custom = when this is used, the ident valueof the account should be provided in <presence></Presence>, it is found in the config.xml -->
|
|
|
|
|
|
</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>
|
2019-12-18 21:14:56 +01:00
|
|
|
|
{/if}
|
|
|
|
|
|
{/foreach}
|
2019-12-17 18:41:24 +01:00
|
|
|
|
</Contacts>
|