From 75fff1c33a76e08d2dc522144961add7739fe0b0 Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 19 May 2023 16:32:20 -0700 Subject: [PATCH] add template variables to override DTMF method on certain grandstream devices (#6709) --- .../provision/grandstream/gxw42xx/{$mac}.xml | 12 ++++++++ .../provision/grandstream/ht701/{$mac}.xml | 30 +++++++++++++++++++ .../provision/grandstream/ht702/{$mac}.xml | 26 ++++++++++++++++ .../provision/grandstream/ht704/{$mac}.xml | 26 ++++++++++++++++ .../provision/grandstream/ht801/{$mac}.xml | 12 ++++++++ .../provision/grandstream/ht802/{$mac}.xml | 26 ++++++++++++++++ .../provision/grandstream/ht814/{$mac}.xml | 13 ++++++++ .../provision/grandstream/ht818/{$mac}.xml | 13 ++++++++ 8 files changed, 158 insertions(+) diff --git a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml index c26f2757ae..0e2378eb18 100644 --- a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml @@ -796,17 +796,29 @@ +{if isset($grandstream_dtmf_method_1)} +{$grandstream_dtmf_method_1} +{else} 100 +{endif} +{if isset($grandstream_dtmf_method_2)} +{$grandstream_dtmf_method_2} +{else} 101 +{endif} +{if isset($grandstream_dtmf_method_3)} +{$grandstream_dtmf_method_3} +{else} 102 +{endif} diff --git a/resources/templates/provision/grandstream/ht701/{$mac}.xml b/resources/templates/provision/grandstream/ht701/{$mac}.xml index 81e14f10d2..376943478e 100644 --- a/resources/templates/provision/grandstream/ht701/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht701/{$mac}.xml @@ -478,17 +478,30 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} @@ -1154,22 +1167,39 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} +{if isset($grandstream_disable_dtmf_negotiation) } +{$grandstream_disable_dtmf_negotiation} +{else} 0 +{/if} diff --git a/resources/templates/provision/grandstream/ht702/{$mac}.xml b/resources/templates/provision/grandstream/ht702/{$mac}.xml index d011b11cd4..457afc82ff 100644 --- a/resources/templates/provision/grandstream/ht702/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht702/{$mac}.xml @@ -468,17 +468,30 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} @@ -1147,17 +1160,30 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} diff --git a/resources/templates/provision/grandstream/ht704/{$mac}.xml b/resources/templates/provision/grandstream/ht704/{$mac}.xml index df886304f5..278146315c 100644 --- a/resources/templates/provision/grandstream/ht704/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht704/{$mac}.xml @@ -520,17 +520,30 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} @@ -1180,17 +1193,30 @@ +{if isset($grandstream_dtmf_method_1) } +{$grandstream_dtmf_method_1} +{else} 101 +{/if} + +{if isset($grandstream_dtmf_method_2) } +{$grandstream_dtmf_method_1} +{else} 102 +{/if} +{if isset($grandstream_dtmf_method_3) } +{$grandstream_dtmf_method_1} +{else} 100 +{/if} diff --git a/resources/templates/provision/grandstream/ht801/{$mac}.xml b/resources/templates/provision/grandstream/ht801/{$mac}.xml index 5c7f6f0f8e..62fd77732e 100644 --- a/resources/templates/provision/grandstream/ht801/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht801/{$mac}.xml @@ -836,17 +836,29 @@ + {if isset($grandstream_dtmf_method_1) } + {$grandstream_dtmf_method_1} + {else} 101 + {/if} + {if isset($grandstream_dtmf_method_2) } + {$grandstream_dtmf_method_1} + {else} 102 + {/if} + {if isset($grandstream_dtmf_method_3) } + {$grandstream_dtmf_method_1} + {else} 100 + {/if} diff --git a/resources/templates/provision/grandstream/ht802/{$mac}.xml b/resources/templates/provision/grandstream/ht802/{$mac}.xml index 131599932e..bc36f3f4be 100644 --- a/resources/templates/provision/grandstream/ht802/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht802/{$mac}.xml @@ -836,17 +836,30 @@ + {if isset($grandstream_dtmf_method_1) } + {$grandstream_dtmf_method_1} + {else} 101 + {/if} + + {if isset($grandstream_dtmf_method_2) } + {$grandstream_dtmf_method_1} + {else} 102 + {/if} + {if isset($grandstream_dtmf_method_3) } + {$grandstream_dtmf_method_1} + {else} 100 + {/if} @@ -1748,17 +1761,30 @@ + {if isset($grandstream_dtmf_method_1) } + {$grandstream_dtmf_method_1} + {else} 101 + {/if} + + {if isset($grandstream_dtmf_method_2) } + {$grandstream_dtmf_method_1} + {else} 102 + {/if} + {if isset($grandstream_dtmf_method_3) } + {$grandstream_dtmf_method_1} + {else} 100 + {/if} diff --git a/resources/templates/provision/grandstream/ht814/{$mac}.xml b/resources/templates/provision/grandstream/ht814/{$mac}.xml index 6883ee58fd..7929710f58 100644 --- a/resources/templates/provision/grandstream/ht814/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht814/{$mac}.xml @@ -798,17 +798,30 @@ + {if isset($grandstream_dtmf_method_1) } + {$grandstream_dtmf_method_1} + {else} 101 + {/if} + + {if isset($grandstream_dtmf_method_2) } + {$grandstream_dtmf_method_1} + {else} 102 + {/if} + {if isset($grandstream_dtmf_method_3) } + {$grandstream_dtmf_method_1} + {else} 100 + {/if} diff --git a/resources/templates/provision/grandstream/ht818/{$mac}.xml b/resources/templates/provision/grandstream/ht818/{$mac}.xml index f378066f7c..8bfb61d157 100644 --- a/resources/templates/provision/grandstream/ht818/{$mac}.xml +++ b/resources/templates/provision/grandstream/ht818/{$mac}.xml @@ -796,17 +796,30 @@ + {if isset($grandstream_dtmf_method_1) } + {$grandstream_dtmf_method_1} + {else} 101 + {/if} + + {if isset($grandstream_dtmf_method_2) } + {$grandstream_dtmf_method_1} + {else} 102 + {/if} + {if isset($grandstream_dtmf_method_3) } + {$grandstream_dtmf_method_1} + {else} 100 + {/if}