Update phonebook.xml

This commit is contained in:
FusionPBX 2019-11-21 10:24:47 -07:00 committed by GitHub
parent 2fd8b98bc3
commit f9e65e89f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 98 additions and 32 deletions

View File

@ -14,38 +14,104 @@
</pbgroup>
{foreach $contacts as $row}
{if $row.category == "users"}
{$start_id=1}
<Contact>
<id>{$start_id}</id>
{if $row.contact_name_given != ""}
<FirstName>{$row.contact_name_given}</FirstName>
<LastName>{$row.contact_name_family}</LastName>
<JobTitle></JobTitle>
{foreach $row.numbers as $number}
{if $number.phone_number != ""}
<Frequent>0</Frequent>
<Phone type="Work">
<phonenumber>{$number.phone_number}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Home">
<phonenumber>{$number.phone_extension}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Cell">
<phonenumber>{$number.phone_mobile}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Group>6</Group>
<Primary>0</Primary>
<Department></Department>
<Job></Job>
<Company></Company>
{if $row.category == "users"}
{$start_id=1}
<Contact>
<id>{$start_id}</id>
{if $row.contact_name_given != ""}
<FirstName>{$row.contact_name_given}</FirstName>
<LastName>{$row.contact_name_family}</LastName>
<JobTitle></JobTitle>
{foreach $row.numbers as $number}
{if $number.phone_number != ""}
<Frequent>0</Frequent>
<Phone type="Work">
<phonenumber>{$number.phone_number}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Home">
<phonenumber>{$number.phone_extension}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Cell">
<phonenumber>{$number.phone_mobile}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Group>6</Group>
<Primary>0</Primary>
<Department></Department>
<Job></Job>
<Company></Company>
{/if}
{if $row.category == "groups"}
{$start_id=1}
<Contact>
<id>{$start_id}</id>
{if $row.contact_name_given != ""}
<FirstName>{$row.contact_name_given}</FirstName>
<LastName>{$row.contact_name_family}</LastName>
<JobTitle></JobTitle>
{foreach $row.numbers as $number}
{if $number.phone_number != ""}
<Frequent>0</Frequent>
<Phone type="Work">
<phonenumber>{$number.phone_number}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Home">
<phonenumber>{$number.phone_extension}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Cell">
<phonenumber>{$number.phone_mobile}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Group>6</Group>
<Primary>0</Primary>
<Department></Department>
<Job></Job>
<Company></Company>
{/if}
{if $row.category == "extensions"}
{$start_id=1}
<Contact>
<id>{$start_id}</id>
{if $row.contact_name_given != ""}
<FirstName>{$row.contact_name_given}</FirstName>
<LastName>{$row.contact_name_family}</LastName>
<JobTitle></JobTitle>
{foreach $row.numbers as $number}
{if $number.phone_number != ""}
<Frequent>0</Frequent>
<Phone type="Work">
<phonenumber>{$number.phone_number}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Home">
<phonenumber>{$number.phone_extension}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Phone type="Cell">
<phonenumber>{$number.phone_mobile}</phonenumber>
<accountindex>0</accountindex>
</Phone>
<Group>6</Group>
<Primary>0</Primary>
<Department></Department>
<Job></Job>
<Company></Company>
{/if}
{/foreach}
</Contact>