Skip to content

Commit

Permalink
Added variables to grandstream configs for idle mute fuction (#6371)
Browse files Browse the repository at this point in the history
* Added varibles to grandstream configs for idle mute fuction
I have changed them all to the default of "0" and then added a
varible called "grandstream_idle_mute_function" that overwrites
the default option of 0

There seems to be older configs where 0 = no instead of dnd
so I've added grandstream_idle_mute_function_old for these configs

* Added curls for grandstream_idle_mute_function
  • Loading branch information
piajesse committed Jun 1, 2022
1 parent 93c7714 commit 3643f98
Show file tree
Hide file tree
Showing 25 changed files with 114 additions and 14 deletions.
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/grp2612/{$mac}.xml
Expand Up @@ -3573,7 +3573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # # Enable Auto Unmute. 0 - No, 1 - Yes. Default is 1 -->
<P8488>0</P8488>
Expand Down
Expand Up @@ -3668,7 +3668,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # # Enable Auto Unmute. 0 - No, 1 - Yes. Default is 1 -->
<P8488>0</P8488>
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/grp2613/{$mac}.xml
Expand Up @@ -4412,7 +4412,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/grp2614/{$mac}.xml
Expand Up @@ -5683,7 +5683,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/grp2615/{$mac}.xml
Expand Up @@ -6714,7 +6714,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/grp2616/{$mac}.xml
Expand Up @@ -7606,7 +7606,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>2</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/grp26xx/{$mac}.xml
Expand Up @@ -6927,7 +6927,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # Enable Auto Unmute. 0 - No, 1 - Yes. Default is 1 -->
<P8488>1</P8488>
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxp110x/{$mac}.xml
Expand Up @@ -1170,7 +1170,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxp116x/{$mac}.xml
Expand Up @@ -1188,7 +1188,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp140x/{$mac}.xml
Expand Up @@ -1481,7 +1481,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}
<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
Expand Down
Expand Up @@ -1481,7 +1481,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}
<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxp1450/{$mac}.xml
Expand Up @@ -1962,7 +1962,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
Expand Down
Expand Up @@ -1769,7 +1769,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxp16xx/{$mac}.xml
Expand Up @@ -2523,7 +2523,11 @@
<!-- Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- Number: 0, 1, 2 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}
<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxp17xx/{$mac}.xml
Expand Up @@ -3630,7 +3630,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- # Number: 0, 1 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2100/{$mac}.xml
Expand Up @@ -3265,7 +3265,11 @@
<!--# Enable Idle Mute. 0 - No, 1 - Yes. Default is 0-->
<!--# Number: 0, 1-->
<!--# Mandatory-->
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!--# Disable Transfer. 0 - No, 1 - Yes. Defauls is 0-->
<!--# Number: 0, 1-->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2124/{$mac}.xml
Expand Up @@ -2216,7 +2216,11 @@
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}
<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2130/{$mac}.xml
Expand Up @@ -7573,7 +7573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2135/{$mac}.xml
Expand Up @@ -7573,7 +7573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2140/{$mac}.xml
Expand Up @@ -7573,7 +7573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2160/{$mac}.xml
Expand Up @@ -7573,7 +7573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp2170/{$mac}.xml
Expand Up @@ -7573,7 +7573,11 @@
<!-- # Mute Key Functions While Idle. 0 - DND, 1 - Idle Mute, 2 - Disabled. Default is 0 -->
<!-- # Number: 0,1,2 -->
<!-- # Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- # DND Override. 0 - Off, 1 - Allow All, 2 - Allow Only Contacts, 3 - Allow Only Favourites. Default is 0 -->
<!-- # Number: 0,1,2,3 -->
Expand Down
4 changes: 4 additions & 0 deletions resources/templates/provision/grandstream/gxp21xx/{$mac}.xml
Expand Up @@ -3029,7 +3029,11 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 -->
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}
<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
Expand Down
Expand Up @@ -3730,7 +3730,11 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 -->
<!-- Enable Idle Mute. 0 - No, 1 - Yes. Default is 0 -->
<!-- Number: 0, 1 -->
<!-- Mandatory -->
<P1565>0</P1565>
{if isset($grandstream_idle_mute_function_old)}
<P1565>{$grandstream_idle_mute_function_old}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Disable Transfer. 0 - No, 1 - Yes. Defauls is 0 -->
<!-- Number: 0, 1 -->
Expand Down
6 changes: 5 additions & 1 deletion resources/templates/provision/grandstream/gxv3240/{$mac}.xml
Expand Up @@ -4109,7 +4109,11 @@

<!-- Mute Key Function While Idle. 0 - DND, 1 - Idle Mute, 2 - Permanent Mute. Default value is 0 -->
<!-- Number: 0,1,2 -->
<P1565>0 </P1565>
{if isset($grandstream_idle_mute_function)}
<P1565>{$grandstream_idle_mute_function}</P1565>
{else}
<P1565>0</P1565>
{/if}

<!-- Auto Unhold When Press the Line Key. 0 - No, 1 - Yes. Default value is 0. -->
<!-- Number: 0, 1 -->
Expand Down

0 comments on commit 3643f98

Please sign in to comment.