Add. Support Escene phone book (#1598)

This commit is contained in:
Alexey Melnichuk 2016-05-13 17:35:47 +03:00 committed by FusionPBX
parent db94844594
commit 2bc963c82b
2 changed files with 29 additions and 2 deletions

View File

@ -1,4 +1,5 @@
<all> <all>
{if $smarty.server.HTTPS == "on"}{$https=true}{else}{$https=false}{/if}
<SipDSPs> <SipDSPs>
<!-- JITTERBUFFER 0 - adjust, 1 - fixed --> <!-- JITTERBUFFER 0 - adjust, 1 - fixed -->
<dsp <dsp
@ -106,7 +107,7 @@
AutoPrivisionFlag="1" AutoPrivisionFlag="1"
DHCPOptionFlag="1" DHCPOptionFlag="1"
DHCPOptionValue="66" DHCPOptionValue="66"
protocol="1" protocol={if $https}"3"{else}"1"{/if}
Firmware="{$domain_name}{$project_path}/app/provision" Firmware="{$domain_name}{$project_path}/app/provision"
username="" username=""
password="" password=""
@ -116,7 +117,7 @@
Downloadconfig="1" Downloadconfig="1"
DownloadExtension="1" DownloadExtension="1"
DownloadPhonebook="0" DownloadPhonebook="0"
DownloadPersonPhonebook="0" DownloadPersonPhonebook="1"
Bootingchecked="1" Bootingchecked="1"
ZeroActive="0" ZeroActive="0"
WaitTime="10" WaitTime="10"

View File

@ -0,0 +1,26 @@
<all>
{foreach $contacts as $contact}
{$contact_groups[$contact.contact_category]=true}
{/foreach}
<PhoneGroups>
{$i=0}
{foreach $contact_groups as $name => $true}
<group id="{$i}" groupid="{$i}" name="{$name}" Descriptor="" RingType="" />
{$i=$i+1}
{/foreach}
</PhoneGroups>
<PhoneBooks>
{$i=0}
{foreach $contacts as $contact}
<book
id="{$i}" Bookid="{$i}" speedid="0" accountid="127" NewVer="1" ISUseBLF="0"
GroupName="{$contact.contact_category}" GroupNameTwo="" FirstName="{$contact.contact_name_given}" LastName="{$contact.contact_name_family}"
MobileNum="{$contact.phone_number_mobile}" OfficeNum="{$contact.phone_number_work}" OtherNum=""
Username="{$contact.contact_name_given}{$contact.contact_name_family}"
/>
{$i=$i+1}
{/foreach}
</PhoneBooks>
</all>