Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add V670B202 for Snom M900 ans M400 #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions plugins/wazo-snom/06.70.0202/entry.py
@@ -0,0 +1,19 @@
# Copyright 2021-2022 The Wazo Authors (see AUTHORS file)
# SPDX-License-Identifier: GPL-3.0-or-later

common_globals = {}
execfile_('common.py', common_globals)

MODELS = [
'M400',
'M900',
]
VERSION = '06.70.0202'


class SnomPlugin(common_globals['BaseSnomPlugin']):
IS_PLUGIN = True

_MODELS = MODELS

pg_associator = common_globals['BaseSnomPgAssociator'](MODELS, VERSION)
21 changes: 21 additions & 0 deletions plugins/wazo-snom/06.70.0202/install.md
@@ -0,0 +1,21 @@
# Installation

## Firmware

* There is currently a bug with firmware upgrade. The provisioning port is stripped from the
provisioning server URL by the firmware. If you want to upgrade the firmware, please go to the
web interface of the base station and input the port number after the IP address or hostname used
for provisioning and press on `Save/start upgrade`.
* After upgrading to version 450BXX or higher the rollback to version 410BXX or previous is not
possible.
* After uprading to version 500BXX or higher you need to update also any M5 Repeater you would like
to use at least to 480B5.
* A direct update of the base station from V450BXX to V510B1 or higher is not possible, an
intermediate update to V500B1 or V501B1 is required first.

## Handset authentication code

In order for the handsets to associate with the DECT base station, it is necessary to enter a PIN in
the register menu on the handset. The authentication code for a device in autoprov mode is `0000`.
For all subsequent handsets, the code is the last four digits of the line position (e.g. if you
have the line at position 1, the code will be `0001`).
15 changes: 15 additions & 0 deletions plugins/wazo-snom/06.70.0202/limitations.md
@@ -0,0 +1,15 @@
# Limitations

Here is a list of what is known to be non-working or malfunctioning on this DECT system:

* **Phonebook**: the phonebook URL is too long for what the firmware accepts as a parameter.
Therefore, the phonebook does not work.

it is nevertheless possible to circumvent this limitation by following the wiki below
https://wiki.slemoal.fr/index.php/Wazo_Phonebook_SnomDECT

* **Timezone** : provd is not able to determine the country from a timezone. It is not possible
to define the country of the DECT and the daylight-savings time changes.

* **Repeater
M6 repeaters ONLY are supported in this firmware version.
136 changes: 136 additions & 0 deletions plugins/wazo-snom/06.70.0202/pkgs/pkgs.db
@@ -0,0 +1,136 @@
[pkg_M400-fw]
description: Firmware for Snom M400
description_fr: Firmware pour Snom M400
version: 06.70.0202
files: M400-fw
install: snom-M400-fw

[pkg_M900-fw]
description: Firmware for Snom M900
description_fr: Firmware pour Snom M900
version: 06.70.0202
files: M900-fw
install: snom-M900-fw

[pkg_M25-fw]
description: Firmware for Snom M25 handset
description_fr: Firmware pour combiné Snom M25
version: 06.70.0201
files: M25-fw
install: snom-M25-fw

[pkg_M30-fw]
description: Firmware for Snom M30 handset
description_fr: Firmware pour combiné Snom M30
version: 06.70.0201
files: M30-fw
install: snom-M30-fw

[pkg_M65-fw]
description: Firmware for Snom M65 handset
description_fr: Firmware pour combiné Snom M65
version: 06.70.0201
files: M65-fw
install: snom-M65-fw

[pkg_M70-fw]
description: Firmware for Snom M70 handset
description_fr: Firmware pour combiné Snom M70
version: 06.70.0201
files: M70-fw
install: snom-M70-fw

[pkg_M80-fw]
description: Firmware for Snom M80 handset
description_fr: Firmware pour combiné Snom M80
version: 06.70.0201
files: M80-fw
install: snom-M80-fw

[pkg_M85-fw]
description: Firmware for Snom M85 handset
description_fr: Firmware pour combiné Snom M85
version: 06.70.0201
files: M85-fw
install: snom-M85-fw

[pkg_M90-fw]
description: Firmware for Snom M90 handset
description_fr: Firmware pour combiné Snom M90
version: 06.70.0201
files: M90-fw
install: snom-M90-fw


[install_snom-M400-fw]
a-b: cp $FILE1 M400/

[install_snom-M900-fw]
a-b: cp $FILE1 M900/

[install_snom-M25-fw]
a-b: cp $FILE1 M25/

[install_snom-M30-fw]
a-b: cp $FILE1 M30/

[install_snom-M65-fw]
a-b: cp $FILE1 M65/

[install_snom-M70-fw]
a-b: cp $FILE1 M70/

[install_snom-M80-fw]
a-b: cp $FILE1 M80/

[install_snom-M85-fw]
a-b: cp $FILE1 M85/

[install_snom-M90-fw]
a-b: cp $FILE1 M90/


[file_M400-fw]
url: https://dect.snom.com/M400/M400_v0670_b0202.fwu
size: 3623507
sha1sum: 089c2e9151f5de6f47193f60786d5e773f9a5076

