From 3643f98d6219e99013577472c396bd9f8d90066f Mon Sep 17 00:00:00 2001 From: Jesse Gruver Date: Wed, 1 Jun 2022 12:54:56 -0700 Subject: [PATCH] Added variables to grandstream configs for idle mute fuction (#6371) * 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 --- .../templates/provision/grandstream/grp2612/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp2612w/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp2613/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp2614/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp2615/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp2616/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/grp26xx/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp110x/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp116x/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp140x/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp140xbk/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp1450/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp1450bk/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp16xx/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp17xx/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxp2100/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2124/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2130/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2135/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2140/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2160/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp2170/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp21xx/{$mac}.xml | 4 ++++ .../templates/provision/grandstream/gxp21xxbk/{$mac}.xml | 6 +++++- .../templates/provision/grandstream/gxv3240/{$mac}.xml | 6 +++++- 25 files changed, 114 insertions(+), 14 deletions(-) diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml index 1cf39f0a1f..c6f933aeb1 100644 --- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml @@ -3573,7 +3573,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} 0 diff --git a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml index 40f4152276..31420661ab 100644 --- a/resources/templates/provision/grandstream/grp2612w/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612w/{$mac}.xml @@ -3668,7 +3668,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} 0 diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml index 3a1b3ccd44..0a71ecc0a8 100644 --- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml @@ -4412,7 +4412,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml index aa40d7260f..ffb32088eb 100644 --- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml @@ -5683,7 +5683,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml index df82ecc2c8..48bfb5ab11 100644 --- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml @@ -6714,7 +6714,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml index f08ac74663..d0619ceacd 100644 --- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml @@ -7606,7 +7606,11 @@ - 2 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml index 6e1c36da23..d7ca85d9a2 100644 --- a/resources/templates/provision/grandstream/grp26xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp26xx/{$mac}.xml @@ -6927,7 +6927,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} 1 diff --git a/resources/templates/provision/grandstream/gxp110x/{$mac}.xml b/resources/templates/provision/grandstream/gxp110x/{$mac}.xml index 14dd0a4653..e178670d29 100644 --- a/resources/templates/provision/grandstream/gxp110x/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp110x/{$mac}.xml @@ -1170,7 +1170,11 @@ -0 +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp116x/{$mac}.xml b/resources/templates/provision/grandstream/gxp116x/{$mac}.xml index 93b3b95518..7c0a5a67f8 100644 --- a/resources/templates/provision/grandstream/gxp116x/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp116x/{$mac}.xml @@ -1188,7 +1188,11 @@ -0 +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp140x/{$mac}.xml b/resources/templates/provision/grandstream/gxp140x/{$mac}.xml index 487cbae4db..a9c78f2c76 100644 --- a/resources/templates/provision/grandstream/gxp140x/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp140x/{$mac}.xml @@ -1481,7 +1481,11 @@ +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml b/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml index 9a8904d927..654bbd5c1f 100644 --- a/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp140xbk/{$mac}.xml @@ -1481,7 +1481,11 @@ +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp1450/{$mac}.xml b/resources/templates/provision/grandstream/gxp1450/{$mac}.xml index 25f65e3787..ac28cf83a7 100644 --- a/resources/templates/provision/grandstream/gxp1450/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp1450/{$mac}.xml @@ -1962,7 +1962,11 @@ -0 +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml b/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml index 2f7f85cfe2..424d58d473 100644 --- a/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp1450bk/{$mac}.xml @@ -1769,7 +1769,11 @@ -0 +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml index 88b876472e..588ae46fff 100644 --- a/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp16xx/{$mac}.xml @@ -2523,7 +2523,11 @@ -0 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml index c6172988da..6b9eb38238 100644 --- a/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp17xx/{$mac}.xml @@ -3630,7 +3630,11 @@ -0 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml index 796e093516..150ddb7f04 100644 --- a/resources/templates/provision/grandstream/gxp2100/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2100/{$mac}.xml @@ -3265,7 +3265,11 @@ +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2124/{$mac}.xml b/resources/templates/provision/grandstream/gxp2124/{$mac}.xml index c949afc1d2..1483062a43 100644 --- a/resources/templates/provision/grandstream/gxp2124/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2124/{$mac}.xml @@ -2216,7 +2216,11 @@ +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index 1159a39853..501c086922 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -7573,7 +7573,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml index daeee455dd..68ca123f0a 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -7573,7 +7573,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml index 1159a39853..501c086922 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -7573,7 +7573,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml index 38a942ae07..bf7b223295 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -7573,7 +7573,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml index 6a9ce1e4df..dab1ed8a11 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -7573,7 +7573,11 @@ +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml index f304d8eb1e..63730f203c 100644 --- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml @@ -3029,7 +3029,11 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml index 2f7fb5bfe5..a111da7093 100644 --- a/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xxbk/{$mac}.xml @@ -3730,7 +3730,11 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> -0 +{if isset($grandstream_idle_mute_function_old)} + {$grandstream_idle_mute_function_old} +{else} + 0 +{/if} diff --git a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml index 665f107225..5fd9e2c13d 100644 --- a/resources/templates/provision/grandstream/gxv3240/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxv3240/{$mac}.xml @@ -4109,7 +4109,11 @@ -0 +{if isset($grandstream_idle_mute_function)} + {$grandstream_idle_mute_function} +{else} + 0 +{/if}