From 995e67a8478739ff00bce74dba614491524a4b9d Mon Sep 17 00:00:00 2001 From: AlexK Date: Mon, 21 Nov 2022 15:22:03 +0500 Subject: [PATCH] Added yealinks t41-t46 cfg --- .../yealink-t41-t46-profile-dynamic.cfg | 2 ++ .../yealink-t41-t46-profile-static.cfg | 10 ++++++++ .../templates/yealink-t41-t46-tmpl.cfg | 25 +++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-dynamic.cfg create mode 100644 phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-static.cfg create mode 100644 phones/yealink/t41-t46/asterprov/templates/yealink-t41-t46-tmpl.cfg diff --git a/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-dynamic.cfg b/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-dynamic.cfg new file mode 100644 index 0000000..3908523 --- /dev/null +++ b/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-dynamic.cfg @@ -0,0 +1,2 @@ +mime_type => text/xml, text/plain +${TOLOWER(${MAC})}.cfg => yealink-t41-t46-tmpl.cfg diff --git a/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-static.cfg b/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-static.cfg new file mode 100644 index 0000000..482a4e1 --- /dev/null +++ b/phones/yealink/t41-t46/asterprov/profiles/yealink-t41-t46-profile-static.cfg @@ -0,0 +1,10 @@ +mime_type => text/xml, text/plain +;Replace mac(MAC)1(2) to device mac address (in lower and higher register) +;General cfg file +;static_file => r000000000056.cfg +;Dev1 +static_file => mac1.cfg +static_file => MAC1.cfg +;Dev2 +static_file => mac2.cfg +static_file => MAC2.cfg diff --git a/phones/yealink/t41-t46/asterprov/templates/yealink-t41-t46-tmpl.cfg b/phones/yealink/t41-t46/asterprov/templates/yealink-t41-t46-tmpl.cfg new file mode 100644 index 0000000..42bb96a --- /dev/null +++ b/phones/yealink/t41-t46/asterprov/templates/yealink-t41-t46-tmpl.cfg @@ -0,0 +1,25 @@ +#!version:1.0.0.1 + +### This file is the exported MAC-all.cfg. + +account.1.auth_name = ${USERNAME} +account.1.display_name = ${USERNAME} +account.1.enable = 1 +account.1.label = ${USERNAME} +account.1.sip_server.1.address = ${SERVER} +account.1.sip_server.1.port = ${SERVER_PORT} +account.1.sip_server.1.expires = 360 +account.1.user_name = ${USERNAME} +account.1.password = ${SECRET} +lang.gui = Russian +lang.wui = Russian +local_time.ntp_server1 = ru.pool.ntp.org +local_time.ntp_server2 = cn.pool.ntp.org +### Static Configuration ### +static.auto_provision.power_on = 1 +static.auto_provision.server.url = http://${SERVER}:8088/phoneprov +static.auto_provision.repeat.enable = 1 +static.auto_provision.repeat.minutes = 720 +### Remote Phonebook ### +#remote_phonebook.data.1.url = http://${SERVER}/ats_sip.xml +#remote_phonebook.data.1.name = Телефонная книга \ No newline at end of file