[file_M900-fw]
url: https://dect.snom.com/M900/M900_v0670_b0202.fwu
size: 3772515
sha1sum: 737e8f1d08657661a167ae744f996bd293b45eb2

[file_M25-fw]
url: https://dect.snom.com/M25/M25_v0670_b0201.fwu
size: 973717
sha1sum: 5d31808ee5819c0f48a3d263df2a193970faba8b

[file_M30-fw]
url: https://dect.snom.com/M30/M30_v0670_b0201.fwu
size: 1366394
sha1sum: 67bbbc13d193cc786df94e39cb265dfd7f82ed5b

[file_M65-fw]
url: https://dect.snom.com/M65/M65_v0670_b0201.fwu
size: 1080115
sha1sum: bcbcb0ddc8c10d67255a4812b913d975907f4fb3

[file_M70-fw]
url: https://dect.snom.com/M70/M70_v0670_b0201.fwu
size: 1627525
sha1sum: 960840a89dd3cef969015ea124f2ef3c11d5195e

[file_M80-fw]
url: https://dect.snom.com/M80/M80_v0670_b0201.fwu
size: 1628039
sha1sum: f7cb13280ae4a6621765f8a883e52012c57b9775

[file_M85-fw]
url: https://dect.snom.com/M85/M85_v0670_b0201.fwu
size: 1645001
sha1sum: a067f0b58468089f7032e68b410f845ab01153ff

[file_M90-fw]
url: https://dect.snom.com/M90/M90_v0670_b0201.fwu
size: 1627011
sha1sum: c0754018ccb2fdb7ce44e54871258ac631b80723
27 changes: 27 additions & 0 deletions plugins/wazo-snom/06.70.0202/plugin-info
@@ -0,0 +1,27 @@
{
"version": "0.1.0",
"description": "Plugin for Snom M900 and M400 in version V670B202. Supported Repeater M6, M25, M30, M65, M70, M80, M85, M90",
"description_fr": "Greffon pour Snom M900 et M400 en version V6700B202. Supporte Repeteur M6, M25, M30, M65, M70, M80, M85, M90",
"capabilities": {
"Snom, 400, 06.70.0202": {
"protocol": "sip",
"type": "dect",
"multicell": false,
"lines": 20,
"switchboard": false,
"high_availability": false,
"function_keys": 0,
"expansion_modules": 0
},
"Snom, M900, 06.70.0202": {
"protocol": "sip",
"type": "dect",
"multicell": true,
"lines": 1000,
"switchboard": false,
"high_availability": false,
"function_keys": 0,
"expansion_modules": 0
}
}
}
72 changes: 72 additions & 0 deletions plugins/wazo-snom/build.py
Expand Up @@ -855,6 +855,78 @@ def build_05_20_0001(path):
check_call(['rsync', '-rlp', '--exclude', '.*', '05.20.0001/', path])


@target('06.70.0202', 'wazo-snom-dect-06.70.0202')
def build_06_70_0202(path):
MODELS = [
'M400',
'M900',
]
check_call(
[
'rsync',
'-rlp',
'--exclude',
'.*',
'--include',
'/templates/base.tpl',
'--include',
'/templates/M400.tpl',
'--include',
'/templates/M900.tpl',
'--exclude',
'/templates/*.tpl',
'--exclude',
'*.btpl',
'common_dect/',
path,
]
)

for model in MODELS:
# generate snom<model>-firmware.xml.tpl from snom-model-firmware.xml.tpl.btpl
model_tpl = os.path.join(
path, 'templates', 'common', f'snom{model}-firmware.xml.tpl'
)
sed_script = f's/#FW_FILENAME#/{model}_v0670_b0202.fwu/'
with open(model_tpl, 'wb') as f:
check_call(
[
'sed',
sed_script,
'common_dect/templates/common/snom-model-firmware-v670.xml.tpl.btpl',
],
stdout=f,
)

# generate snom<model>.htm.tpl from snom-model.htm.tpl.mtpl
model_tpl = os.path.join(path, 'templates', 'common', f'snom{model}.htm.tpl')
sed_script = f's/#MODEL#/{model}/'
with open(model_tpl, 'wb') as f:
check_call(
[
'sed',
sed_script,
'common_dect/templates/common/snom-model.htm.tpl.btpl',
],
stdout=f,
)

# generate snom<model>.xml.tpl from snom-model.xml.mtpl
model_tpl = os.path.join(path, 'templates', 'common', f'snom{model}.xml.tpl')
sed_script = f's/#MODEL#/{model}/'
with open(model_tpl, 'wb') as f:
check_call(
[
'sed',
sed_script,
'common_dect/templates/common/snom-model.xml.tpl.btpl',
],
stdout=f,
)

check_call(['rsync', '-rlp', '--exclude', '.*', '06.70.0202/', path])


@target('10.1.101.11', 'wazo-snom-10.1.101.11')
def build_10_1_101_11(path):
MODELS = [
Expand Down
1 change: 1 addition & 0 deletions plugins/wazo-snom/common_dect/templates/M400.tpl
@@ -0,0 +1 @@
{% include 'base.tpl' -%}