mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Update phonebook.xml
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user