Add additional Polycom key types.

This commit is contained in:
markjcrane
2015-11-12 16:40:02 -07:00
parent c385f5fc0f
commit c13ed1323f
4 changed files with 144 additions and 16 deletions

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PHONE>
<REGISTRATION
{foreach $lines as $row}reg.{$row.line_number}.displayName="{$row.user_id}"
{foreach $lines as $row}reg.{$row.line_number}.displayName="{$row.display_name}"
reg.{$row.line_number}.address="{$row.user_id}"
reg.{$row.line_number}.label="{$row.user_id}"
reg.{$row.line_number}.label="{$row.display_name}"
reg.{$row.line_number}.type="private"
reg.{$row.line_number}.auth.userId="{$row.user_id}"
reg.{$row.line_number}.auth.password="{$row.password}"
@@ -57,12 +57,26 @@
attendant.behaviors.display.remoteCallerID.normal="1"
attendant.behaviors.display.spontaneousCallAppearances.automata="1"
attendant.behaviors.display.spontaneousCallAppearances.normal="0"
{foreach $keys as $row}{if $row.device_key_category == "line"}{if $row.device_key_type != "line"}attendant.resourceList.{$row.device_key_id}.address="{$row.device_key_value}"
attendant.resourceList.{$row.device_key_id}.callAddress=""
attendant.resourceList.{$row.device_key_id}.label="{$row.device_key_label}"
attendant.resourceList.{$row.device_key_id}.proceedingIsRecipient="0"
attendant.resourceList.{$row.device_key_id}.type="{$row.device_key_type}"
{/if}{/if}
feature.enhancedFeatureKeys.enabled="1"
{foreach $keys as $row}
{if $row.device_key_category == "line"}
{if $row.device_key_type == "automata" && $row.device_key_type == "normal"}
attendant.resourceList.{$row.device_key_id}.address="{$row.device_key_value}"
attendant.resourceList.{$row.device_key_id}.callAddress=""
attendant.resourceList.{$row.device_key_id}.label="{$row.device_key_label}"
attendant.resourceList.{$row.device_key_id}.proceedingIsRecipient="0"
attendant.resourceList.{$row.device_key_id}.type="{$row.device_key_type}"
{else}
{if $row.device_key_type != "line"}
{if $row.device_key_type == "URL"}
key.{$row.device_key_id}.function.prim="{$row.device_key_value}"
{else}
key.{$row.device_key_id}.function.prim="{$row.device_key_type}"
key.{$row.device_key_id}.subPoint.prim="{$row.device_key_value}"
{/if}
{/if}
{/if}
{/if}
{/foreach}
/>
<MULTICAST_PAGING
@@ -79,5 +93,6 @@
voice.volume.persist.handset="1"
{if $headset_mode != ''}up.handsfreeMode="1"
up.headsetMode="{$headset_mode}"{/if}
{if $analog_headset_option != ''}up.analogHeadsetOption="{$analog_headset_option}"{/if}
/>
</PHONE>

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PHONE>
<REGISTRATION
{foreach $lines as $row}reg.{$row.line_number}.displayName="{$row.user_id}"
{foreach $lines as $row}reg.{$row.line_number}.displayName="{$row.display_name}"
reg.{$row.line_number}.address="{$row.user_id}"
reg.{$row.line_number}.label="{$row.user_id}"
reg.{$row.line_number}.label="{$row.display_name}"
reg.{$row.line_number}.type="private"
reg.{$row.line_number}.auth.userId="{$row.user_id}"
reg.{$row.line_number}.auth.password="{$row.password}"
@@ -57,12 +57,26 @@
attendant.behaviors.display.remoteCallerID.normal="1"
attendant.behaviors.display.spontaneousCallAppearances.automata="1"
attendant.behaviors.display.spontaneousCallAppearances.normal="0"
{foreach $keys as $row}{if $row.device_key_category == "line"}{if $row.device_key_type != "line"}attendant.resourceList.{$row.device_key_id}.address="{$row.device_key_value}"
attendant.resourceList.{$row.device_key_id}.callAddress=""
attendant.resourceList.{$row.device_key_id}.label="{$row.device_key_label}"
attendant.resourceList.{$row.device_key_id}.proceedingIsRecipient="0"
attendant.resourceList.{$row.device_key_id}.type="{$row.device_key_type}"
{/if}{/if}
feature.enhancedFeatureKeys.enabled="1"
{foreach $keys as $row}
{if $row.device_key_category == "line"}
{if $row.device_key_type == "automata" && $row.device_key_type == "normal"}
attendant.resourceList.{$row.device_key_id}.address="{$row.device_key_value}"
attendant.resourceList.{$row.device_key_id}.callAddress=""
attendant.resourceList.{$row.device_key_id}.label="{$row.device_key_label}"
attendant.resourceList.{$row.device_key_id}.proceedingIsRecipient="0"
attendant.resourceList.{$row.device_key_id}.type="{$row.device_key_type}"
{else}
{if $row.device_key_type != "line"}
{if $row.device_key_type == "URL"}
key.{$row.device_key_id}.function.prim="{$row.device_key_value}"
{else}
key.{$row.device_key_id}.function.prim="{$row.device_key_type}"
key.{$row.device_key_id}.subPoint.prim="{$row.device_key_value}"
{/if}
{/if}
{/if}
{/if}
{/foreach}
/>
<MULTICAST_PAGING
@@ -79,5 +93,6 @@
voice.volume.persist.handset="1"
{if $headset_mode != ''}up.handsfreeMode="1"
up.headsetMode="{$headset_mode}"{/if}
{if $analog_headset_option != ''}up.analogHeadsetOption="{$analog_headset_option}"{/if}
/>
</PHONE>