From 0fff1c471046ea6d2e173f2139eeb24b7eec88e7 Mon Sep 17 00:00:00 2001 From: Trick Solutions Date: Mon, 21 Oct 2019 15:25:32 -0400 Subject: [PATCH] Adding new Mitel 5320e template (#4793) * Mitel phones require the exact model in the template. A 5320 and 5320e phones take an identical template. The "e" model has a gigabit ethernet port. * 1. Added variable {$domain_name} in a few places that need it. 2. Set the NTP server to use dns name instead of IP address. 3. Set dns for NTP to use pool address (0.pool.ntp.org) 4. Removed Admin account to set back to defaults. Will look at setting that as variable. 5. Hardcoded user account password to be more simple. Will look at setting that as a variable. 6. Set host_ip and video_ip to be {$domain_name} as these were pointed to an AT&T old dns server 7. Set hostname of phone to be SIP ID 8. Remove hardcoded IP for NTP and added the DNS pool. 9. Removed boot version and image version from template as wasn't in other provision systems. * 1. Set admin password to use provisioning variable. 2. Set user password to use provisioning variable. --- .../provision/mitel/5320e/MN_Generic.cfg | 16 + .../provision/mitel/5320e/MN_{$mac}.cfg | 354 ++++++++++++++++++ .../provision/mitel/5324/MN_Generic.cfg | 6 +- .../provision/mitel/5330/MN_Generic.cfg | 6 +- .../provision/mitel/5340/MN_Generic.cfg | 6 +- 5 files changed, 385 insertions(+), 3 deletions(-) create mode 100644 resources/templates/provision/mitel/5320e/MN_Generic.cfg create mode 100644 resources/templates/provision/mitel/5320e/MN_{$mac}.cfg diff --git a/resources/templates/provision/mitel/5320e/MN_Generic.cfg b/resources/templates/provision/mitel/5320e/MN_Generic.cfg new file mode 100644 index 0000000000..f63962b2d7 --- /dev/null +++ b/resources/templates/provision/mitel/5320e/MN_Generic.cfg @@ -0,0 +1,16 @@ + + 2 + {$domain_name}/app/provision + + + 2 + {$domain_name}/app/provision + + + 2 + {$domain_name}/app/provision + + + 2 + {$domain_name}/app/provision + diff --git a/resources/templates/provision/mitel/5320e/MN_{$mac}.cfg b/resources/templates/provision/mitel/5320e/MN_{$mac}.cfg new file mode 100644 index 0000000000..2f0e2e3e0d --- /dev/null +++ b/resources/templates/provision/mitel/5320e/MN_{$mac}.cfg @@ -0,0 +1,354 @@ + + 1 + {if isset($mitel_tftp_config)}{$mitel_tftp_config}{else}2 + {/if}0 + 1 + 2 + 0 + 0 + 5060 + 0 + -1 + {if isset($mitel_vlan_id)}{$mitel_vlan_id}{else}-1 + {/if}{$account.1.user_id} + {$domain_name} + 0 + 0 + operator@example.com + 0 + + + + + + + + 1 + 12 + 1 + 1 + 0 + 1 + + {$domain_name} + {$domain_name} + 0.us.pool.ntp.org + {$mitel_time_zone} + 2 + 120 + + 0.0.0.0 + 5060 + 5 + 20 + 0 + 0 + 101 + 0 + 0 + + 0 + 0 + 10 + + 1 + 60 + 0 + + ****** + 0 + 0 + 0 + 0 + admin + Administrator + {$admin_password} + 0 + + 0 + + 0 + 0 + 4 + + 0 + 0 + 0 + + 0 + 0 + 0 + + 0 + 0 + 0 + + 0 + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 80 + 443 + 1 + 4 + 1 + 0 + 0 + + 0 + 213.192.59.75 + + 0 + 20000 + 20998 + 0 + 0 + 3 + 0 + en_US + US + 1 + 3 + 2 + 1 + 11 + 1 + 1 + 2 + 201 + {$domain_name}/app/provision + + 1 + + 0 + 3 + 0 + 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + +{foreach $keys["line"] as $row} +{if $row.device_key_line == "1"}{$feature = "6"}{$user_id = $account.1.user_id}{/if} +{if $row.device_key_line == "2"}{$feature = "7"}{$user_id = $account.2.user_id}{/if} +{if $row.device_key_line == "3"}{$feature = "8"}{$user_id = $account.3.user_id}{/if} +{if $row.device_key_line == "4"}{$feature = "9"}{$user_id = $account.4.user_id}{/if} +{if $row.device_key_line == "5"}{$feature = "10"}{$user_id = $account.5.user_id}{/if} +{if $row.device_key_line == "6"}{$feature = "11"}{$user_id = $account.6.user_id}{/if} +{if $row.device_key_line == "7"}{$feature = "12"}{$user_id = $account.7.user_id}{/if} +{if $row.device_key_line == "8"}{$feature = "13"}{$user_id = $account.8.user_id}{/if} +{if $row.device_key_type == "6"} + +{else} + +{/if} +{/foreach} + + + 1 + 1 + 1 + 1 + 1 + 0 + ****** + 1440 + 1 + 1440 + 23 + 59 + 1 + + {$user_password} + + + sip + {$voicemail_number} + 1 + + 90 + + {foreach $lines as $row} + + + {/foreach} + + + + + 7.2 + diff --git a/resources/templates/provision/mitel/5324/MN_Generic.cfg b/resources/templates/provision/mitel/5324/MN_Generic.cfg index 5a3c0ee683..f63962b2d7 100644 --- a/resources/templates/provision/mitel/5324/MN_Generic.cfg +++ b/resources/templates/provision/mitel/5324/MN_Generic.cfg @@ -1,3 +1,7 @@ + + 2 + {$domain_name}/app/provision + 2 {$domain_name}/app/provision @@ -9,4 +13,4 @@ 2 {$domain_name}/app/provision - \ No newline at end of file + diff --git a/resources/templates/provision/mitel/5330/MN_Generic.cfg b/resources/templates/provision/mitel/5330/MN_Generic.cfg index 5a3c0ee683..f63962b2d7 100644 --- a/resources/templates/provision/mitel/5330/MN_Generic.cfg +++ b/resources/templates/provision/mitel/5330/MN_Generic.cfg @@ -1,3 +1,7 @@ + + 2 + {$domain_name}/app/provision + 2 {$domain_name}/app/provision @@ -9,4 +13,4 @@ 2 {$domain_name}/app/provision - \ No newline at end of file + diff --git a/resources/templates/provision/mitel/5340/MN_Generic.cfg b/resources/templates/provision/mitel/5340/MN_Generic.cfg index 5a3c0ee683..f63962b2d7 100644 --- a/resources/templates/provision/mitel/5340/MN_Generic.cfg +++ b/resources/templates/provision/mitel/5340/MN_Generic.cfg @@ -1,3 +1,7 @@ + + 2 + {$domain_name}/app/provision + 2 {$domain_name}/app/provision @@ -9,4 +13,4 @@ 2 {$domain_name}/app/provision - \ No newline at end of file +