TT#91508 Add PBX 'vendor and 'model' to PBX device configuration

Model is necessary inside the device configuration template
to provide the necessary flexibility inside the general template
for the several devices if the difference is minor.

For example, SNOM devices configs are perfectly matches
inside the one template for all the models, but firmware
URLs to download new firmware from SNOM SRAPS server are different.
In the past we had to create a different templates in this case,
now we can create a simple tt2 statement:

[% IF phone.model == "D715" -%]
<firmware perm="">https://....</firmware>
[% ELSE; -%]
...

Change-Id: I3cbeb57009f944902cf148e8d491a30235620551
mr9.1
Alexander Lutay 5 years ago committed by Oleksandr Lutai
parent 7c7d136415
commit 15cae22efb

@ -1281,6 +1281,8 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() {
firmware => {
},
phone => {
vendor => $model->vendor,
model => $model->model,
stationname => $dev->station_name,
lineranges => [],
},

Loading…
Cancel
Save