SOLVED Config Template to Remove VPK and MPK Settings

Status
Not open for further replies.

Caleb

Member
Sep 12, 2017
42
17
8
WA, USA
The current config template for Grandstream GXP2130, 35, 40, 60, and 70 phones doesn't reset the MPK and VPK settings when a key's "Type" in the device's properties is set to the blank option; the next time the phone checks for a provision file, the respective P-option will simply not be present, and the phone will leave the respective settings as-is. To fix this issue, we've updated the blocks of code that set the type ID (near the end of the template file in the GXP2130 template) to look like this:

{if $row.device_key_type == "speed dial"} <P{$type_id}>0</P{$type_id}>
{elseif $row.device_key_type == "blf"} <P{$type_id}>1</P{$type_id}>
{elseif $row.device_key_type == "presence watcher"} <P{$type_id}>2</P{$type_id}>
{elseif $row.device_key_type == "eventlist blf"} <P{$type_id}>3</P{$type_id}>
{elseif $row.device_key_type == "speed dial active"} <P{$type_id}>4</P{$type_id}>
{elseif $row.device_key_type == "dial dtmf"} <P{$type_id}>5</P{$type_id}>
{elseif $row.device_key_type == "voicemail"} <P{$type_id}>6</P{$type_id}>
{elseif $row.device_key_type == "call return"} <P{$type_id}>7</P{$type_id}>
{elseif $row.device_key_type == "transfer"} <P{$type_id}>8</P{$type_id}>
{elseif $row.device_key_type == "call park"} <P{$type_id}>16</P{$type_id}>
{elseif $row.device_key_type == "intercom"} <P{$type_id}>10</P{$type_id}>
{elseif $row.device_key_type == "ldap search"} <P{$type_id}>11</P{$type_id}>
{else} <P{$type_id}>-1</P{$type_id}>
{/if}
 
Status
Not open for further replies.