C520 directory changes to template (#6982)

* added directory to Snom C520

* uri change

* minor changes to the template

* added number_type in xml to fix directory
This commit is contained in:
Antonio Fernandez 2024-05-29 13:25:10 -04:00 committed by GitHub
parent 03c78e45bc
commit 0ae13e26c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<tbook e="2" complete="true">
{foreach $contacts as $row}
<item context="active" type="{if $row.category == "extensions"}colleagues{else}none{/if}" index="{$row@index}">
<first_name>{$row.contact_name_given}</first_name>
<last_name>{$row.contact_name_family}</last_name>
<number>{if $row.category == "extensions"}{$row.phone_extension}{else}{$row.phone_number}{/if}</number>
<number_type>business</number_type>
</item>
{/foreach}
</tbook>

View File

@ -1,4 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<file>
<contact>
<directory>
<overwrite>https://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}{$project_path}/app/provision/{$mac}/directory.xml</overwrite>
</directory>
</contact>
</file>
<profile>
<admin>
<access_password>{$admin_password}</access_password>
</admin>
<user>
<access_password>{$admin_password}</access_password>
</user>
</profile>
<settings>
<call_settings>
<account>