mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
* Fix the registration failed after provision Flyingvoice phone. * Fix the parameter configuration of Flyingvoice not displayed in the Default Settings * Fix: after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable and the configuration parameters of Flyingvoice are not displayed by default settings. * Fix after configuring SIP line 1 of Flyingvoice phone, other SIP lines are disable. * Fix the configuration parameters of Flyingvoice are not displayed by default settings. * Fix: when only one sip line's shared line is enable, the shared lines of all SIP lines will be enable. * Fix: unable to generate configuration file of Flyingvoice due to syntax error. * Add the P1X, P2X, P3X, P5X, i86Box, iMetalBox, audioKit Series for Flyingvoice in Devices.
84 lines
2.4 KiB
XML
84 lines
2.4 KiB
XML
<YealinkIPPhoneDirectory>
|
|
{foreach $contacts as $row}
|
|
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
|
<DirectoryEntry>
|
|
{if $row.contact_name_given != ""}
|
|
{if $row.contact_organization != ""}
|
|
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{else}
|
|
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{/if}
|
|
{else}
|
|
<Name>{$row.effective_caller_id_name}</Name>
|
|
{/if}
|
|
{foreach $row.numbers as $number}
|
|
{if $number.phone_number != ""}
|
|
<Telephone>{$number.phone_number}</Telephone>
|
|
{else}
|
|
<Telephone>{$number.phone_extension}</Telephone>
|
|
{/if}
|
|
{/foreach}
|
|
</DirectoryEntry>
|
|
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
|
<DirectoryEntry>
|
|
{if $row.contact_name_given != ""}
|
|
{if $row.contact_organization != ""}
|
|
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{else}
|
|
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{/if}
|
|
{else}
|
|
<Name>{$row.effective_caller_id_name}</Name>
|
|
{/if}
|
|
{foreach $row.numbers as $number}
|
|
{if $number.phone_number != ""}
|
|
<Telephone>{$number.phone_number}</Telephone>
|
|
{else}
|
|
<Telephone>{$number.phone_extension}</Telephone>
|
|
{/if}
|
|
{/foreach}
|
|
</DirectoryEntry>
|
|
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
|
<DirectoryEntry>
|
|
{if $row.contact_name_given != ""}
|
|
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{else}
|
|
<Name>{$row.effective_caller_id_name}</Name>
|
|
{/if}
|
|
{if $row.phone_number != ""}
|
|
<Telephone>{$row.phone_number}</Telephone>
|
|
{else}
|
|
<Telephone>{$row.phone_extension}</Telephone>
|
|
{/if}
|
|
</DirectoryEntry>
|
|
{elseif $smarty.get.contacts == "all"}
|
|
<DirectoryEntry>
|
|
{if $row.contact_name_given != ""}
|
|
{if $row.contact_organization != ""}
|
|
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{else}
|
|
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
{/if}
|
|
{else}
|
|
<Name>{$row.effective_caller_id_name}</Name>
|
|
{/if}
|
|
{if $row.category == "extensions"}
|
|
{if $row.phone_number != ""}
|
|
<Telephone>{$row.phone_number}</Telephone>
|
|
{else}
|
|
<Telephone>{$row.phone_extension}</Telephone>
|
|
{/if}
|
|
{else}
|
|
{foreach $row.numbers as $number}
|
|
{if $number.phone_number != ""}
|
|
<Telephone>{$number.phone_number}</Telephone>
|
|
{else}
|
|
<Telephone>{$number.phone_extension}</Telephone>
|
|
{/if}
|
|
{/foreach}
|
|
{/if}
|
|
</DirectoryEntry>
|
|
{/if}
|
|
{/foreach}
|
|
</YealinkIPPhoneDirectory>
|