fusionpbx/resources/templates/provision/cisco/7940/directory-speed_dial.xml

33 lines
815 B
XML

<CiscoIPPhoneMenu>
<Title>Speed Dial</Title>
<Prompt>Please choose...</Prompt>
<SoftKeyItem>
<Name>Dial</Name>
<URL>SoftKey:Select</URL>
<Position>1</Position>
</SoftKeyItem>
{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>
<Position>4</Position>
</SoftKeyItem>
</CiscoIPPhoneMenu>