From ba0a00bc840f5a075a844306627f911b25130cb7 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 30 Nov 2015 12:33:27 -0700 Subject: [PATCH] Add expansion aka side car support to the Grandstream gxp21xx template. --- .../provision/grandstream/gxp21xx/{$mac}.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml index 2b0445ef10..78611d3c37 100644 --- a/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp21xx/{$mac}.xml @@ -3591,6 +3591,17 @@ Outgoing calls. 0 - No, 1 - Yes. Default is 0 --> {$memory_key_value_18} +{$start_label_id = 23002} +{$start_value_id = 23003} +{foreach $keys as $row} +{if $row.device_key_category == "expansion"} + {$key_id = $row.device_key_id - 1} + {$label_id = $start_label_id + ($key_id * 5)} + {$value_id = $start_value_id + ($key_id * 5)} + {$row.device_key_label} + {$row.device_key_value} +{/if} +{/foreach} \ No newline at end of file