From 1064758f3319968f3ee8bdaf7130d86b9eed8779 Mon Sep 17 00:00:00 2001 From: AlexK Date: Sun, 20 Nov 2022 15:21:08 +0500 Subject: [PATCH] Update templates --- .../asterprov/templates/cisco-3905-tmpl.cfg | 10 + .../asterprov/templates/cisco-69xx-tmpl.cfg | 8 + .../profiles/cisco-78xx-profile-dynamic.cfg | 2 + .../profiles/cisco-78xx-profile-static.cfg | 8 + .../asterprov/templates/cisco-78xx-tmpl.cfg | 173 ++---------------- 5 files changed, 45 insertions(+), 156 deletions(-) create mode 100644 phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-dynamic.cfg create mode 100644 phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-static.cfg diff --git a/phones/cisco/cisco-3905/asterprov/templates/cisco-3905-tmpl.cfg b/phones/cisco/cisco-3905/asterprov/templates/cisco-3905-tmpl.cfg index cc01927..911c5d4 100644 --- a/phones/cisco/cisco-3905/asterprov/templates/cisco-3905-tmpl.cfg +++ b/phones/cisco/cisco-3905/asterprov/templates/cisco-3905-tmpl.cfg @@ -42,6 +42,11 @@ 120 120 5 + 500 + 4000 + 70 + false + None @@ -50,7 +55,12 @@ ${USERNAME} ${SECRET} ${USERNAME} + + 0 + + 10000 + 20000 \ No newline at end of file diff --git a/phones/cisco/cisco-69xx/asterprov/templates/cisco-69xx-tmpl.cfg b/phones/cisco/cisco-69xx/asterprov/templates/cisco-69xx-tmpl.cfg index 6e11660..af98ba5 100644 --- a/phones/cisco/cisco-69xx/asterprov/templates/cisco-69xx-tmpl.cfg +++ b/phones/cisco/cisco-69xx/asterprov/templates/cisco-69xx-tmpl.cfg @@ -44,6 +44,11 @@ 120 120 5 + 500 + 4000 + 70 + false + None @@ -52,6 +57,9 @@ ${USERNAME} ${SECRET} ${USERNAME} + + 0 + diff --git a/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-dynamic.cfg b/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-dynamic.cfg new file mode 100644 index 0000000..285ef4b --- /dev/null +++ b/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-dynamic.cfg @@ -0,0 +1,2 @@ +mime_type => text/xml, text/plain +SEP${TOLOWER(${MAC})}.cnf.xml => cisco-78xx-tmpl.cfg diff --git a/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-static.cfg b/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-static.cfg new file mode 100644 index 0000000..2c985ce --- /dev/null +++ b/phones/cisco/cisco-78xx/asterprov/profiles/cisco-78xx-profile-static.cfg @@ -0,0 +1,8 @@ +mime_type => text/xml, text/plain +;Replace mac(MAC)1(2) to device mac address (in lower and higher register) +;Dev1 +SEPmac1.cnf.xml => mac1.cfg +SEPMAC1.cnf.xml => mac1.cfg +;Dev2 +SEPmac2.cnf.xml => mac2.cfg +SEPMAC2.cnf.xml => mac2.cfg diff --git a/phones/cisco/cisco-78xx/asterprov/templates/cisco-78xx-tmpl.cfg b/phones/cisco/cisco-78xx/asterprov/templates/cisco-78xx-tmpl.cfg index ef7e93e..31e7619 100644 --- a/phones/cisco/cisco-78xx/asterprov/templates/cisco-78xx-tmpl.cfg +++ b/phones/cisco/cisco-78xx/asterprov/templates/cisco-78xx-tmpl.cfg @@ -1,14 +1,13 @@ SIP - [== DEVICE SSH ID ==] - [== DEVICE SSH PASSWORD ==] - M/D/YA - Eastern Standard/Daylight Time + D.M.Y + HH:MM + Etc/GMT+05 - pool.ntp.org + ${SERVER} Unicast @@ -18,48 +17,21 @@ - 2000 - 5060 + ${SERVER_PORT} 5061 - [== SIP SERVER IP ==] + ${SERVER} - - - 5060 - - - - - true - - - true - x-serviceuri-cfwdall - x-cisco-serviceuri-pickup - x-cisco-serviceuri-opickup - x-cisco-serviceuri-gpickup - x-cisco-serviceuri-meetme - x-cisco-serviceuri-abbrdial - false - 2 - true - true - 2 - 2 - 0 - true - 6 10 180 - 3600 + 600 5 120 120 @@ -70,140 +42,29 @@ false None - 1 - false - true - false false 101 3 avt - false - false - 3 - [== PHONE LABEL, 11 CHARACTERS OR LESS ==] - 1 - false - 10 - false - 9 - [== KEY LABEL ==] - USECALLMANAGER - 5060 - [== SIP EXTENSION ==] - [== SIP DISPLAY NAME ==] - - 2 - - 3 - [== SIP EXTENSION / AUTH NAME ==] - - false - 1 - *97 - 4 - 5 - [== SIP EXTENSION ==] + ${USERNAME} + ${USERNAME} + ${USERNAME} + ${SECRET} + ${USERNAME} true false false true + + 0 + - 5060 - 16348 - 20134 - 184 - 0 - dialplan.xml - + 10000 + 20000 - - - true - 2 - - sip78xx.12-1-1-12 - - false - false - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 1,2,3,4,5,6,7 - 00:00 - 00:00 - 00:10 - 1 - 1 - - - - - - en_US - 1.0.0.0-1 - iso-8859-1 - - - - - - 1.0.0.0-1 - - 1 - - - - - - - - 96 - 0 - 96 - 4 - 0 - - - 3804 - - - - 2 - - Missed Calls - Application:Cisco/MissedCalls - - - - - Received Calls - Application:Cisco/ReceivedCalls - - - - - Placed Calls - Application:Cisco/PlacedCalls - - - - - Voicemail - Application:Cisco/Voicemail - - - - - - false