Enable the directory for speed dial and enterprise categories.

This commit is contained in:
markjcrane 2015-10-28 22:07:43 -06:00
parent 3f2ccf8b23
commit 3472707e96
5 changed files with 59 additions and 29 deletions

View File

@ -121,7 +121,7 @@ time_format_24hr: "0"
#services_url: "http://{$domain_name}/app/provision/?file=services.php"
# URL for external Directory location
#directory_url: "http://{$domain_name}/app/provision/?file=directory.php"
directory_url: "http://{$domain_name}/app/provision/?file=directory.php"
# URL for branding logo
#logo_url: "http://{$domain_name}/app/provision/logo.bmp"

View File

@ -1,19 +1,28 @@
<CiscoIPPhoneMenu>
<Title>Speed Dials</Title>
<Title>Enterprise</Title>
<Prompt>Please choose...</Prompt>
<SoftKeyItem>
<Name>Dial</Name>
<URL>SoftKey:Select</URL>
<Position>1</Position>
</SoftKeyItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
{assign var=x value=1}
{foreach $contacts as $row}
{if $row.contact_category == "enterprise"}
<MenuItem>
{if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_organization}</Name>
{/if}
{if $row.phone_number != ""}
<URL>Dial:{$row.phone_number}#</URL>
{else}
<URL>Dial:{$row.phone_extension}#</URL>
{/if}
</MenuItem>
{/if}
{/foreach}
<SoftKeyItem>
<Name>Exit</Name>
<URL>SoftKey:Exit</URL>

View File

@ -1,19 +1,28 @@
<CiscoIPPhoneMenu>
<Title>Speed Dials</Title>
<Title>Personal</Title>
<Prompt>Please choose...</Prompt>
<SoftKeyItem>
<Name>Dial</Name>
<URL>SoftKey:Select</URL>
<Position>1</Position>
</SoftKeyItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
{assign var=x value=1}
{foreach $contacts as $row}
{if $row.contact_category == "personal"}
<MenuItem>
{if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_organization}</Name>
{/if}
{if $row.phone_number != ""}
<URL>Dial:{$row.phone_number}#</URL>
{else}
<URL>Dial:{$row.phone_extension}#</URL>
{/if}
</MenuItem>
{/if}
{/foreach}
<SoftKeyItem>
<Name>Exit</Name>
<URL>SoftKey:Exit</URL>

View File

@ -1,19 +1,29 @@
<CiscoIPPhoneMenu>
<Title>Speed Dials</Title>
<Title>Speed Dial</Title>
<Prompt>Please choose...</Prompt>
<SoftKeyItem>
<Name>Dial</Name>
<URL>SoftKey:Select</URL>
<Position>1</Position>
</SoftKeyItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
<MenuItem>
<Name>First Last Name (Ext) Type</Name>
<URL>Dial:5551231234#</URL>
</MenuItem>
{assign var=x value=1}
{foreach $contacts as $row}
{if $row.contact_category == "speed dial"}
<MenuItem>
{if $row.contact_name_given != ""}
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
{else}
<Name>{$row.contact_organization}</Name>
{/if}
{if $row.phone_number != ""}
<URL>Dial:{$row.phone_number}#</URL>
{else}
<URL>Dial:{$row.phone_extension}#</URL>
{/if}
</MenuItem>
{/if}
{assign var=x value=$x+1}
{/foreach}
<SoftKeyItem>
<Name>Exit</Name>
<URL>SoftKey:Exit</URL>

View File

@ -1,16 +1,18 @@
<CiscoIPPhoneMenu>
<Title>Contacts</Title>
<Prompt>Please choose...</Prompt>
<!--
<MenuItem>
<Name>Personal</Name>
<URL>http://{$domain_name}/app/provision?file=directory-personal.xml&amp;mac={$mac}</URL>
</MenuItem>
-->
<MenuItem>
<Name>Enterprise</Name>
<URL>http://{$domain_name}/app/provision?file=directory-enterprise&amp;mac={$mac}</URL>
</MenuItem>
<MenuItem>
<Name>Speed Dials</Name>
<Name>Speed Dial</Name>
<URL>http://{$domain_name}/app/provision/?file=directory-speed_dial&amp;mac={$mac}</URL>
</MenuItem>
<SoftKeyItem>