From 71b8767d21f25e9a2db00b98e937b132e37d2d1a Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Tue, 8 Oct 2024 11:45:03 -0400 Subject: [PATCH] Added support for Snom C620 DECT conference phone (#7155) * Added support for Snom C620 DECT conference phone * added base firmware option * added base ds * added speakerphone firmware --- app/snom/app_config.php | 16 ++ .../provision/snom/C620/directory.xml | 11 ++ .../templates/provision/snom/C620/{$mac}.xml | 182 ++++++++++++++++++ 3 files changed, 209 insertions(+) create mode 100644 resources/templates/provision/snom/C620/directory.xml create mode 100644 resources/templates/provision/snom/C620/{$mac}.xml diff --git a/app/snom/app_config.php b/app/snom/app_config.php index 80e06bea4f..e3ddeddca8 100644 --- a/app/snom/app_config.php +++ b/app/snom/app_config.php @@ -191,6 +191,22 @@ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; $apps[$x]['default_settings'][$y]['default_setting_description'] = "Filename of the C520 firmware"; $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "6d5e14af-3c69-4bfa-96b0-e39fc9d2ffa4"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "snom_firmware_c620_base"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "C620-base-0.4.1.3-0.img"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Filename of the C620 firmware"; + $y++; + $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "e4d65427-be29-40f9-9dd5-773a0fa17b43"; + $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; + $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "snom_firmware_c620_speakerphone"; + $apps[$x]['default_settings'][$y]['default_setting_name'] = "text"; + $apps[$x]['default_settings'][$y]['default_setting_value'] = "C620-wlconf-0.4.1.5-0.img"; + $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false"; + $apps[$x]['default_settings'][$y]['default_setting_description'] = "Filename of the C620 speakerphone firmware"; + $y++; $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "0435781d-19e7-4a37-bcd2-c2e568867863"; $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision"; $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "snom_firmware_pa1"; diff --git a/resources/templates/provision/snom/C620/directory.xml b/resources/templates/provision/snom/C620/directory.xml new file mode 100644 index 0000000000..20d12c85dc --- /dev/null +++ b/resources/templates/provision/snom/C620/directory.xml @@ -0,0 +1,11 @@ + + + {foreach $contacts as $row} + + {$row.contact_name_given} + {$row.contact_name_family} + {if $row.category == "extensions"}{$row.phone_extension}{else}{$row.phone_number}{/if} + business + + {/foreach} + \ No newline at end of file diff --git a/resources/templates/provision/snom/C620/{$mac}.xml b/resources/templates/provision/snom/C620/{$mac}.xml new file mode 100644 index 0000000000..4364cbbd37 --- /dev/null +++ b/resources/templates/provision/snom/C620/{$mac}.xml @@ -0,0 +1,182 @@ + + + + + + https://{if isset($http_auth_username)}{$http_auth_username}:{$http_auth_password}@{/if}{$domain_name}{$project_path}/app/provision/{$mac}/directory.xml + + + + + 1 + {if isset($snom_ntp_server)}{$snom_ntp_server}{else}0.pool.ntp.org{/if} + 1000 + + + + {foreach $lines as $row} + + 0 + 0 + 0 + 0 + + 0 + + 0 + + 6 + + {if $row@index eq 48}{break}{/if} + {/foreach} + + 1 + + + + {$admin_password} + + + {$admin_password} + + + {$admin_password} + + + + 0 + 2 + + 514 + + + 1 + 0 + + 1 + 66 + 159 + 160 + {$snom_firmware_url}{$snom_firmware_c620_base} + {$snom_firmware_url}{$snom_firmware_c620_speakerphone} + + + config_and_firmware + 1440 + {if isset($snom_provision_url)}{$snom_provision_url}{else}https://{$domain_name}{$project_path}/app/provision/{/if} + {$http_auth_username} + {$http_auth_password} + 0 + 1 + 1 + 10 + 1 + interval + + 0 + 0 + + + + {foreach $lines as $row} + + {if $row.enabled}1{else}0{/if} + + {$row.user_id} + {$row.user_id} + {$row.user_id} + {$row.password} + x+P + 3 + 2 + 0 + 0 + 1 + 0 + + 3600 + 0 + {$row.sip_port} + {$row.server_address} + 1 + + {$row.sip_port} + {$row.server_address} + {$row.register_expires} + + + + + + + + + + + + + + 0 + 3478 + + 1 + 30 + 0 + + 0 + 90 + 300 + auto + + g711u + none + none + none + none + none + none + + 0 + {$row.sip_transport} + 1 + + 10 + {$row.sip_port} + 46 + 26 + 1 + 0 + 20 + + pai + rpid + from + + 0 + 15 + 1 + 101 + 98 + + 486 + 1 + 0 + + {if $row@index eq 48}{break}{/if} + {/foreach} + 1 + 1 + 0 + 5060 + 1 + 0 + 0 + 5170 + + + 80 + 443 + 1 + 0 + + \ No newline at end of file