├── index.html
├── prov
├── aastra
├── index.html
├── cisco
│ └── index.html
├── mitel
│ ├── index.html
│ ├── firmware
│ │ ├── index.html
│ │ ├── .htaccess
│ │ └── get_firmware.sh
│ ├── logout.php
│ ├── .htaccess
│ ├── dnd.php
│ └── settings.php
├── polycom
│ └── index.html
├── siemens
│ └── index.html
├── snom
│ ├── index.html
│ ├── logout.php
│ ├── .htaccess
│ ├── debug_footer.php
│ ├── lang
│ │ └── get_language.sh
│ ├── firmware
│ │ └── get_firmware.sh
│ ├── pb.php
│ ├── ps.php
│ └── settings.php
├── yealink
│ ├── index.html
│ ├── firmware
│ │ ├── index.html
│ │ └── get_firmware.sh
│ ├── logout.php
│ ├── .htaccess
│ ├── lang
│ │ └── get_language.sh
│ ├── dnd.php
│ └── settings.php
├── grandstream
│ ├── index.html
│ ├── grandstream
│ │ ├── index.html
│ │ ├── .htaccess
│ │ ├── gxp_config_1.2.5.3.txt
│ │ ├── gxp2200_config_1.0.1.40.txt
│ │ ├── gxv3140_config_1.0.7.76.txt
│ │ ├── gxv3175_config_1.0.3.74.txt
│ │ └── gxw410x_config_1.3.4.13.txt
│ ├── .htaccess
│ ├── firmware
│ │ └── get_firmware.sh
│ └── settings.php
├── panasonic
│ └── index.html
├── settings.php
├── zoiper
│ └── settings.php
└── tiptel
│ ├── settings.php
│ ├── fw
│ └── get_firmware
│ ├── capability.php
│ └── pb_on_phone.php
├── m3
├── settings
└── firmware
├── DEVELOP
├── screenshot1.png
├── screenshot2.png
├── screenshot3.png
├── screenshot4.png
├── .htaccess
├── generate_from_db2plain.php
├── devices.json
├── users.json
├── cisco_template_plain.php
├── snom_template_plain.php
├── grandstream_template_plain.php
└── polycom_template_xml.php
├── .htaccess
├── changes.txt
├── DB_INSTALL
├── system_config
│ └── crossbar.devices
└── brand_provisioner
│ ├── ui%2Fyealink%2Ft3x%2Ft40p
│ ├── ui%2Fyealink%2Ft4x%2Ft46p
│ ├── ui%2Fyealink%2Ft4x%2Ft48p
│ ├── ui%2Fyealink%2Ft4x%2Ft46p-1
│ ├── ui%2Fyealink%2Ft4x%2Ft46p-2
│ ├── _design%2Fprovisioner
│ ├── ui%2Fcisco%2Fspa3xx%2F303g
│ ├── ui%2Fcisco%2Fspa3xx%2F501g
│ ├── ui%2Fmitel%2F68xx%2F6865i-1
│ ├── ui%2Fmitel%2F67xx%2F6730
│ ├── ui%2Fmitel%2F67xx%2F6731
│ ├── ui%2Fmitel%2F67xx%2F6753
│ ├── ui%2Fmitel%2F67xx%2F6755
│ ├── ui%2Fmitel%2F67xx%2F6757
│ ├── ui%2Fmitel%2F68xx%2F6865i
│ ├── ui%2Fmitel%2F68xx%2F6867i
│ ├── ui%2Fmitel%2F68xx%2F6869i
│ ├── ui%2Fmitel%2F67xx%2F6721ip
│ ├── ui%2Fmitel%2F67xx%2F6753-1
│ ├── ui%2Fmitel%2F67xx%2F6753-2
│ ├── ui%2Fmitel%2F67xx%2F6757-1
│ ├── ui%2Fmitel%2F67xx%2F6757-2
│ ├── ui%2Fmitel%2F68xx%2F6835i
│ ├── ui%2Fmitel%2F68xx%2F6837i
│ ├── ui%2Fmitel%2F68xx%2F6867i-1
│ ├── ui%2Fmitel%2F68xx%2F6869i-1
│ ├── ui%2Fmitel%2F68xx%2F6869i-2
│ └── ui%2Fsnom%2Fm3x%2Fm3
├── functions_zoiper.php
├── setup.php
├── phplib
├── SagException.php
├── SagCouchException.php
├── SagMemoryCache.php
├── SagFileCache.php
└── SagCache.php
├── settings.php
└── config.php
/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/aastra:
--------------------------------------------------------------------------------
1 | mitel
--------------------------------------------------------------------------------
/prov/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/m3/settings:
--------------------------------------------------------------------------------
1 | ../prov/snom
--------------------------------------------------------------------------------
/prov/cisco/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/mitel/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/polycom/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/siemens/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/snom/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/yealink/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/grandstream/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/panasonic/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/m3/firmware:
--------------------------------------------------------------------------------
1 | ../prov/snom/firmware
--------------------------------------------------------------------------------
/prov/mitel/firmware/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/mitel/logout.php:
--------------------------------------------------------------------------------
1 | startup.php
--------------------------------------------------------------------------------
/prov/settings.php:
--------------------------------------------------------------------------------
1 | ../settings.php
--------------------------------------------------------------------------------
/prov/snom/logout.php:
--------------------------------------------------------------------------------
1 | startup.php
--------------------------------------------------------------------------------
/prov/yealink/firmware/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/yealink/logout.php:
--------------------------------------------------------------------------------
1 | startup.php
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/zoiper/settings.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/mitel/firmware/.htaccess:
--------------------------------------------------------------------------------
1 | deny from all
2 |
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/.htaccess:
--------------------------------------------------------------------------------
1 | deny from all
2 |
--------------------------------------------------------------------------------
/DEVELOP/screenshot1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/DEVELOP/screenshot1.png
--------------------------------------------------------------------------------
/DEVELOP/screenshot2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/DEVELOP/screenshot2.png
--------------------------------------------------------------------------------
/DEVELOP/screenshot3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/DEVELOP/screenshot3.png
--------------------------------------------------------------------------------
/DEVELOP/screenshot4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/DEVELOP/screenshot4.png
--------------------------------------------------------------------------------
/prov/tiptel/settings.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/tiptel/settings.php
--------------------------------------------------------------------------------
/DEVELOP/.htaccess:
--------------------------------------------------------------------------------
1 | IndexIgnore *
2 | Options +FollowSymLinks
3 | RewriteEngine On
4 | RewriteRule ^(.*\.php)$ ../index.html [L]
5 |
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/gxp_config_1.2.5.3.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/grandstream/grandstream/gxp_config_1.2.5.3.txt
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/gxp2200_config_1.0.1.40.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/grandstream/grandstream/gxp2200_config_1.0.1.40.txt
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/gxv3140_config_1.0.7.76.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/grandstream/grandstream/gxv3140_config_1.0.7.76.txt
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/gxv3175_config_1.0.3.74.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/grandstream/grandstream/gxv3175_config_1.0.3.74.txt
--------------------------------------------------------------------------------
/prov/grandstream/grandstream/gxw410x_config_1.3.4.13.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/urueedi/kazoo-provision/HEAD/prov/grandstream/grandstream/gxw410x_config_1.3.4.13.txt
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 | IndexIgnore *
2 | Options +FollowSymLinks
3 | RewriteEngine On
4 | RewriteCond %{REQUEST_FILENAME} !-f
5 | RewriteCond %{REQUEST_FILENAME} !-d
6 | RewriteRule ^(.*)$ settings.php [L]
7 |
--------------------------------------------------------------------------------
/prov/grandstream/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine On
3 |
4 | # Aastra macfile
5 | RewriteRule ^([0-9A-Fa-f]*)\.(cfg)$ settings.php?file=mac&mac=$1&fmt=$2&pass=$3 [QSA,L]
6 |
7 | # just make sure that /var/www/.asterisk_history is not accessible
8 | RewriteRule ^\.asterisk - [F,L]
9 |
10 |
--------------------------------------------------------------------------------
/changes.txt:
--------------------------------------------------------------------------------
1 | initial
2 | -------
3 | support for snom, mitel, zoiper
4 |
5 | 1.0
6 | ---
7 | add support update config
8 |
9 | 1.1
10 | ---
11 | add support for yealink
12 | add support for mic & handset volume
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | todo
21 | ----
22 | add support domain restriction
23 | add support for additional keysettings
24 |
25 | bugs
26 | ----
27 |
--------------------------------------------------------------------------------
/prov/snom/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine On
3 |
4 | # snom setting-{macfile}.php
5 | RewriteRule ^settings-([0-9A-Fa-f]*)\.(php)$ settings.php?file=mac&mac=$1&fmt=$2&pass=$3 [QSA,L]
6 |
7 | # just make sure that /var/www/.asterisk_history is not accessible
8 | # RewriteRule ^\.asterisk - [F,L]
9 |
10 |
--------------------------------------------------------------------------------
/DB_INSTALL/system_config/crossbar.devices:
--------------------------------------------------------------------------------
1 | {"_id":"crossbar.devices","_rev":"22-a18f4de98f3603ff5665dca529767ad3","default":{"provisioning_type":"super_awesome_provisioner","provisioning_url":"http:\/\/provisioning_url\/api\/accounts","allow_not_unique_mac_address":true,"allow_aggregates":true},"pvt_account_id":"system_config","pvt_account_db":"system_config","pvt_modified":63617354673,"pvt_type":"config","pvt_node":"whistle_apps@ch3.opennet.ch","views":6}
--------------------------------------------------------------------------------
/prov/snom/debug_footer.php:
--------------------------------------------------------------------------------
1 | ';
5 | if(function_exists(debug_log) && $debug) {
6 | foreach($debug as $key => $log) {
7 | echo $log['file'].' '.$log['status'].' '.$log['log'].'
';
8 | }
9 | echo '';
10 | }
11 | }
12 | ?>
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fyealink%2Ft3x%2Ft40p:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/yealink\/t3x\/t40p","_rev":"1-ae9b6791804c65a46b9bbe49f0ebaf48","endpoint_brand":"yealink","endpoint_family":"t3x","endpoint_model":"t40p","usr_keys":{"setable_phone_keys":"3","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":null,"cfg_base":null,"cfg_behavior":null,"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain"}
--------------------------------------------------------------------------------
/prov/mitel/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine On
3 |
4 | # Aastra macfile
5 | RewriteRule ^([0-9A-Fa-f]*)\.(cfg)$ settings.php?file=mac&mac=$1&fmt=$2&pass=$3 [QSA,L]
6 | RewriteRule ^aastra.(cfg)$ settings.php?file=aastra.cfg&mac=$1&fmt=$2&pass=$3 [QSA,L]
7 |
8 | # just make sure that /var/www/.asterisk_history is not accessible
9 | RewriteRule ^\.asterisk - [F,L]
10 |
11 | addDefaultCharset utf-8
12 |
13 |
--------------------------------------------------------------------------------
/prov/yealink/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | RewriteEngine On
3 |
4 | # Aastra macfile
5 | RewriteRule ^([0-9A-Fa-f]*)\.(cfg)$ settings.php?file=mac&mac=$1&fmt=$2&pass=$3 [QSA,L]
6 | RewriteRule ^local.(cfg)$ settings.php?file=local.cfg&mac=$1&fmt=$2&pass=$3 [QSA,L]
7 |
8 | # just make sure that /var/www/.asterisk_history is not accessible
9 | RewriteRule ^\.asterisk - [F,L]
10 |
11 | addDefaultCharset utf-8
12 |
13 |
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fyealink%2Ft4x%2Ft46p:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/yealink\/t4x\/t46p","_rev":"1-d9ab59920c04c5e24593de280c1d3874","endpoint_brand":"yealink","endpoint_family":"t4x","endpoint_model":"t46p","usr_keys":{"setable_phone_keys":"29","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":null,"cfg_base":null,"cfg_behavior":null,"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain"}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fyealink%2Ft4x%2Ft48p:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/yealink\/t4x\/t48p","_rev":"1-f19ac317c514457295cf0522889f210f","endpoint_brand":"yealink","endpoint_family":"t4x","endpoint_model":"t48p","usr_keys":{"setable_phone_keys":"29","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":null,"cfg_base":null,"cfg_behavior":null,"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain"}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fyealink%2Ft4x%2Ft46p-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/yealink\/t4x\/t46p-1","_rev":"1-5d89b4aa68b2c31ed2237a79bbb933de","endpoint_brand":"yealink","endpoint_family":"t4x","endpoint_model":"t46p-1","usr_keys":{"setable_phone_keys":"29","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"20","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":null,"cfg_base":null,"cfg_behavior":null,"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain"}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fyealink%2Ft4x%2Ft46p-2:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/yealink\/t4x\/t46p-2","_rev":"1-bbf2dfe5a00d0a9ba139c02c65b9e142","endpoint_brand":"yealink","endpoint_family":"t4x","endpoint_model":"t46p-2","usr_keys":{"setable_phone_keys":"29","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"40","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":null,"cfg_base":null,"cfg_behavior":null,"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain"}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/_design%2Fprovisioner:
--------------------------------------------------------------------------------
1 | {"_id":"_design\/provisioner","_rev":"14-b868cb6b1374b03d4127a81ca8c6e5bf","language":"javascript","views":{"listings_by_brand":{"map":"function(doc) {if (doc.pvt_type != 'provisioner' || doc.pvt_deleted) return; emit(doc.endpoint_brand, {'family': doc.endpoint_family,'model': doc.endpoint_model, 'configs': doc.pvt_configs});}"},"listings_tree":{"map":"function(doc) {if (doc.pvt_type != 'provisionertree' || doc.pvt_deleted) return; emit(doc.pvt_type, {'data': doc.data});}"}}}
--------------------------------------------------------------------------------
/functions_zoiper.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/setup.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | couchdb on $hosts (only 1)? Y/N ";$resp = input();if($resp == 'Y') {restore('brand_provisioner', 'DB_INSTALL/brand_provisioner/'); restore('system_config', 'DB_INSTALL/system_config/');}
19 | echo "brand_provisioner restore from couchdb -> file ? Y/N ";$resp = input();if($resp == 'Y') {backup('brand_provisioner', 'DB_INSTALL/brand_provisioner/', false); backup('system_config', 'DB_INSTALL/system_config/', 'crossbar.devices');}
20 | sleep(2);
21 |
22 | ?>
23 |
--------------------------------------------------------------------------------
/prov/snom/lang/get_language.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # set max downloadspeed
4 | RATE=12500k
5 | RELEASE="8.7.5"
6 |
7 | if [ "$1" = "quiet" ] ; then
8 | CMD="wget --limit-rate=$RATE -N -q -T 3"
9 | CMD_C="wget --limit-rate=$RATE -N -T 3"
10 | else
11 | CMD_C="wget --limit-rate=$RATE -N -c -T 3"
12 | CMD="wget --limit-rate=$RATE -N -T 3"
13 | fi
14 |
15 | # Download & Unpack Languages
16 |
17 | echo "Download & Unpack Languages Snom...
"
18 |
19 | packages="DE EN FR IT DA"
20 | from="http://fox.snom.com/config/snomlang-$RELEASE"
21 | to="./"
22 |
23 | for pack in $packages
24 | do
25 | $CMD $from/gui_lang_$pack.xml -P $to/
26 | $CMD $from/web_lang_$pack.xml -P $to/
27 | done
28 |
29 | rm $to/.htaccess 2>/dev/null
30 |
31 | #for name in `ls ./`
32 | #do
33 | #if echo $name|grep -q ".zip" ; then
34 | # unzip -o -d ../ $name &>/dev/null
35 | #fi
36 | #done
37 |
38 | echo "Languages Snom komplett
"
39 |
--------------------------------------------------------------------------------
/prov/yealink/lang/get_language.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # set max downloadspeed
4 | RATE=12500k
5 | RELEASE="8.7.5"
6 |
7 | if [ "$1" = "quiet" ] ; then
8 | CMD="wget --limit-rate=$RATE -N -q -T 3"
9 | CMD_C="wget --limit-rate=$RATE -N -T 3"
10 | else
11 | CMD_C="wget --limit-rate=$RATE -N -c -T 3"
12 | CMD="wget --limit-rate=$RATE -N -T 3"
13 | fi
14 |
15 | # Download & Unpack Languages
16 |
17 | echo "Download & Unpack Languages Snom...
"
18 |
19 | packages="DE EN FR IT DA"
20 | from="http://fox.snom.com/config/snomlang-$RELEASE"
21 | to="./"
22 |
23 | for pack in $packages
24 | do
25 | $CMD $from/gui_lang_$pack.xml -P $to/
26 | $CMD $from/web_lang_$pack.xml -P $to/
27 | done
28 |
29 | rm $to/.htaccess 2>/dev/null
30 |
31 | #for name in `ls ./`
32 | #do
33 | #if echo $name|grep -q ".zip" ; then
34 | # unzip -o -d ../ $name &>/dev/null
35 | #fi
36 | #done
37 |
38 | echo "Languages Snom komplett
"
39 |
--------------------------------------------------------------------------------
/prov/mitel/firmware/get_firmware.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Copyright (C) 2009 FreePBX-Swiss Urs Rueedi
4 |
5 | for name in `ls ./`
6 | do
7 | if echo $name|grep -q "_FC\|Lang" ; then
8 | rm $name &>/dev/null
9 | fi
10 | done
11 |
12 | # set max. downloadspeed
13 | RATE=25000k
14 |
15 | if [ "$1" = "quiet" ] ; then
16 | CMD="wget --limit-rate=$RATE -N -q -c -T 3"
17 | else
18 | CMD_C="wget --limit-rate=$RATE -N -c -T 3"
19 | CMD="wget --limit-rate=$RATE -N -T 3"
20 | fi
21 |
22 | # Download & Unpack Firmware
23 | echo "Download and unpack Firmware Aastra (PLEASE WAIT)...
"
24 | src="http://miteldocs.com/cps/rde/aareddownload?file_id=6274-17656-_P06_XML&dsproject=aastra&mtype=zip"
25 | to="."
26 |
27 | $CMD_C $src -O $to &>/dev/null
28 |
29 | for name in `ls ./`
30 | do
31 | if echo $name|grep -q ".zip" ; then
32 | unzip -o -d ../ $name &>/dev/null
33 | fi
34 | done
35 |
36 | echo "Firmware Aastra komplett
"
37 |
--------------------------------------------------------------------------------
/phplib/SagException.php:
--------------------------------------------------------------------------------
1 | getCode()) is the HTTP status code. For example,
21 | * if the requested document isn't found, then the code would be set to "404"
22 | * (string).
23 | *
24 | * @version 0.9.0
25 | * @package Core
26 | */
27 | class SagCouchException extends Exception {
28 | public function __construct($msg = "", $code = 0) {
29 | parent::__construct("CouchDB Error: $msg", $code);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/DEVELOP/generate_from_db2plain.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | pvt_generator;
15 |
16 | // base settings
17 | $read = $generator($phone_data['res']->cfg_base, 'settings');
18 | if($read) {
19 | $output .= $read."\n 1. \n";
20 | }
21 | // behavior settings
22 | $read = $generator($phone_data['res']->cfg_account, 'settings');
23 | if($read) {
24 | $output .= $read."\n 2. \n";
25 | }
26 | // tone settings
27 | $read = $generator($phone_data['res']->cfg_tone, 'settings');
28 | if($read) {
29 | $output .= $read."\n 3. \n";
30 | }
31 | $account = 0;
32 | // keys settings
33 | $read = $generator($phone_data, 'usrkeys', $account);
34 | if($read) $output .= $read."\n 4. \n";
35 |
36 | // pbook settings
37 | $read = $generator($phone_data, 'usrpbook', $account);
38 | if($read) $output .= $read."\n 5. \n";
39 |
40 |
41 | echo $output;
42 | sleep(22);
43 | ?>
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fcisco%2Fspa3xx%2F303g:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/cisco\/spa3xx\/303g","_rev":"14-3a5624116f83310594cf667a8649cca3","endpoint_brand":"cisco","endpoint_family":"spa3xx","endpoint_model":"303g","usr_keys":{"setable_phone_keys":"0","setable_phone_key_counter":"0","setable_phone_key_value":"FLEX_BUTTON_QUICK_DIAL","setable_module_keys":"0","setable_module_key_counter":"0","setable_module_key_value":"extkey"},"cfg_account":{"line{ACCOUNT}_name":{"value":" \"{USERID}\""},"line{ACCOUNT}_displayname":{"value":" \"{USERID}\""},"line{ACCOUNT}_shortname":{"value":" \"{USERID}\""},"line{ACCOUNT}_authname":{"value":" \"{USERID}\""},"line{ACCOUNT}_password":{"value":" \"{PASSWORD}\""}},"cfg_base":{"{LINES}":{"value":null},"phone_label":{"value":" \"{STATION_NAME}\" ; Has no effect on SIP messaging"},"messages_uri":{"value":" \"{VOICEMAIL_NUMBER}\""}},"cfg_behavior":{"image_version":{"value":" \"P0S3-08-2-00\""},"proxy1_address":{"value":" \"{SERVER}\" ; Dotted IP of Proxy"},"proxy_backup":{"value":" \"{SERVER}\" ; Dotted IP of Backup Proxy"},"proxy_emergency":{"value":" \"{SERVER}\" ; Dotted IP of Emergency Proxy"},"proxy_register":{"value":" \"1\""},"preferred_codec":{"value":" \"g711ulaw\""},"nat_enable":{"value":" \"1\""},"dtmf_inband":{"value":" \"1\""},"dtmf_outofband":{"value":" \"avt\""},"call_waiting":{"value":" \"1\" ; Default 1 (Call Waiting enabled)"}},"cfg_tone":null,"cfg_key":null,"pvt_generator":"json2plain","views":6}
--------------------------------------------------------------------------------
/settings.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/prov/yealink/firmware/get_firmware.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Copyright (C) 2009 FreePBX-Swiss Urs Rueedi
4 |
5 | for name in `ls ./`
6 | do
7 | if echo $name|grep -q "_FC\|Lang" ; then
8 | rm $name &>/dev/null
9 | fi
10 | done
11 |
12 | # set max. downloadspeed
13 | RATE=25000k
14 |
15 | if [ "$1" = "quiet" ] ; then
16 | CMD="wget --limit-rate=$RATE -N -q -c -T 3"
17 | else
18 | CMD_C="wget --limit-rate=$RATE -N -c -T 3"
19 | CMD="wget --limit-rate=$RATE -N -T 3"
20 | fi
21 |
22 | # Download & Unpack Firmware
23 | echo "Download and unpack Firmware Aastra 67xx (PLEASE WAIT)...
"
24 | prefix="http://www.aastra.de/cps/rde/aareddownload?file_id={{ID}}&dsproject=www-aastra-de&mtype=zip"
25 | packages="6167-15148-_P02_XML 6354-15156-_P02_XML 6848-15158-_P02_XML 6950-15160-_P02_XML 7041-15162-_P02_XML 6354-14804-_P02_XML"
26 | to="."
27 |
28 | for pack in $packages
29 | do
30 | src=`echo $prefix|sed -e s/\{\{ID\}\}/$pack/g`
31 | $CMD_C $src -O $to/$pack.zip &>/dev/null
32 | done
33 |
34 | for name in `ls ./`
35 | do
36 | if echo $name|grep -q ".zip" ; then
37 | unzip -o -d ../ $name &>/dev/null
38 | fi
39 | done
40 |
41 | echo "Download and unpack Firmware Aastra 67xx (PLEASE WAIT)...
"
42 |
43 | prefix="http://www.aastra.ch/cps/rde/aareddownload?file_id=15256-17752-_P04_XML&dsproject=www-aastra-ch-de&mtype=zip"
44 | packages="FC-001363-01-REV07_6737i_3_3_1_8106_SP4 FC-001415-00-REV02_6863i_3_3_1_8106_SP4 PC-001416-00-REV02_6865i_3_3_1_8106_SP4 FC-001417-00-REV02_6867i_3_3_1_8106_SP4"
45 | to="."
46 |
47 | for pack in $packages
48 | do
49 | src=`echo $prefix|sed -e s/\{\{ID\}\}/$pack/g`
50 | $CMD_C $src -O $to/$pack.zip &>/dev/null
51 | done
52 |
53 | for name in `ls ./`
54 | do
55 | if echo $name|grep -q ".zip" ; then
56 | unzip -o -d ../ $name &>/dev/null
57 | fi
58 | done
59 |
60 | echo "Firmware Aastra 68xx komplett
"
61 |
--------------------------------------------------------------------------------
/config.php:
--------------------------------------------------------------------------------
1 | or phonetype (aastra snom) (only allowed with mozilla browser and DEBUG_REMOTE!!!!!)
22 |
23 | // SERVER/prov/snom/settings.php?mac=000413563934&pass=dfgJ345bjw45sd&user_agent=Mozilla/4.0%20(compatible;%20snom820-SIP%208.4.32%201.1.4-IFX-26.11.09)
24 | // SERVER/prov/snom/settings.php?mac=0004132A931D?typ=SnomM3?pass=dfg2445sd&user_agent=Mozilla/4.0%20%28compatible;%20snom820-SIP%208.4.32%201.1.4-IFX-26.11.09%29
25 | // SERVER/prov/mitel/settings.php?typ=Aastra6731i&mac=00085D63723E&firmware=3.2.2.56-SIP
26 |
27 | if(DEBUG_FUNCTION != 'DEBUG_FUNCTION' && DEBUG_FUNCTION != 'debug') {
28 | if(!function_exists(DEBUG_FUNCTION) && DEBUG_FUNCTION != '') {
29 | define('DEBUG_VIEW','yes');
30 | //echo "++++++".DEBUG_FUNCTION;
31 | ini_set('display_errors', true);
32 | global $debug; $debug[__FILE__][] = "DEBUG function (".DEBUG_FUNCTION.") doesn't exist";
33 | }
34 | }
35 | $debug = false;
36 |
37 | ?>
--------------------------------------------------------------------------------
/DEVELOP/devices.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "_design/devices",
3 | "language": "javascript",
4 | "views": {
5 | "crossbar_listing": {
6 | "map": "function(doc) { if (doc.pvt_type != 'device' || doc.pvt_deleted) return; emit(doc._id, {'id': doc._id, 'name': doc.name, 'mac_address': doc.mac_address || '', 'owner_id': doc.owner_id, 'enabled':doc.enabled, 'device_type':doc.device_type || 'sip_device', 'mobile': doc.mobile}); }"
7 | },
8 | "listing_by_macaddress": {
9 | "map": "function (doc) {if (doc.pvt_type != 'device' || doc.pvt_deleted) return; if(doc.mac_address) {emit(doc.mac_address, {'owner': doc.owner_id, 'provision': doc.provision, 'sip': doc.sip, 'ringtones': doc.ringtones, 'language': doc.language, 'pvt_account_id': doc.pvt_account_id, 'media': doc.media});}}"
10 | },
11 | "listing_by_owner": {
12 | "map": "function(doc) {if (doc.pvt_type != 'device' || doc.pvt_deleted) return; var owners = {}; if(doc.owner_id) owners[doc.owner_id] = true; if(typeof doc.hotdesk == 'object' && typeof doc.hotdesk.users == 'object') {Object.keys(doc.hotdesk.users).forEach(function(u) { owners[u] = true; }); } Object.keys(owners).forEach(function(os) { emit(os, {'id': doc._id, 'name': doc.name, 'mac_address': doc.mac_address || '', 'owner_id': doc.owner_id, 'enabled':doc.enabled, 'device_type':doc.device_type || 'sip_device', 'hotdesked':os !== doc.owner_id}); });}"
13 | },
14 | "listing_by_presence_id": {
15 | "map": "function(doc) {if (doc.pvt_type != 'device' || doc.pvt_deleted) return;if (doc.provision && doc.provision.feature_keys) {for(var i in doc.provision.feature_keys) {var key = doc.provision.feature_keys[i];if(key.type == 'presence' || key.type == 'personal_parking') {emit(key.value, null);}}}}"
16 | },
17 | "sip_credentials": {
18 | "map": "function (doc) {if (typeof doc.sip !== 'undefined' && !doc.pvt_deleted) {var sip = JSON.parse(JSON.stringify(doc.sip)); sip.authorizing_id = doc._id; sip.authorizing_type = doc.pvt_type; emit(sip.username.toLowerCase(), sip);} else if (doc.pvt_type === 'sys_info' && !doc.pvt_deleted) {for (i in doc.servers) {if (!doc.servers[i].auth || !doc.servers[i].auth.auth_method || doc.servers[i].auth.auth_method.toLowerCase() != \"password\") continue; var auth = doc.servers[i].auth; var sip = {'password': auth.auth_password, 'username': auth.auth_user, 'method': auth.auth_method || 'password', 'invite_format': doc.servers[i].options.inbound_format || 'e164'}; sip.authorizing_id = doc._id; sip.authorizing_type = doc.pvt_type; emit(sip.username.toLowerCase(), sip);}}}"
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/prov/snom/firmware/get_firmware.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Copyright (C) 2009 FreePBX-Swiss Urs Rueedi
4 |
5 | # set max downloadspeed
6 | RATE=12500k
7 |
8 | if [ "$1" = "quiet" ] ; then
9 | CMD="wget --limit-rate=$RATE -N -q -c -T 5"
10 | CMD_C="wget --limit-rate=$RATE -N -q -T 5"
11 | else
12 | CMD="wget --limit-rate=$RATE -N -T 5"
13 | CMD_C="wget --limit-rate=$RATE -N -c -q -T 5"
14 | fi
15 |
16 | # Remove old Firmware, download & unpack new Firmware
17 | echo "remove old Firmware, download & Unpack new Firmware from Snom (PLEASE WAIT)...
"
18 |
19 | # if new download firmware of all snoms and remove old file
20 | loadprefix="downloads.snom.com"
21 | add="fw"
22 | files="m9-9.6.2-a.bin snom300-8.7.3.25-SIP-f.bin snom320-8.7.3.25-SIP-f.bin snom360-8.7.3.25-SIP-f.bin snom370-8.7.3.25-SIP-f.bin snom820-8.2.29-SIP-r.bin snom820-8.7.3.25-SIP-r.bin snom821-8.7.3.25-SIP-r.bin snom870-8.7.3.25-SIP-r.bin snomMP-8.7.3.25-SIP-r.bin snom720-8.7.5.13-SIP-r.bin snom760-8.7.5.13-SIP-r.bin"
23 | to="."
24 |
25 | echo -n "download new Firmware Snom... "
26 | for pack in $files
27 | do
28 | if [ ! -e $to/$pack ] ; then
29 | IFS="-"
30 | set -- $pack
31 | name=$1
32 | IFS=" "
33 | rm -f $to/$name* &>/dev/null
34 |
35 | $CMD_C http://$loadprefix/$add/$pack -P $to/
36 | echo -n "$name.. "
37 | fi
38 | done
39 | echo " successfull
"
40 |
41 | # download update 6to7
42 | echo -n "download Snom Firmware update 6to7 ... "
43 | prefix="http://fox.snom.com"
44 | packages="update6to7/snom300-6.5.20-SIP-j.bin download/fw/snom320-6.5.20-SIP-j.bin update6to7/snom300-3.38-l.bin update6to7/snom320-3.38-l.bin update6to7/snom360-3.38-l.bin update6to7/snom300-from6to7-7.3.14-bf.bin update6to7/snom320-from6to7-7.3.14-bf.bin update6to7/snom360-from6to7-7.3.14-bf.bin"
45 | to="."
46 | for pack in $packages
47 | do
48 | $CMD $prefix/$pack -P $to/
49 | echo -n "."
50 | done
51 | echo "successfull
"
52 |
53 |
54 | # update tftpboot links if tftpboot exist
55 | to="/tftpboot"
56 | if [ -d /${to} ] ; then
57 | echo -n "Update TFTP Firmware links ceate links... "
58 |
59 | for file in $files
60 | do
61 | if [ -e ./$file ] ; then
62 | IFS="-"
63 | set -- $file
64 | tftpname=$1
65 | IFS=" "
66 | rm -f $to/$tftpname* &>/dev/null
67 | # stupid name changes for this snom firmware images!!
68 | if echo $tftpname|grep -q -i "snom370" ; then
69 | endfix="-j.bin"
70 | elif echo $tftpname|grep -q -i "snom8" ; then
71 | endfix="-r.bin"
72 | else
73 | endfix=".bin"
74 | fi
75 | ln ./$file $to/$tftpname$endfix
76 | echo -n "$tftpname "
77 | fi
78 | done
79 | echo " successfull
"
80 | fi
81 |
--------------------------------------------------------------------------------
/prov/grandstream/firmware/get_firmware.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Copyright (C) 2009 FreePBX-Swiss Urs Rueedi
4 |
5 | # set max downloadspeed
6 | RATE=9950k
7 |
8 | if [ "$1" = "quiet" ] ; then
9 | CMD="wget --limit-rate=$RATE -N -q -c -T 5"
10 | CMD_C="wget --limit-rate=$RATE -N -q -T 5"
11 | else
12 | CMD="wget --limit-rate=$RATE -N -T 5"
13 | CMD_C="wget --limit-rate=$RATE -N -c -q -T 5"
14 | fi
15 |
16 | # Remove old Firmware, download & unpack new Firmware
17 | echo "remove old Firmware, download & Unpack new Firmware from Snom (PLEASE WAIT)...
"
18 |
19 | # if new download firmware of all snoms and remove old file
20 | loadprefix="provisioning.snom.com"
21 | add="download/fw"
22 | files="m9-9.5.14-a.bin snom300-8.4.32-SIP-f.bin snom320-8.4.32-SIP-f.bin snom360-8.4.32-SIP-f.bin snom370-8.4.32-SIP-f.bin snom820-8.2.29-SIP-r.bin snom820-8.4.32-SIP-r.bin snom821-8.4.32-SIP-r.bin snom870-8.4.32-SIP-r.bin snomMP-8.4.32-SIP-r.bin snom720-8.7.2.9-SIP-r.bin snom760-8.7.2.9-SIP-r.bin"
23 | to="."
24 |
25 | echo -n "download new Firmware Snom... "
26 | for pack in $files
27 | do
28 | if [ ! -e $to/$pack ] ; then
29 | IFS="-"
30 | set -- $pack
31 | name=$1
32 | IFS=" "
33 | rm -f $to/$name* &>/dev/null
34 |
35 | $CMD_C http://$loadprefix/$add/$pack -P $to/
36 | echo -n "$name.. "
37 | fi
38 | done
39 | echo " successfull
"
40 |
41 | # download update 6to7
42 | echo -n "download Snom Firmware update 6to7 ... "
43 | prefix="http://fox.snom.com"
44 | packages="update6to7/snom300-6.5.20-SIP-j.bin download/fw/snom320-6.5.20-SIP-j.bin update6to7/snom300-3.38-l.bin update6to7/snom320-3.38-l.bin update6to7/snom360-3.38-l.bin update6to7/snom300-from6to7-7.3.14-bf.bin update6to7/snom320-from6to7-7.3.14-bf.bin update6to7/snom360-from6to7-7.3.14-bf.bin"
45 | to="."
46 | for pack in $packages
47 | do
48 | $CMD $prefix/$pack -P $to/
49 | echo -n "."
50 | done
51 | echo "successfull
"
52 |
53 |
54 | # update tftpboot links if tftpboot exist
55 | to="/tftpboot"
56 | if [ -d /${to} ] ; then
57 | echo -n "Update TFTP Firmware links ceate links... "
58 |
59 | for file in $files
60 | do
61 | if [ -e ./$file ] ; then
62 | IFS="-"
63 | set -- $file
64 | tftpname=$1
65 | IFS=" "
66 | rm -f $to/$tftpname* &>/dev/null
67 | # stupid name changes for this snom firmware images!!
68 | if echo $tftpname|grep -q -i "snom370" ; then
69 | endfix="-j.bin"
70 | elif echo $tftpname|grep -q -i "snom8" ; then
71 | endfix="-r.bin"
72 | else
73 | endfix=".bin"
74 | fi
75 | ln /var/www/pbx/htdocs/prov/snom/firmware/$file $to/$tftpname$endfix
76 | echo -n "$tftpname "
77 | fi
78 | done
79 | echo " successfull
"
80 | fi
81 |
--------------------------------------------------------------------------------
/prov/tiptel/fw/get_firmware:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php -q
2 |
11 | *
12 | * This program is free software; you can redistribute it and/or
13 | * modify it under the terms of the GNU General Public License
14 | * as published by the Free Software Foundation; either version 2
15 | * of the License, or (at your option) any later version.
16 | *
17 | * This program is distributed in the hope that it will be useful,
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | * GNU General Public License for more details.
21 | *
22 | * You should have received a copy of the GNU General Public License
23 | * along with this program; if not, write to the Free Software
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25 | * MA 02110-1301, USA.
26 | \*******************************************************************/
27 |
28 | define( 'GS_VALID', true ); /// this is a parent file
29 |
30 |
31 | function _tiptel_normalize_version( $fwvers )
32 | {
33 | $tmp = explode('.', $fwvers);
34 | $v0 = str_pad((int)@$tmp[0], 2, '0', STR_PAD_LEFT);
35 | $v1 = str_pad((int)@$tmp[1], 2, '0', STR_PAD_LEFT);
36 | $v2 = str_pad((int)@$tmp[2], 2, '0', STR_PAD_LEFT);
37 | $v3 = str_pad((int)@$tmp[3], 2, '0', STR_PAD_LEFT);
38 | return $v0.'.'.$v1.'.'.$v2.'.'.$v3;
39 | }
40 |
41 | $urls = array('http://update.tiptel.nl/tiptel/','http://update.tiptel.nl/tiptel/beta/');
42 | $modelscfg = array(
43 | 'ip280' => 'y000000000007.cfg',
44 | 'ip284' => 'y000000000004.cfg',
45 | 'ip286' => 'y000000000000.cfg'
46 | );
47 |
48 | foreach ($urls as $url ) {
49 | foreach ($modelscfg as $model => $cfg) {
50 | $err=0; $out=array();
51 | exec( 'wget -q -O - '.$url.$cfg, $out, $err );
52 | foreach ($out as $line) {
53 | if (preg_match('/firmware_name/',$line) ) {
54 | $fw_vers = (preg_match('/(\d+\.\d+\.\d+\.\d+)/', @$line, $m) ? $m[1] : '0.0.0.0');
55 | $fw_vers_nrml = _tiptel_normalize_version( $fw_vers );
56 | if (! file_exists($fw_vers_nrml.'.rom') ) {
57 | echo 'Fetching firmware '. $fw_vers_nrml .' for '. $model .' ... ';
58 | $err=0; $out=array();
59 | exec( 'wget -q -O '.$fw_vers_nrml.'.rom '.$url.$fw_vers.'.rom', $out, $err );
60 | if ( $err === 0 ) {
61 | echo 'Done' ,"\n";
62 | } else {
63 | echo 'Failed' ,"\n";
64 | }
65 | } else {
66 | echo 'Firmware File '. $fw_vers_nrml .'.rom exits' ,"\n";
67 | }
68 | }
69 | }
70 | }
71 | }
72 |
73 | ?>
--------------------------------------------------------------------------------
/phplib/SagMemoryCache.php:
--------------------------------------------------------------------------------
1 | cache = array();
36 | }
37 |
38 | public function set($url, &$item) {
39 | if(empty($url)) {
40 | throw new SagException('You need to provide a URL to cache.');
41 | }
42 |
43 | if(!parent::mayCache($item)) {
44 | return false;
45 | }
46 |
47 | // If it already exists, then remove the old version but keep a copy
48 | if(isset($this->cache[$url])) {
49 | $oldCopy = json_decode($this->cache[$url]);
50 | self::remove($url);
51 | }
52 |
53 | $this->cache[$url] = json_encode($item);
54 |
55 | return (isset($oldCopy) && is_object($oldCopy)) ? $oldCopy : true;
56 | }
57 |
58 | public function get($url) {
59 | return (isset($this->cache[$url])) ? json_decode($this->cache[$url]) : null;
60 | }
61 |
62 | public function remove($url) {
63 | unset($this->cache[$url]);
64 |
65 | return true;
66 | }
67 |
68 | public function clear() {
69 | unset($this->cache);
70 | $this->cache = array();
71 |
72 | return true;
73 | }
74 |
75 | public function setSize($bytes) {
76 | throw new SagException('Cache sizes are not supported in SagMemoryCache - caches have infinite size.');
77 | }
78 |
79 | public function getSize() {
80 | throw new SagException('Cache sizes are not supported in SagMemoryCache - caches have infinite size.');
81 | }
82 |
83 | public function getUsage() {
84 | throw new SagException('Cache sizes are not supported in SagMemoryCache - caches have infinite size.');
85 | }
86 | }
87 | ?>
88 |
--------------------------------------------------------------------------------
/DEVELOP/users.json:
--------------------------------------------------------------------------------
1 | {
2 | "_id": "_design/users",
3 | "filters": {
4 | "export": "function(doc, req) { return ( doc.pvt_type == 'user' ); }"
5 | },
6 | "language": "javascript",
7 | "views": {
8 | "creds_by_md5": {
9 | "map": "function(doc) { if(!doc.pvt_md5_auth || (doc.pvt_type != 'user' || doc.pvt_deleted || !doc.enabled)) return; emit( doc.pvt_md5_auth, {'owner_id': doc._id, 'account_id': doc.pvt_account_id} ); }"
10 | },
11 | "creds_by_sha": {
12 | "map": "function(doc) { if(!doc.pvt_sha1_auth || (doc.pvt_type != 'user' || doc.pvt_deleted || !doc.enabled)) return; emit( doc.pvt_sha1_auth, {'owner_id': doc._id, 'account_id': doc.pvt_account_id} ); }"
13 | },
14 | "crossbar_listing": {
15 | "map": "function(doc) {if (doc.pvt_type != 'user' || doc.pvt_deleted) return;var features = [];if (doc.smartpbx) {for (var feature in doc.smartpbx) {if (doc.smartpbx[feature].enabled) {features.push(feature);}}}if (doc.hotdesk && doc.hotdesk.enabled) {features.push('hotdesk');}if (doc.call_forward && doc.call_forward.enabled) {features.push('call_forward');}if (doc.caller_id && doc.caller_id.external && doc.caller_id.external.number) {features.push('caller_id');}if (doc.vm_to_email_enabled) {features.push('vm_to_email');}if (doc.music_on_hold && doc.music_on_hold.media_id) {features.push('music_on_hold');}emit(doc.last_name + \" \" + doc.first_name, {'id': doc._id,'features': features,'username': doc.username,'email': doc.email,'first_name': doc.first_name,'last_name': doc.last_name,'priv_level': doc.priv_level, 'presence_id': doc.presence_id,'timezone':doc.timezone});}"
16 | },
17 | "list_by_email": {
18 | "map": "function(doc) { if( doc.pvt_type != 'user' || doc.pvt_deleted) return; if( !doc.email || doc.email == '' ) return ;emit( doc.email.toLowerCase(), null ); }"
19 | },
20 | "list_by_id": {
21 | "map": "function(doc) { if (doc.pvt_type != 'user' || doc.pvt_deleted) return; var features = []; if(doc.smartpbx) {for(var feature in doc.smartpbx) {if(doc.smartpbx[feature].enabled) { features.push(feature); }}} if(doc.hotdesk && doc.hotdesk.enabled) { features.push('hotdesk'); }if (doc.call_forward && doc.call_forward.enabled) {features.push('call_forward');} if(doc.caller_id && doc.caller_id.external && doc.caller_id.external.number) {features.push('caller_id');}if (doc.vm_to_email_enabled) {features.push('vm_to_email');}if (doc.music_on_hold && doc.music_on_hold.media_id) {features.push('music_on_hold');}emit(doc._id, {'id': doc._id,'features': features,'username': doc.username,'email': doc.email,'first_name': doc.first_name,'last_name': doc.last_name,'priv_level': doc.priv_level});}"
22 | },
23 | "list_by_username": {
24 | "map": "function(doc) { if(doc.pvt_type != 'user' || !doc.username || doc.pvt_deleted) return; emit(doc.username, null); }"
25 | },
26 | "prov_listing": {
27 | "map": "function(doc) { if( doc.pvt_type != 'user' || doc.pvt_deleted) return; if( !doc.email || doc.email == '' ) return ;emit(doc.last_name + \" \" + doc.first_name, doc); }"
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fcisco%2Fspa3xx%2F501g:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/cisco\/spa3xx\/501g","_rev":"14-a621ada9be54dc4fd19ee4c681ec894e","endpoint_brand":"cisco","endpoint_family":"spa3xx","endpoint_model":"501g","usr_keys":{"setable_phone_keys":"0","setable_phone_key_counter":"0","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"0","setable_module_key_value":"extkey"},"cfg_account":{"device":{"fullConfig":"true","deviceProtocol":"SIP","sshUserId":"cisco","sshPassword":"cisco","devicePool":{"dateTimeSetting":{"dateTemplate":"M\/D\/Ya","timeZone":"Eastern Standard\/Daylight Time","ntps":{"ntp":{"name":"{SERVER}","ntpMode":"Unicast"}}},"callManagerGroup":{"members":{"member":{"callManager":{"ports":{"ethernetPhonePort":"2000","sipPort":"5060","securedSipPort":"5061"},"processNodeName":"{SERVER}"},"@attributes":{"priority":"0"}}}}},"sipProfile":{"sipProxies":{"backupProxy":"","backupProxyPort":"","emergencyProxy":"","emergencyProxyPort":"","outboundProxy":"","outboundProxyPort":"","registerWithProxy":"true"},"sipCallFeatures":{"cnfJoinEnabled":"true","callForwardURI":"x--serviceuri-cfwdall","callPickupURI":"x-cisco-serviceuri-pickup","callPickupListURI":"x-cisco-serviceuri-opickup","callPickupGroupURI":"x-cisco-serviceuri-gpickup","meetMeServiceURI":"x-cisco-serviceuri-meetme","abbreviatedDialURI":"x-cisco-serviceuri-abbrdial","rfc2543Hold":"false","callHoldRingback":"2","localCfwdEnable":"true","semiAttendedTransfer":"true","anonymousCallBlock":"2","callerIdBlocking":"2","dndControl":"0","remoteCcEnable":"true"},"sipStack":{"sipInviteRetx":"6","sipRetx":"10","timerInviteExpires":"180","timerRegisterExpires":"3600","timerRegisterDelta":"5","timerKeepAliveExpires":"120","timerSubscribeExpires":"120","timerSubscribeDelta":"5","timerT1":"500","timerT2":"4000","maxRedirects":"70","remotePartyID":"false","userInfo":"None"},"autoAnswerTimer":"1","autoAnswerAltBehavior":"false","autoAnswerOverride":"true","transferOnhookEnabled":"false","enableVad":"false","preferredCodec":"g711ulaw","dtmfAvtPayload":"101","dtmfDbLevel":"3","dtmfOutofBand":"avt","alwaysUsePrimeLine":"false","alwaysUsePrimeLineVoiceMail":"false","kpml":"3","natEnabled":"0","natAddress":"","phoneLabel":"{STATION_NAME}","stutterMsgWaiting":"1","callStats":"true","silentPeriodBetweenCallWaitingBursts":"10","disableLocalSpeedDialConfig":"false","startMediaPort":"16384","stopMediaPort":"32766","sipLines":"{LINES}\n{SPEEDDIALS}","voipControlPort":"5060","dscpForAudio":"184","ringSettingBusyStationPolicy":"0","dialTemplate":"dialplan.xml"},"commonProfile":{"phonePassword":"","backgroundImageAccess":"true","callLogBlfEnabled":"2"},"loadInformation":"SIP41.8-3-1S","vendorConfig":{"disableSpeaker":"false","disableSpeakerAndHeadset":"false","pcPort":"0","settingsAccess":"1","garp":"0","voiceVlanAccess":"1","videoCapability":"0","autoSelectLineEnable":"0","webAccess":"1","spanToPCPort":"1","loggingDisplay":"1","loadServer":""},"versionStamp":"1143565489-a3cbf294-7526-4c29-8791-c4fce4ce4c37","networkLocale":"US","networkLocaleInfo":{"name":"US","version":"5.0(2)"},"deviceSecurityMode":"1","authenticationURL":"","directoryURL":"","idleURL":"","informationURL":"","messagesURL":"","proxyServerURL":"{SERVER}","servicesURL":"","dscpForSCCPPhoneConfig":"96","dscpForSCCPPhoneServices":"0","dscpForCm2Dvce":"96","transportLayerProtocol":"4","capfAuthMode":"0","capfList":{"capf":{"phonePort":"3804"}},"certHash":"","encrConfig":"false"}},"pvt_generator":"json2xml","views":6}
--------------------------------------------------------------------------------
/DEVELOP/cisco_template_plain.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | 'spa3xx', 'keys'=>'0', 'ekeys' => '0');
12 |
13 | foreach($types as $mod => $val) {
14 |
15 | $prov['endpoint_brand'] = 'cisco';
16 | $prov['endpoint_family'] = $val['fam'];
17 | $prov['endpoint_model'] = $mod;
18 | /* this is programable keys on phone */
19 | $prov['usr_keys']['setable_phone_keys'] = $val['keys'];
20 | $prov['usr_keys']['setable_phone_key_counter'] = '0';
21 | $prov['usr_keys']['setable_phone_key_value'] = 'fkey';
22 | /* this is extensions module keys */
23 | $prov['usr_keys']['setable_module_keys'] = $val['ekeys'];
24 | $prov['usr_keys']['setable_module_key_counter'] = '0';
25 | /* there use an special key for extensionsmodule */
26 | $prov['usr_keys']['setable_module_key_value'] = 'extkey';
27 |
28 |
29 |
30 | // this is example manual plain to jaon format (ACCOUNT MUST BE!)
31 | $in =
32 | '
33 | line{ACCOUNT}_name: "{USERID}"
34 | line{ACCOUNT}_displayname: "{USERID}"
35 | line{ACCOUNT}_shortname: "{USERID}"
36 | line{ACCOUNT}_authname: "{USERID}"
37 | line{ACCOUNT}_password: "{PASSWORD}"
38 |
39 | ';
40 | $prov['cfg_account'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
41 |
42 | // this is example manual plain to jaon format (BASE OPTIONAL)
43 | $in =
44 | '
45 |
46 | {LINES}
47 |
48 | # Phone Label (Text desired to be displayed in upper right corner)
49 | phone_label: "{STATION_NAME}" ; Has no effect on SIP messaging
50 |
51 | # Setting for Message speeddial to UOne box
52 | messages_uri: "{VOICEMAIL_NUMBER}"
53 | ';
54 | $prov['cfg_base'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
55 |
56 |
57 | // this is example manual plain to jaon format (BASE OPTIONAL)
58 | $in = /* putin behavior settings from phone !!!!!!!*/
59 | '
60 |
61 | image_version: "P0S3-08-2-00"
62 |
63 | # Proxy Server
64 | proxy1_address: "{SERVER}" ; Dotted IP of Proxy
65 | proxy_backup: "{SERVER}" ; Dotted IP of Backup Proxy
66 | proxy_emergency: "{SERVER}" ; Dotted IP of Emergency Proxy
67 |
68 | # Proxy Registration (0-disable (default), 1-enable)
69 | proxy_register: "1"
70 |
71 | # Preferred Codec
72 | preferred_codec: "g711ulaw"
73 |
74 | # NAT/Firewall Traversal
75 | nat_enable: "1"
76 |
77 | # Inband DTMF Settings (0-disable, 1-enable (default))
78 | dtmf_inband: "1"
79 | dtmf_outofband: "avt"
80 |
81 | # Call Waiting (0-disabled, 1-enabled, 2-disabled with no user control, 3-enabled with no user control)
82 | call_waiting: "1" ; Default 1 (Call Waiting enabled)
83 |
84 | ';
85 | $prov['cfg_behavior'] = json_decode(plain2json($in, $del));
86 |
87 |
88 | // this is example manual plain to jaon format (BASE OPTIONAL)
89 | $in = /* putin behavior settings from phone !!!!!!!!!*/
90 | '
91 |
92 | ';
93 |
94 | $prov['cfg_tone'] = json_decode(plain2json($in, $del));
95 |
96 | // this is example manual plain to jaon format (BASE OPTIONAL)
97 | $in = /* putin behavior settings from phone !!!!!!!!!!*/
98 | '
99 |
100 | ';
101 |
102 | $prov['cfg_key'] = json_decode(plain2json($in, $del));
103 |
104 | $prov['pvt_generator'] = 'json2plain';
105 | $prov['pvt_counter'] = 1;
106 | $prov['pvt_type'] = 'provisioner';
107 | echo upload_phone_data($prov);
108 | unset($prov);
109 | }
110 |
111 |
112 | ?>
113 |
--------------------------------------------------------------------------------
/prov/mitel/dnd.php:
--------------------------------------------------------------------------------
1 | connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {
18 | unset( $astman );
19 | }
20 |
21 | function Aastra_manage_dnd($extension,$action) {
22 | global $amp_conf;
23 | global $astman;
24 |
25 | if ($astman) {
26 | // DND GET
27 |
28 | $dnd = $astman->database_get("DND",$extension);
29 | if ($dnd != '1')
30 | $dnd = '0';
31 |
32 | // Change current value
33 | if($action == 'change') {
34 | // change DND status
35 | if($dnd == '0')
36 | {
37 | $astman->database_put('DND',$extension,'1');
38 | $channel = "Local/$extension@fopon-DND";
39 | $exten = "26*0";
40 | $dnd=1;
41 | }
42 | else
43 | {
44 | $astman->database_del('DND',$extension);
45 | $channel = "Local/$extension@fopoff-DND";
46 | $exten = "26**0";
47 | $dnd=0;
48 | }
49 | $application = "hangup";
50 | $callerid = $extension;
51 | $astman->Originate($channel, $exten, NULL, NULL, NULL, $callerid, NULL, NULL, $application, NULL);
52 | }
53 | return($dnd);
54 | }
55 | }
56 |
57 | // Global parameters
58 | $Server = "http://".$amp_conf["AMPPROVSERVER"].$_SERVER['SCRIPT_NAME'];
59 | $dnd=0;
60 |
61 | // Retrieve parameters
62 | $action=$_GET['action'];
63 | $status=$_GET['status'];
64 | $key=$_GET['key'];
65 |
66 | // Force default action
67 | if($action=="") $action="change";
68 |
69 | // Get header info
70 | $header=Aastra_decode_HTTP_header();
71 |
72 | if (! is_file($amp_conf["AMPWEBROOT"]."/modules/phoneprovision/aastra/".$header[1].".cfg"))
73 | exit;
74 |
75 | $user = get_userdata($header[1]);
76 |
77 | // Setup header type
78 | header("Content-Type: text/xml");
79 |
80 | // Depending on action
81 | switch($action)
82 | {
83 | case 'display':
84 | $output = "\n";
85 | $output .= "\n";
86 | $output .= "\n";
87 | if ($status==1) $output .= "". _("DND activated")."\n";
88 | else $output .= "". _("DND deactivated")."\n";
89 | $output .= "\n";
90 | $output .= "\n";
91 | $output .= "SoftKey:Exit\n";
92 | $output .= "\n";
93 | $output .= "\n";
94 | break;
95 |
96 | case 'msg':
97 | $output = "\n";
98 | $output .= "CFDND\n";
99 | if ($status==1) $output .= "". _("DND activated")."\n";
100 | else $output .= "\n";
101 | $output .= "\n";
102 | break;
103 |
104 | case 'change':
105 | case 'check':
106 | $dnd=Aastra_manage_dnd($user,$action);
107 | $output = "\n";
108 | $output .= "\n";
109 | if($key!='')
110 | {
111 | if ($dnd==1) $output .= "\n";
112 | else $output .= "\n";
113 | }
114 | switch($header[0])
115 | {
116 | case "Aastra51i":
117 | case "Aastra53i":
118 | break;
119 | default:
120 | if($action=='change') $output .= "\n";
121 | break;
122 | }
123 | $output .= "\n";
124 | break;
125 | }
126 |
127 | // Display XML object
128 | header("Content-Length: ".strlen($output));
129 | echo $output;
130 | ?>
131 |
--------------------------------------------------------------------------------
/prov/yealink/dnd.php:
--------------------------------------------------------------------------------
1 | connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {
18 | unset( $astman );
19 | }
20 |
21 | function Aastra_manage_dnd($extension,$action) {
22 | global $amp_conf;
23 | global $astman;
24 |
25 | if ($astman) {
26 | // DND GET
27 |
28 | $dnd = $astman->database_get("DND",$extension);
29 | if ($dnd != '1')
30 | $dnd = '0';
31 |
32 | // Change current value
33 | if($action == 'change') {
34 | // change DND status
35 | if($dnd == '0')
36 | {
37 | $astman->database_put('DND',$extension,'1');
38 | $channel = "Local/$extension@fopon-DND";
39 | $exten = "26*0";
40 | $dnd=1;
41 | }
42 | else
43 | {
44 | $astman->database_del('DND',$extension);
45 | $channel = "Local/$extension@fopoff-DND";
46 | $exten = "26**0";
47 | $dnd=0;
48 | }
49 | $application = "hangup";
50 | $callerid = $extension;
51 | $astman->Originate($channel, $exten, NULL, NULL, NULL, $callerid, NULL, NULL, $application, NULL);
52 | }
53 | return($dnd);
54 | }
55 | }
56 |
57 | // Global parameters
58 | $Server = "http://".$amp_conf["AMPPROVSERVER"].$_SERVER['SCRIPT_NAME'];
59 | $dnd=0;
60 |
61 | // Retrieve parameters
62 | $action=$_GET['action'];
63 | $status=$_GET['status'];
64 | $key=$_GET['key'];
65 |
66 | // Force default action
67 | if($action=="") $action="change";
68 |
69 | // Get header info
70 | $header=Aastra_decode_HTTP_header();
71 |
72 | if (! is_file($amp_conf["AMPWEBROOT"]."/modules/phoneprovision/aastra/".$header[1].".cfg"))
73 | exit;
74 |
75 | $user = get_userdata($header[1]);
76 |
77 | // Setup header type
78 | header("Content-Type: text/xml");
79 |
80 | // Depending on action
81 | switch($action)
82 | {
83 | case 'display':
84 | $output = "\n";
85 | $output .= "\n";
86 | $output .= "\n";
87 | if ($status==1) $output .= "". _("DND activated")."\n";
88 | else $output .= "". _("DND deactivated")."\n";
89 | $output .= "\n";
90 | $output .= "\n";
91 | $output .= "SoftKey:Exit\n";
92 | $output .= "\n";
93 | $output .= "\n";
94 | break;
95 |
96 | case 'msg':
97 | $output = "\n";
98 | $output .= "CFDND\n";
99 | if ($status==1) $output .= "". _("DND activated")."\n";
100 | else $output .= "\n";
101 | $output .= "\n";
102 | break;
103 |
104 | case 'change':
105 | case 'check':
106 | $dnd=Aastra_manage_dnd($user,$action);
107 | $output = "\n";
108 | $output .= "\n";
109 | if($key!='')
110 | {
111 | if ($dnd==1) $output .= "\n";
112 | else $output .= "\n";
113 | }
114 | switch($header[0])
115 | {
116 | case "Aastra51i":
117 | case "Aastra53i":
118 | break;
119 | default:
120 | if($action=='change') $output .= "\n";
121 | break;
122 | }
123 | $output .= "\n";
124 | break;
125 | }
126 |
127 | // Display XML object
128 | header("Content-Length: ".strlen($output));
129 | echo $output;
130 | ?>
131 |
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6865i-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6865i-1","_rev":"4-6026af08fcaed241e2440401bfe83ce1","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6865i-1","usr_keys":{"setable_phone_keys":"8","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"28","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {HOST_PROVSERVER}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language":{"value":" 1"},"priority alerting enabled":{"value":" 0"},"admin password":{"value":" {PROV_PASSWORD}"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"web language":{"value":" 1"},"input language":{"value":" {INPUT_LANG}"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip blf subscription period":{"value":" {SUBSCIPT_REREGISTER}"},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"input language":{"value":" German"},"language":{"value":" {LANGUAGE_IDX}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" CH-Zurich"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/prov/tiptel/capability.php:
--------------------------------------------------------------------------------
1 |
10 | *
11 | * This program is free software; you can redistribute it and/or
12 | * modify it under the terms of the GNU General Public License
13 | * as published by the Free Software Foundation; either version 2
14 | * of the License, or (at your option) any later version.
15 | *
16 | * This program is distributed in the hope that it will be useful,
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | * GNU General Public License for more details.
20 | *
21 | * You should have received a copy of the GNU General Public License
22 | * along with this program; if not, write to the Free Software
23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
24 | * MA 02110-1301, USA.
25 | \*******************************************************************/
26 |
27 | defined('GS_VALID') or die('No direct access.');
28 | require_once( GS_DIR .'inc/phone-capability.php' );
29 | require_once( GS_DIR .'inc/quote_shell_arg.php' );
30 |
31 |
32 | class PhoneCapability_tiptel extends PhoneCapability
33 | {
34 | var $ringtones = array
35 | (
36 | # Bellcore-dr (original):
37 | #
38 | 1 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
39 | 2 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
40 | 3 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
41 | 4 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
42 | 5 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
43 |
44 | # Bellcore-dr (other):
45 | #
46 | 6 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
47 | 7 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
48 | 8 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
49 | 9 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
50 | 10 => array('settings'=>'Ringer%s', 'alertinfo'=>'Bellcore-dr%s'),
51 |
52 | # Silent:
53 | 0 => array('settings'=>'Silent' , 'alertinfo'=>'Silent' ),
54 |
55 | # Custom:
56 | -1 => array('settings'=>false , 'alertinfo'=>true )
57 | );
58 |
59 | function conv_ringtone( $infile, $outbase )
60 | {
61 | $outfile = $outbase .'.wav';
62 |
63 | if (is_executable( '/usr/local/bin/mpg123' ))
64 | $mpg123 = '/usr/local/bin/mpg123';
65 | elseif (is_executable( '/usr/bin/mpg123' ))
66 | $mpg123 = '/usr/bin/mpg123';
67 | elseif (is_executable( '/bin/mpg123' ))
68 | $mpg123 = '/bin/mpg123';
69 | else
70 | $mpg123 = 'mpg123';
71 |
72 | if (strToLower(subStr($infile, -4, 4)) === '.mp3') {
73 | # convert mp3 to wav first
74 | $wavfile = $infile .'.wav';
75 | $cmd = $mpg123 .' -m -w - -n 1000 -q '. qsa($infile) .' > '. qsa($wavfile) .' 2>>/dev/null';
76 | # cuts file after 1000 frames (around 2.3 MB, depending on the rate)
77 | # don't use -r 8000 as that doesn't really work for VBR encoded MP3s
78 | @exec($cmd, $out, $err);
79 | if ($err != 0) {
80 | if (is_file($wavfile)) @unlink( $wavfile );
81 | return false;
82 | }
83 | $infile = $wavfile;
84 | $rm_tmp = $wavfile;
85 | } else
86 | $rm_tmp = false;
87 |
88 | $cmd = 'sox '. qsa($infile) .' -c 1 -U '. qsa($outfile) .' rate 8000 trim 0 200000s 2>>/dev/null';
89 | # WAV, uLaw, 8 kHz, 16 bit, mono
90 | # "The time for loading the file should not be longer then 3 seconds.
91 | # Size < 200 KByte."
92 | # cuts file after 200000 samples (around 200 kB)
93 | @exec($cmd, $out, $err);
94 | if ($err != 0) {
95 | # $err == 2 would be unknown format
96 | if (is_file($outfile)) @unlink( $outfile );
97 | if ($rm_tmp && is_file($rm_tmp)) @unlink($rm_tmp);
98 | return false;
99 | }
100 | return $outfile;
101 |
102 | //return false;
103 | //return null; # not implemented
104 | }
105 |
106 | function get_firmware_files()
107 | {
108 | $firmware_files = glob( GS_DIR .'htdocs/prov/tiptel/fw/*.rom' );
109 | if (! is_array($firmware_files)) return null;
110 |
111 | for($i=0; $i
--------------------------------------------------------------------------------
/prov/snom/pb.php:
--------------------------------------------------------------------------------
1 | connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {
18 | unset( $astman );
19 | }
20 |
21 | // get MAC address and type of phone
22 | $value = snom_decode_HTTP_header();
23 | $ip = $value[3];
24 |
25 | // adding portnumer
26 | if($ip) {
27 | if(!preg_match("#:#",$ip))
28 | $ip = $ip.":80";
29 | }
30 |
31 | $provdata = get_prov_data();
32 | foreach($provdata as $key => $value) {
33 | if ($value['ip'] == $ip)
34 | $exten = $key;
35 | }
36 |
37 | if (! isset($exten))
38 | exit;
39 |
40 | // Change to Userlanguage
41 | $sip_array = change_language($exten);
42 |
43 | function snom_menu() {
44 |
45 | print("");
46 | printf("%s", _("Phonebook Switch"));
47 |
48 | // Privat Phonebook
49 | printf("");
53 |
54 | // Global Phonebook
55 | printf("");
59 |
60 | // Company/Internal Directory
61 | printf("");
65 |
66 | print("");
67 | }
68 |
69 | function snom_phonebook($search,$exten,$title) {
70 | print("");
71 | print("\t$title");
72 |
73 | $numbers = phonebook_look($search,$exten);
74 |
75 | // Phonebook
76 | if (is_array($numbers)) {
77 | foreach ($numbers as $number => $values) {
78 | $values['name'] = ereg_replace(" & ", "&", $values['name']);
79 | $values['name'] = ereg_replace("&", " & ", $values['name']);
80 | // $values['name'] = ereg_replace(" & ", "&", $values['name']);
81 | if($values['name'] == '')
82 | continue;
83 |
84 | printf("\t");
85 | printf("\t%s", $values['name']);
86 | printf("\t%s", $number);
87 | printf("\t%s", $values['email']);
88 | printf("\t");
89 | }
90 | }
91 |
92 | print("\t");
93 | }
94 |
95 | function snom_internal($exten,$extension) {
96 | print("");
97 | printf("%s", _("Internal Phonebook"));
98 |
99 | $numbers = phonebook_look('AMPUSER',$exten);
100 | $numbers["Meetme-".$extension][name] = _("private conference");
101 | $numbers["Meetme-".$extension][email] = $numbers[$extension]['email'];
102 | $numbers["Meetme-".$extension][outcid] = $numbers[$extension]['outcid'];
103 |
104 |
105 | // Phonebook
106 | if (is_array($numbers)) {
107 | foreach ($numbers as $number => $values) {
108 | if($values['name'] == '')
109 | continue;
110 | printf("\t");
111 | printf("\t%s", $values['name']);
112 | printf("\t%s", $number);
113 | printf("\t%s", $values['email']);
114 | printf("\t%s", $values['outcid']);
115 | printf("\t");
116 | }
117 | }
118 |
119 | print("\t");
120 |
121 | }
122 |
123 | header("Content-Type: text/xml");
124 | print('');
125 |
126 | switch ($_REQUEST['action']) {
127 | case "menu":
128 | snom_menu();
129 | die();
130 | break;
131 | case "global":
132 | snom_phonebook('cidname',$exten,_("Global Phonebook"));
133 | die();
134 | break;
135 | case "privat":
136 | snom_phonebook('pb',$exten,_("Privat Phonebook"));
137 | die();
138 | break;
139 | case "internal":
140 | snom_internal('AMPUSER',$exten);
141 | die();
142 | break;
143 | }
144 | ?>
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6730:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6730","_rev":"27-91564341bf07daa4d608adabc9b2bcc1","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":6730,"usr_keys":{"setable_phone_keys":"8","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6731:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6731","_rev":"28-f83d0d5818b5fb9c217c641a64e3594f","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":6731,"usr_keys":{"setable_phone_keys":"8","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6753:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6753","_rev":"27-1ebd5fc405b021977ab55421dfde92df","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":6753,"usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6755:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6755","_rev":"27-1fc23a68e212a540baab438fd4fa1fdf","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":6755,"usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6757:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6757","_rev":"27-ad0fa3c145beb56a75c7bb0e73f35e91","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":6757,"usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6865i:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6865i","_rev":"10-a7a42de68cae8684cd2a7f454e9431d6","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6865i","usr_keys":{"setable_phone_keys":"8","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6867i:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6867i","_rev":"10-eaa03029206129ebe1f5995b658aa263","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6867i","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6869i:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6869i","_rev":"10-c7fbc814483dd6527b71644bedb36ae8","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6869i","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6721ip:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6721ip","_rev":"10-fe0c8678cd85eed9645d0138775aea69","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":"6721ip","usr_keys":{"setable_phone_keys":"0","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6753-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6753-1","_rev":"27-3c6ae3b3fa137ee64e380a173a9152f7","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":"6753-1","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"36","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6753-2:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6753-2","_rev":"28-3ac17c4f6270c9ef6c3cf81176e165c6","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":"6753-2","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"72","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6757-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6757-1","_rev":"9-1d75d6d8783b75b1bcabb9e693ac42a8","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":"6757-1","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"20","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F67xx%2F6757-2:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/67xx\/6757-2","_rev":"9-6e618bfc1927e9061a396d7f46967540","endpoint_brand":"mitel","endpoint_family":"67xx","endpoint_model":"6757-2","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"40","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6835i:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6835i","_rev":"10-b83050ac534bedecab1210fdf48b0bef","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6835i","usr_keys":{"setable_phone_keys":"12","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6837i:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6837i","_rev":"10-f7ceee8036218a3a5134fee8de378529","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6837i","usr_keys":{"setable_phone_keys":"12","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6867i-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6867i-1","_rev":"10-2d9cb7ae01fb18b32afb9adc892925c4","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6867i-1","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"28","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6869i-1:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6869i-1","_rev":"9-ec32c983aaffa301c902f255bae27ae5","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6869i-1","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"28","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fmitel%2F68xx%2F6869i-2:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/mitel\/68xx\/6869i-2","_rev":"7-29269434f7b5050036a3505a152258cd","endpoint_brand":"mitel","endpoint_family":"68xx","endpoint_model":"6869i-2","usr_keys":{"setable_phone_keys":"6","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"56","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"sip line{ACCOUNT} auth name":{"value":" {SIPAUTHNAME}"},"sip line{ACCOUNT} password":{"value":" {SIPSECRET}"},"sip line{ACCOUNT} user name":{"value":" {SIPUSERNAME}"},"sip line{ACCOUNT} display name":{"value":" {SIPCALLERID}"},"sip line{ACCOUNT} screen name":{"value":" {INTERNAL} {SIPCALLERID}"},"sip line{ACCOUNT} proxy ip":{"value":" {PROXY_SERVER}"},"sip line{ACCOUNT} proxy port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup proxy ip":{"value":""},"sip line{ACCOUNT} backup proxy port":{"value":""},"sip line{ACCOUNT} registrar ip":{"value":" {REGISTRAR_SERVER}"},"sip line{ACCOUNT} registrar port":{"value":" {PROXY_PORT}"},"sip line{ACCOUNT} backup registrar ip":{"value":""},"sip line{ACCOUNT} backup registrar port":{"value":""},"sip line{ACCOUNT} vmail":{"value":" {VMSD}"},"sip line{ACCOUNT} mode":{"value":" 0"},"sip line{ACCOUNT} registration period":{"value":" {PHONE_REREGISTER}"}},"cfg_base":{"# Setup DHCP mode":{"value":null},"# dhcp":{"value":" 1"},"# Setup HTTP server address":{"value":null},"contact rcs":{"value":" 0"},"download protocol":{"value":" HTTP"},"http server":{"value":" {PROV_SERVER_URL}"},"http path":{"value":" prov\/aastra"},"auto resync mode":{"value":" 0"},"lldp":{"value":" 0"},"# Startup URI":{"value":null},"action uri startup":{"value":""},"# English Language have no file":{"value":null},"language 1":{"value":" lang_de.txt"},"language 2":{"value":" lang_fr.txt"},"language 3":{"value":" lang_it.txt"},"language 4":{"value":" lang_da.txt"},"priority alerting enabled":{"value":" 0"},"xml status scroll delay":{"value":" 3"},"missed calls indicator disabled":{"value":" 0"},"sip update callerid":{"value":" 0"},"sip pai":{"value":" 1"},"sip diversion display":{"value":" 1"},"show call destination name":{"value":" 1"},"time format":{"value":" 1"},"date format":{"value":" 11"},"use lldp elin":{"value":" 0"},"tone set":{"value":" Europe"},"# sip nat ip":{"value":""},"sip dial plan":{"value":" \"x+^\""},"sip dial plan terminator":{"value":" 1"},"sip dtmf method":{"value":" 1"},"auto resync time":{"value":" 19"}},"cfg_behavior":{"# Time server":{"value":null},"time server disabled":{"value":" 0"},"time server1":{"value":" {HOST_TIMESERVER}"},"time server2":{"value":""},"language":{"value":" {LANGUAGE_IDX}"},"admin password":{"value":" {PROV_PHONE_PASS}"},"web language":{"value":" {LANGUAGE_IDX}"},"input language":{"value":" German"},"sip blf subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip acd subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"sip transaction timer":{"value":" 600"},"sip as-feature-event subscription period":{"value":" {SUBSCRIPT_REREGISTER}"},"language 1":{"value":" lang_de.txt"},"language 3":{"value":" lang_fr.txt"},"language 4":{"value":" lang_it.txt"},"language 5":{"value":" lang_da.txt"},"sip registration period":{"value":" 60"},"sip centralized conf":{"value":" 1000"},"auto resync time":{"value":" 19"},"auto resync mode":{"value":" 1"},"contrast level":{"value":" 2"},"ring tone":{"value":" 3"},"time zone name":{"value":" {TIMEZONE}"},"directed call pickup":{"value":" 1"},"directed call pickup prefix":{"value":" *8"},"play a ring splash":{"value":" 1"},"sip dial plan":{"value":" \"x+^\""},"sip silence suppression":{"value":" 0"},"https validate certificates":{"value":" 0"},"https validate hostname":{"value":" 0"},"https validate expires":{"value":" 0"},"# Action URI":{"value":null},"action uri startup":{"value":""}},"cfg_tone":{"alert external":{"value":" 1"},"alert internal":{"value":" 2"},"speaker volume":{"value":" 1"},"backlight mode":{"value":" 2"},"callers list disabled":{"value":" 1"},"bl on time":{"value":" 16"},"ringer volume":{"value":" 3"},"handset volume":{"value":" 6"},"tone set":{"value":" Germany"},"xml beep notification":{"value":" 1"}},"cfg_key":{"prgkey1 type":{"value":" xml"},"prgkey1 value":{"value":" {LOGOUT_SCRIPT}"},"topsoftkey1 type":{"value":" xml"},"topsoftkey1 label":{"value":" {NEW_LOGIN}"},"topsoftkey1 value":{"value":" {LOGOUT_SCRIPT}"},"prgkey2 type":{"value":" xml"},"prgkey2 value":{"value":" {DND_SCRIPT}"},"prgkey3 type":{"value":" xml"},"prgkey3 value":{"value":" {CFWD_SCRIPT}"},"prgkey4 type":{"value":" xml"},"prgkey4 value":{"value":" {PB_SCRIPT}"},"prgkey5 type":{"value":" speeddialconf"},"prgkey5 value":{"value":" {VMSD}"},"prgkey6 type":{"value":" xfer"},"prgkey6 line":{"value":" 0"}},"pvt_counter":1,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/phplib/SagFileCache.php:
--------------------------------------------------------------------------------
1 | fsLocation = rtrim($location, "/ \t\n\r\0\x0B");
55 |
56 | /*
57 | * Just update - don't freak out if the size isn't right, as the user might
58 | * update it to non-default, they might not do anything with the cache,
59 | * they might clean it themselves, etc. give them time. We'll freak when we
60 | * add.
61 | */
62 | foreach(glob($this->fsLocation."/*".self::$fileExt) as $file) {
63 | self::addToSize(filesize($file));
64 | }
65 | }
66 |
67 | /**
68 | * Generates the full filename/path that would be used for a given URL's
69 | * cache object.
70 | *
71 | * @param string $url The URL for the cached item.
72 | * @return string
73 | */
74 | public function makeFilename($url) {
75 | return "$this->fsLocation/".self::makeKey($url).self::$fileExt;
76 | }
77 |
78 | public function set($url, &$item) {
79 | if(empty($url)) {
80 | throw new SagException('You need to provide a URL to cache.');
81 | }
82 |
83 | if(!parent::mayCache($item)) {
84 | return false;
85 | }
86 |
87 | $serialized = json_encode($item);
88 | $target = self::makeFilename($url);
89 |
90 | // If it already exists, then remove the old version but keep a copy
91 | if(is_file($target)) {
92 | $oldCopy = self::get($url);
93 | self::remove($url);
94 | }
95 |
96 | $fh = fopen($target, "w"); //in case self::remove() didn't get it?
97 |
98 | fwrite($fh, $serialized, strlen($serialized)); //don't throw up if we fail - we're not mission critical
99 | self::addToSize(filesize($target));
100 |
101 | fclose($fh);
102 |
103 | // Only return the $oldCopy if it exists
104 | return (isset($oldCopy) && is_object($oldCopy)) ? $oldCopy : true;
105 | }
106 |
107 | public function get($url) {
108 | $target = self::makeFilename($url);
109 |
110 | if(!is_file($target)) {
111 | return null;
112 | }
113 |
114 | if(!is_readable($target)) {
115 | throw new SagException("Could not read the cache file for $url at $target - please check its permissions.");
116 | }
117 |
118 | return json_decode(file_get_contents($target));
119 | }
120 |
121 | public function remove($url) {
122 | $target = $this->makeFilename($url);
123 | return self::removeFile($target);
124 | }
125 |
126 | public function clear() {
127 | $part = false;
128 |
129 | foreach(glob($this->fsLocation."/*".self::$fileExt) as $file) {
130 | if(!self::removeFile($file)) {
131 | $part = true;
132 | }
133 | }
134 |
135 | return !$part;
136 | }
137 |
138 | private function removeFile($path) {
139 | $size = filesize($path);
140 |
141 | if(!unlink($path)) {
142 | return false;
143 | }
144 |
145 | self::addToSize(-$size);
146 |
147 | return true;
148 | }
149 | }
150 | ?>
151 |
--------------------------------------------------------------------------------
/prov/snom/ps.php:
--------------------------------------------------------------------------------
1 | $value) {
26 | if ($value['ip'] == $ip) {
27 | $exten = $key;
28 | $mac = $value['mac'];
29 | }
30 | }
31 |
32 | if ($_REQUEST['ext']) {
33 | $exten = $_REQUEST['ext'];
34 | $ext = $exten;
35 | } else
36 | $ext = false;
37 |
38 | if (! isset($exten) || ! preg_match("/300|320|360|370|720|760|820|870|m3|m9|snom/",$model) || $_REQUEST['mac'] != $mac)
39 | exit;
40 |
41 | // Change to Userlanguage
42 | $sip_array = change_language($exten);
43 |
44 | function snom_menu($mac) {
45 |
46 | print("");
47 | printf("%s", _("Presence Switch"));
48 |
49 | // online
50 | printf("");
54 |
55 | // offline
56 | printf("");
60 |
61 | printf("");
65 |
66 | printf("");
70 |
71 | printf("");
75 |
76 | printf("");
80 |
81 | print("");
82 | }
83 |
84 | function ps_switch($mode,$exten,$ext) {
85 | global $ip;
86 | $extstate = get_extstate($exten);
87 |
88 | switch ($mode[0]) {
89 | case '0':
90 | $ret = presence_switch($ip,'off',$ext);
91 | break;
92 | case '1':
93 | $ret = presence_switch($ip,'on',$ext);
94 | break;
95 | case '2':
96 | $ret = presence_switch($ip,'dndoff',$ext);
97 | break;
98 | case '3':
99 | $ret = presence_switch($ip,'dndon',$ext);
100 | break;
101 | case '?':
102 | if ($extstate[$exten]['devstate'] == 'offline') {
103 | $ret = presence_switch($ip,'on',$ext);
104 | $title = _("Online");
105 | } else {
106 | $ret = presence_switch($ip,'off',$ext);
107 | $title = _("Offline");
108 | }
109 | break;
110 | }
111 |
112 | switch($mode[0]) {
113 | case '0':
114 | $title = _("Offline");
115 | break;
116 | case '1':
117 | $title = _("Online");
118 | break;
119 | case '2':
120 | $title = _("DND off");
121 | break;
122 | case '3':
123 | $title = _("DND on");
124 | break;
125 | }
126 |
127 | // ps_switch($mode[0],$exten);
128 | $output = "\n";
129 | $output .= "". _("Presence Switch")."\n";
130 | $output .= "Prompt Text\n";
131 | $output .= "".$title."\n";
132 | $output .= "\n";
133 | header("Content-Length: ".strlen($output));
134 | echo $output;
135 | }
136 |
137 | if(preg_match("/300|320|360|370|720|760|820|870|m3|m9|snom/",$model)) {
138 |
139 | //error_log("$exten--$ext--$model--".$_REQUEST['action'],3,"error.log");
140 | if($_REQUEST['action']) {
141 | header("Content-Type: text/xml");
142 | print('');
143 |
144 | switch ($_REQUEST['action']) {
145 | case "menu":
146 | snom_menu($mac);
147 | die();
148 | break;
149 | case "offline":
150 | ps_switch('0',$exten,$ext);
151 | die();
152 | break;
153 | case "online":
154 | ps_switch('1',$exten,$ext);
155 | die();
156 | break;
157 | case "dndoff":
158 | ps_switch('2',$exten,$ext);
159 | die();
160 | break;
161 | case "dndon":
162 | ps_switch('3',$exten,$ext);
163 | die();
164 | break;
165 | case "ps":
166 | ps_switch('?',$exten,$ext);
167 | die();
168 | break;
169 | }
170 | }
171 | }
172 | ?>
173 |
--------------------------------------------------------------------------------
/DB_INSTALL/brand_provisioner/ui%2Fsnom%2Fm3x%2Fm3:
--------------------------------------------------------------------------------
1 | {"_id":"ui\/snom\/m3x\/m3","_rev":"16-3f13e9eb32c3affe72ff1931e4231351","endpoint_brand":"snom","endpoint_family":"m3x","endpoint_model":"m3","usr_keys":{"setable_phone_keys":"0","setable_phone_key_counter":"1","setable_phone_key_value":"fkey","setable_module_keys":"0","setable_module_key_counter":"1","setable_module_key_value":"extkey"},"cfg_account":{"%SRV_{ACCOUNT}_SIP_UA_DATA_DOMAIN%":{"value":" "},"%SRV_{ACCOUNT}_SIP_URI_DOMAIN_CONFIG%":{"value":" 2"},"%SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_PORT%":{"value":" {PROXY_PORT}"},"%SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_TYPE%":{"value":" 0"},"%SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_IS_LOCAL%":{"value":" 1"},"%SRV_{ACCOUNT}_SIP_UA_DATA_REREG_TIME%":{"value":" {PHONE_REREGISTER}"},"%SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_ADDR%":{"value":" "},"%SRV_{ACCOUNT}_DTMF_SIGNALLING%":{"value":" 1"},"%SRV_{ACCOUNT}_SIP_UA_CODEC_PRIORITY%":{"value":" 0, 1, 2, 4, 255"},"%SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME%":{"value":" \"{SIPAUTHNAME}\""},"%SUBSCR_{ACCOUNT}_UA_DATA_DISP_NAME%":{"value":" \"{SIPCALLERID}\""},"%SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME_ALIAS%":{"value":" \"{SIPAUTHNAME}\""},"%SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NAME%":{"value":" \"{SIPAUTHNAME}\""},"%SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NUMBER%":{"value":" \"{VMSD}\""},"%SUBSCR_{ACCOUNT}_UA_DATA_AUTH_NAME%":{"value":" \"{SIPAUTHNAME}\""},"%SUBSCR_{ACCOUNT}_UA_DATA_AUTH_PASS%":{"value":" \"{SIPSECRET}\""},"%CLIR_CODE_ENABLE_UA_{ACCOUNT}%":{"value":" 0"},"%CLIR_PREFIX_UA_{ACCOUNT}%":{"value":" "},"%SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_PORT%":{"value":" {PROXY_PORT}"},"%HANDSET_{ACCOUNT_2}_NAME%":{"value":" \"{INTERNAL} {SIPCALLERID}\""},"%HANDSET_{ACCOUNT_2}_CW%":{"value":" 1"},"%HANDSET_{ACCOUNT_2}_DND%":{"value":" 0"},"%FWD_ON_BUSY_ACT_{ACCOUNT_2}%":{"value":" "},"%FWD_ON_BUSY_DEACT_{ACCOUNT_2}%":{"value":" "},"%FWD_ON_NO_ANSWER_ACT_{ACCOUNT_2}%":{"value":" "},"%FWD_ON_NO_ANSWER_DEACT_{ACCOUNT_2}%":{"value":" "},"%FWD_UNCOND_ACT_{ACCOUNT_2}%":{"value":" \"61*\""},"%FWD_UNCOND_DEACT_{ACCOUNT_2}%":{"value":" "},"%DECT_SUBS_{ACCOUNT_2}%":{"value":" 0, 0, 0, 0, 0"}},"cfg_base":{"%GMT_TIME_ZONE%":{"value":" 16"},"%PLAY_INBAND_DTMF%":{"value":" 1"},"%AUTOMATIC_SYNC_CLOCK%":{"value":" 1"},"%AC_CODE%":{"value":" {PROVPASS}"},"%COMMON_PHONEBOOK%":{"value":" 1"},"%PINCODE_PROTECTED_SETTINGS%":{"value":" 255"},"%DECT_SUBS_MATCH_IPEI%":{"value":" 0"},"%FWU_POLLING_ENABLE%":{"value":" 0"},"%FWU_POLLING_MODE%":{"value":" 0"},"%FWU_POLLING_PERIOD%":{"value":" 86400"},"%FWU_POLLING_TIME_HH%":{"value":" 3"},"%FWU_POLLING_TIME_MM%":{"value":" 0"},"%COUNTRY_VARIANT_ID%":{"value":" {COUNTRYID_M3}"},"%EMERGENCY_PRIMARY_PORT%":{"value":" 1"},"%JOIN_CALLS_ALLOWED%":{"value":" 0"},"%SIP_KEEP_ALIVE_ENABLE%":{"value":" 1"},"%SIP_SIP_PRIORITY%":{"value":" 4"},"%DELAYED_MEDIA_BEHAVIOUR%":{"value":" 0"},"%NETWORK_FWU_SERVER%":{"value":" \"provisioning.snom.com\""},"%NETWORK_RTP_QOS_REPORT_SERVER%":{"value":" "},"%NETWORK_RTP_QOS_REPORT_PATH%":{"value":" \"\/QOSReports\/\""},"%NETWORK_RTP_QOS_REPORT_PROTOCOL%":{"value":" 1"},"%NETWORK_RTP_QOS_REPORT_ENABLE%":{"value":" 0"},"%NETWORK_VLAN_ID%":{"value":" 0"},"%NETWORK_VLAN_USER_PRIORITY%":{"value":" 0"},"%VOIP_LOG_AUTO_UPLOAD%":{"value":" 0"},"%NETWORK_DHCP_CLIENT_TIMEOUT%":{"value":" 3"},"%NETWORK_DHCP_CLIENT_BOOT_SERVER%":{"value":" 3"},"%NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION%":{"value":" 160"},"%NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION_DATATYPE%":{"value":" 1"},"%INFOPUSH_ICO_PRELOAD_URL%":{"value":" "},"%LOCAL_HTTP_SERVER_TEMPLATE_TITLE%":{"value":" \"SNOM M3\""},"%LOCAL_HTTP_SERVER_AUTH_NAME%":{"value":" \"admin\""},"%LOCAL_HTTP_SERVER_AUTH_PASS%":{"value":" \"{PROVPASS}\""},"%LOCAL_HTTP_SERVER_ACCESS%":{"value":" 36863"},"%CODEC_SILENCE_SUPPRESSION%":{"value":" 0"},"%SIP_STUN_ENABLE%":{"value":" 0"},"%SIP_RPORT_ENABLE%":{"value":" 0"},"%SIP_STUN_BINDTIME_GUARD%":{"value":" 0"},"%SIP_STUN_BINDTIME_DETERMINE%":{"value":" 0"},"%SIP_STUN_KEEP_ALIVE_TIME%":{"value":" 0"},"%SIP_SIP_PORT%":{"value":" {PROXY_PORT}"},"%SIP_RTP_PORT%":{"value":" 15000"},"%SIP_RTP_PORT_RANGE%":{"value":" 20"},"%FWU_TFTP_SERVER_PATH%":{"value":" \"\/m3\/firmware\/\""},"%SIP_RTP_PRIORITY%":{"value":" 4"},"%TRACE_MODE%":{"value":" 1"},"%CONFIGURATION_FILE_FLAG%":{"value":" 1"},"%MANAGEMENT_TRANSFER_PROTOCOL%":{"value":" 1"},"%MANAGEMENT_PASSWORD%":{"value":" \"VoipLan\""},"%MANAGEMENT_UPLOAD_SCRIPT%":{"value":" \"\/CfgUpload\""},"%ENABLE_SIP_MESSAGE_ENCRYPTION%":{"value":" 0"},"%NETWORK_STUN_SERVER%":{"value":" "},"%NETWORK_SNTP_SERVER%":{"value":" \"{PROV_SERVER}\""},"%NETWORK_TFTP_SERVER%":{"value":" \"{PROV_SERVER}\""},"%NETWORK_SNTP_SERVER_UPDATE_TIME%":{"value":" 60"}},"cfg_behavior":{"%DST_ENABLE%":{"value":" 2"},"%DST_FIXED_DAY_ENABLE%":{"value":" 0"},"%DST_START_MONTH%":{"value":" 3"},"%DST_START_DATE%":{"value":" 1"},"%DST_START_TIME%":{"value":" 2"},"%DST_START_DAY_OF_WEEK%":{"value":" 1"},"%DST_START_WDAY_LAST_IN_MONTH%":{"value":" 1"},"%DST_STOP_MONTH%":{"value":" 10"},"%DST_STOP_DATE%":{"value":" 1"},"%DST_STOP_TIME%":{"value":" 2"},"%DST_STOP_DAY_OF_WEEK%":{"value":" 1"},"%DST_STOP_WDAY_LAST_IN_MONTH%":{"value":" 1"},"%ENABLE_ENHANCED_IDLE_SCREEN%":{"value":" 0"}},"cfg_tone":null,"cfg_key":null,"pvt_counter":0,"pvt_type":"provisioner","pvt_generator":"json2plain","views":1}
--------------------------------------------------------------------------------
/prov/mitel/settings.php:
--------------------------------------------------------------------------------
1 | $deb) {
79 | foreach($deb as $k2 => $detail) {
80 | debug_log('['.$k1.']['.$k2.'] '.$detail.']',$k1);
81 | }
82 | }
83 | }
84 | }
85 |
86 | function Aastra_decode_HTTP_header()
87 | {
88 | if($_REQUEST['user_agent'] != false)
89 | $user_agent = $_REQUEST['user_agent'];
90 | else
91 | $user_agent=$_SERVER["HTTP_USER_AGENT"];
92 | if(stristr($user_agent,"Aastra"))
93 | {
94 | $value=preg_split("/ MAC:/",$user_agent);
95 | $fin=preg_split("/ /",$value[1]);
96 | $value[1]=preg_replace("/\-/","",$fin[0]);
97 | $value[2]=preg_replace("/V:/","",$fin[1]);
98 | } else {
99 | $value[0]="MSIE";
100 | $value[1]="NA";
101 | $value[2]="NA";
102 | }
103 | $value[3]=$_SERVER["REMOTE_ADDR"];
104 | return($value);
105 | }
106 |
107 | function get_aastra_cfg($mac)
108 | {
109 | $phone_data = get_phone_data($mac, false, true);
110 | $durl = $_SERVER['HTTP_HOST'];
111 |
112 | $search = array(
113 | '{{PROV_SERVER_URL}}',
114 | );
115 |
116 | $replace = array(
117 | $durl,
118 | );
119 |
120 | // make slower for security
121 | sleep(0.5);
122 | $generator = $phone_data['template']->pvt_generator;
123 | $read = $generator($phone_data['template']->cfg_base,'settings');
124 | if($read)
125 | echo preg_replace($search, $replace, $read);
126 | }
127 |
128 | show_debug();
129 | include("../snom/debug_footer.php");
130 | ?>
--------------------------------------------------------------------------------
/prov/grandstream/settings.php:
--------------------------------------------------------------------------------
1 | $deb) {
75 | foreach($deb as $k2 => $detail) {
76 | debug_log('['.$k1.']['.$k2.'] '.$detail.']',$k1);
77 | }
78 | }
79 | }
80 | }
81 |
82 | function Aastra_decode_HTTP_header()
83 | {
84 | if($_REQUEST['user_agent'] != false)
85 | $user_agent = $_REQUEST['user_agent'];
86 | else
87 | $user_agent=$_SERVER["HTTP_USER_AGENT"];
88 | if(stristr($user_agent,"Aastra"))
89 | {
90 | $value=preg_split("/ MAC:/",$user_agent);
91 | $fin=preg_split("/ /",$value[1]);
92 | $value[1]=preg_replace("/\-/","",$fin[0]);
93 | $value[2]=preg_replace("/V:/","",$fin[1]);
94 | } else {
95 | $value[0]="MSIE";
96 | $value[1]="NA";
97 | $value[2]="NA";
98 | }
99 | $value[3]=$_SERVER["REMOTE_ADDR"];
100 | return($value);
101 | }
102 |
103 | function get_grandstream_cfg($mac)
104 | {
105 | $phone_data = get_phone_data($mac, false, true);
106 | $durl = parse_url($_SERVER['REQUEST_URI']);
107 |
108 | $search = array(
109 | '{{HOST_PROVSERVER}}',
110 | '{{HOST_TIMESERVER}}',
111 | '{{PROV_PASSWORD}}',
112 | '{{NEW_LOGIN}}',
113 | '{{Phone_Reregister_Prov}}',
114 | );
115 |
116 | $replace = array(
117 | $durl['host'],
118 | $durl['host'],
119 | 'provpass',
120 | _("Logout"),
121 | '360',
122 | );
123 |
124 | // make slower for security
125 | sleep(4.5);
126 | $generator = $phone_data['template']->pvt_generator;
127 | $read = $generator($phone_data['template']->cfg_base,'settings');
128 | if($read)
129 | echo preg_replace($search, $replace, $read);
130 | }
131 |
132 | show_debug();
133 | include("../snom/debug_footer.php");
134 | ?>
--------------------------------------------------------------------------------
/phplib/SagCache.php:
--------------------------------------------------------------------------------
1 | currentSize = 0;
37 | $this->maxSize = 1000000;
38 | }
39 |
40 | /**
41 | * Returns the cached object or null if nothing is cached.
42 | *
43 | * @param string $url The URL of the request we're caching.
44 | * @return object
45 | */
46 | abstract public function get($url);
47 |
48 | /**
49 | * Caches the item returned at the provided key, replacing any pre-existing
50 | * cached item. If the cache's size will be exceeded by caching the new item,
51 | * then it will remove items from the cache until there is sufficient room.
52 | *
53 | * Returns false if the item cannot be added to the cache for any reason:
54 | * exceeds the cache size, invalid type, or relevant HTTP headers.
55 | *
56 | * Returns true if we were able to add the item, and there was no previously
57 | * cached item.
58 | *
59 | * Returns the previously cached item if there was one and we were able to
60 | * add the new item to the cache.
61 | *
62 | * Sag will refuse to cache the object by throwing a SagException if adding
63 | * the file to the cache would exceed 95% of the disk or partition's free
64 | * space.
65 | *
66 | * @param string $url The URL of the request we're caching.
67 | * @param object $item The response we're caching.
68 | * @return mixed
69 | */
70 | abstract public function set($url, &$item);
71 |
72 | /**
73 | * Removes the item from the cache and returns it (null if nothing was
74 | * cached).
75 | *
76 | * @param string $url The URL of the response we're removing from the cache.
77 | * @return mixed
78 | */
79 | abstract public function remove($url);
80 |
81 | /**
82 | * Clears the whole cache without applying any logic.
83 | *
84 | * Returns true if the entire cache was cleared, otherwise false if only part
85 | * or none of it was cleared.
86 | *
87 | * @return bool
88 | */
89 | abstract public function clear();
90 |
91 | /**
92 | * Sets the max size of the cache in bytes.
93 | *
94 | * @param int $bytes The size of the cache in bytes (>0).
95 | */
96 | public function setSize($bytes) {
97 | if(!is_int($bytes) || $bytes <= 0) {
98 | throw new Exception("The cache size must be a positive integer (bytes).");
99 | }
100 |
101 | $this->maxSize = $bytes;
102 | }
103 |
104 | /**
105 | * Returns the max size of the cache, irrespective of what is or isn't in the
106 | * cache.
107 | *
108 | * @return int
109 | */
110 | public function getSize() {
111 | return $this->maxSize;
112 | }
113 |
114 | /**
115 | * Returns the total size of the items in the cache in bytes. Not reliable if
116 | * you're using SagMemoryCache.
117 | *
118 | * @return int
119 | */
120 | public function getUsage() {
121 | return $this->currentSize;
122 | }
123 |
124 | /**
125 | * Generates the hash of the provided URL that will be used as the cache key.
126 | *
127 | * @param string $url The URL to hash.
128 | * @return string
129 | */
130 | public function makeKey($url) {
131 | return sha1($url);
132 | }
133 |
134 | protected function addToSize($amt) {
135 | if(!is_int($amt) && !is_float($amt)) {
136 | throw new SagException('Invalid cache size modifier.');
137 | }
138 |
139 | $this->currentSize += $amt;
140 | }
141 |
142 | /**
143 | * Returns whether or not the item may be cached. It has to be a stdClass
144 | * that Sag would return, with a valid E-Tag, and no cache headers that tell
145 | * us to not cache.
146 | *
147 | * @param The item that we're trying to cache - it should be a response as a
148 | * stdClass.
149 | * @return bool
150 | */
151 | protected function mayCache($item) {
152 | return (
153 | isset($item) &&
154 | is_object($item) &&
155 | isset($item->headers) &&
156 | is_string($item->headers->etag) &&
157 | !empty($item->headers->etag) &&
158 | isset($item->body) &&
159 | is_object($item->body)
160 | );
161 | }
162 | }
163 |
--------------------------------------------------------------------------------
/prov/snom/settings.php:
--------------------------------------------------------------------------------
1 | 'd',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '." rem_ip=$remote_ip, ext=$extension, pass=$password, mac=$mac");
23 | }
24 | else
25 | {
26 | // correct problem snom delimiter ?
27 | if (preg_match("/\?/",$mac)) {
28 | $value=preg_split("/\?/",$mac);
29 | $mac = strtoupper($value[0]);
30 | $val=preg_split("/\=/",$value[1]);
31 | $extension = $val[1];
32 | $val=preg_split("/=/",$value[2]);
33 | $password = $val[1];
34 | }
35 | if (preg_match("/\?/",$extension)) {
36 | $value=preg_split("/\?/",$extension);
37 | $extension = $value[0];
38 | $val=preg_split("/\=/",$value[1]);
39 | $password = $val[1];
40 | define(DEBUG_VIEW, false);
41 | }
42 | if($_REQUEST['mac']) $mac = $_REQUEST['mac'];
43 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."rem_ip=$remote_ip, ext=$extension, pass=$password, mac=$mac");
44 | }
45 |
46 | $mac = strtoupper(trim($mac));
47 | $value = snom_decode_HTTP_header();
48 |
49 | if($_REQUEST['user_agent'] != false) $agent = $_REQUEST['user_agent'];
50 | else $agent = $_SERVER['HTTP_USER_AGENT'];
51 |
52 | if($_REQUEST['phonetyp'] != '') {
53 | $phone_type = $_REQUEST['phonetyp'];
54 | } else {
55 | $phone_type = check_snomphone_type($agent);
56 | define(DEBUG_VIEW,false);
57 | }
58 |
59 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."type=$phone_type mac=$mac pass=".$_REQUEST['pass']);
60 | switch(strtolower($phone_type)) {
61 | case "snom300":
62 | case "snom320":
63 | case "snom360":
64 | case "snom370":
65 | case "snom720":
66 | case "snom760":
67 | case "snom820":
68 | case "snom870":
69 | case "snomm3":
70 | case "snomm9":
71 | case "snomm9r":
72 | if($phone_type == 'snomm3') {
73 | $agent = $_SERVER['HTTP_USER_AGENT'];
74 | $qpass = $_REQUEST['pass'];
75 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."type=$phone_type mac=$mac pass=".$qpass);
76 | if(stristr($agent,"snom")) {
77 | list ($model,$type,$protocol,$firmware,$e,$mac) = split('-|\/| \(|=|;', $agent);
78 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."type=$phone_type mac=$mac pass=".$qpass);
79 | }
80 | } else {
81 | $qpass = $_REQUEST['pass'];
82 | }
83 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."qpass=".$qpass. filemtime("/tmp/phone-".$mac));
84 | if(preg_match("/^00041/i",$mac) && filemtime("/tmp/phone-".strtoupper($mac)) < (time()-6) ) {
85 | if(stristr("snomm9r",$phone_type)) {$phone_type = 'snomm9';}
86 | touch("/tmp/phone-".strtoupper($mac));
87 | $host = get_dbhost($hosts);
88 | $sag = new Sag($host, $dbport);
89 | $myip4 = get_ip(4);
90 | $phone_data = get_phone_data($mac, $qpass);
91 | $phone_data['device'] = strtolower($phone_type);
92 | // Upgrade Firmware if customers.firmwareupgrade is on
93 | //print_r($phone_data['account']);exit;
94 | //echo "$agent, $phone_type";
95 | if($phone_data['account'][0]['provision']['firmware_enabled'] == '1') check_snom_firmware($agent, $phone_type);
96 | else {global $debug; $debug[] = array(level=>'d',status=>'problem',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."firmwareupdate is not supported from account:".$phone_data['account'][0]['provision']['firmware_enabled']);}
97 | if(DEBUG_FUNCTION == 'all' || DEBUG_FUNCTION == 'snom' || $phone_data['prov'][0]['mac'] == true) {
98 | header('Content-type: application/json');
99 | get_provisioning($phone_data);
100 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '." MAC=$mac, ".$phone_data[$i]['device'].", mac_count(".($i).")");
101 | } else {global $debug; $debug[] = array(level=>'d',status=>'problem',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '. "provision is not supported from phone provisioned=".$phone_data['provisioned']);}
102 | } else {global $debug; $debug[] = array(level=>'d',status=>'problem',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."provision failed mac=".strtoupper($mac)." && Timediff:".filemtime("/tmp/phone-".strtoupper($mac)).">".(time()-60));}
103 | if(filemtime("/tmp/phone-".strtoupper($mac)) == false && $mac) touch("/tmp/phone-".strtoupper($mac));
104 | break;
105 | }
106 | show_debug();
107 | include("debug_footer.php");
108 | ?>
--------------------------------------------------------------------------------
/prov/tiptel/pb_on_phone.php:
--------------------------------------------------------------------------------
1 |
10 | *
11 | * This program is free software; you can redistribute it and/or
12 | * modify it under the terms of the GNU General Public License
13 | * as published by the Free Software Foundation; either version 2
14 | * of the License, or (at your option) any later version.
15 | *
16 | * This program is distributed in the hope that it will be useful,
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | * GNU General Public License for more details.
20 | *
21 | * You should have received a copy of the GNU General Public License
22 | * along with this program; if not, write to the Free Software
23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
24 | * MA 02110-1301, USA.
25 | \*******************************************************************/
26 |
27 | define( 'GS_VALID', true ); /// this is a parent file
28 |
29 | require_once( dirName(__FILE__) .'/../../../inc/conf.php' );
30 | //require_once( GS_DIR .'inc/util.php' );
31 | //require_once( GS_DIR .'inc/gs-lib.php' );
32 | require_once( GS_DIR .'inc/prov-fns.php' );
33 | set_error_handler('err_handler_die_on_err');
34 | require_once( GS_DIR .'inc/string.php' );
35 | require_once( GS_DIR .'inc/db_connect.php' );
36 | include_once( GS_DIR .'inc/group-fns.php' );
37 |
38 | header( 'Expires: 0' );
39 | header( 'Pragma: no-cache' );
40 | header( 'Cache-Control: private, no-cache, must-revalidate' );
41 | header( 'Vary: *' );
42 |
43 |
44 | function _tiptel_xml_esc( $str )
45 | {
46 | return htmlEnt( $str );
47 | }
48 |
49 | function _err( $msg='' )
50 | {
51 | @ob_end_clean();
52 | @ob_start();
53 | echo '',"\n";
54 | if (! headers_sent()) {
55 | header( 'Content-Type: text/plain; charset=utf-8' );
56 | header( 'Content-Length: '. (int)@ob_get_length() );
57 | }
58 | @ob_end_flush();
59 | exit(1);
60 | }
61 |
62 | if (! gs_get_conf('GS_TIPTEL_PROV_ENABLED')) {
63 | gs_log( GS_LOG_DEBUG, "Tiptel provisioning not enabled" );
64 | _err( 'Not enabled' );
65 | }
66 |
67 | $type = trim( @$_REQUEST['t'] );
68 | if (! in_array( $type, array('gs','prv','imported'), true )) {
69 | _err( 'Not allowed' );
70 | }
71 |
72 | $mac = strToUpper(trim( @$_REQUEST['m'] ));
73 |
74 | //FIXME - we need authentication here
75 |
76 | $requester = gs_prov_check_trust_requester();
77 | if (! $requester['allowed']) {
78 | _err( 'No! See log for details.' );
79 | }
80 |
81 | # connect to db
82 | $db = gs_db_slave_connect();
83 | if (! $db) {
84 | gs_log( GS_LOG_WARNING, "Phone with MAC \"$mac\" (Tiptel) ask for phonebook - Could not connect to DB" );
85 | _err( 'No! See log for details.' );
86 | }
87 |
88 |
89 | # get user_id
90 | $user_id = (int)$db->executeGetOne(
91 | 'SELECT `u`.`id`
92 | FROM
93 | `users` `u` JOIN
94 | `phones` `p` ON (`p`.`user_id`=`u`.`id`)
95 | WHERE
96 | `u`.`current_ip`=\''. $db->escape($requester['phone_ip']) .'\' AND
97 | `p`.`mac_addr`=\''. $db->escape($mac) .'\''
98 | );
99 | if ($user_id < 1)
100 | _err( 'Unknown user' );
101 |
102 |
103 | if ($type === 'gs') { # INTERNAL phonebook
104 | $user_groups = gs_group_members_groups_get(array($user_id), 'user');
105 | $permission_groups = gs_group_permissions_get($user_groups, 'phonebook_user');
106 | $group_members = gs_group_members_get($permission_groups);
107 |
108 | $pb = array(
109 | 'type' => 'gs',
110 | 'title' => gs_get_conf('GS_PB_INTERNAL_TITLE', __("Intern")),
111 | 'query' => 'SELECT `u`.`lastname` `ln`, `u`.`firstname` `fn`, `s`.`name` `ext`
112 | FROM
113 | `users` `u` JOIN
114 | `ast_sipfriends` `s` ON (`s`.`_user_id`=`u`.`id`)
115 | WHERE
116 | `u`.`id` IN ('.implode(',', $group_members).') AND
117 | `u`.`id`!='.$user_id.'
118 | ORDER BY `u`.`lastname`, `u`.`firstname`'
119 | );
120 | }
121 | elseif ($type ==='prv') { # PRIVATE phonebook
122 | $pb = array(
123 | 'type' => 'prv',
124 | 'title' => gs_get_conf('GS_PB_PRIVATE_TITLE', __("Pers\xC3\xB6nlich")),
125 | 'query' => 'SELECT `pb`.`lastname` `ln`, `pb`.`firstname` `fn`, `pb`.`number` `ext`
126 | FROM
127 | `pb_prv` `pb`
128 | WHERE `pb`.`user_id`='.$user_id.'
129 | ORDER BY `pb`.`lastname`, `pb`.`firstname`'
130 | );
131 | }
132 | elseif ($type === 'imported') { # IMPORTED phonebook
133 | if (! gs_get_conf('GS_PB_IMPORTED_ENABLED'))
134 | _err( 'Not allowed' );
135 |
136 | $pb = array(
137 | 'type' => 'imported',
138 | 'title' => gs_get_conf('GS_PB_IMPORTED_TITLE', __("Extern")),
139 | 'query' => 'SELECT `lastname` `ln`, `firstname` `fn`, `number` `ext`
140 | FROM `pb_ldap`
141 | ORDER BY `lastname`, `firstname`'
142 | );
143 | }
144 |
145 |
146 | ob_start();
147 |
148 | echo '','xml version="1.0" encoding="utf-8"?','>' ,"\n";
149 | echo '' ,"\n";
150 | echo ''. tiptelXmlEsc($pb['title']) .'', "\n";
151 |
152 | $rs = $db->execute( $pb['query'] );
153 |
154 | if ( $rs && $rs->numRows() !== 0 ) {
155 | while ($r = $rs->fetchRow()) {
156 | $lastname = $r['ln'];
157 | $firstname = $r['fn'];
158 | $number = $r['ext'];
159 |
160 | echo '' ,"\n";
161 | echo ''. tiptelXmlEsc($lastname) .', '. tiptelXmlEsc($firstname) .' ('. tiptelXmlEsc($number) .')', "\n";
162 | echo ''. tiptelXmlEsc($number) .'', "\n";
163 | echo '' ,"\n";
164 | }
165 | }
166 |
167 | echo '' ,"\n";
168 |
169 | if (! headers_sent()) {
170 | header( 'Content-Type: application/xml' );
171 | header( 'Content-Length: '. (int)@ob_get_length() );
172 | }
173 | @ob_end_flush();
174 |
175 | ?>
176 |
--------------------------------------------------------------------------------
/prov/yealink/settings.php:
--------------------------------------------------------------------------------
1 | 'd',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."rem_ip=$remote_ip, pass=$qpass, mac=$mac");
27 |
28 | } else {
29 | $nonepass = false;
30 | $model = strtolower($header[0].$header[1]);
31 | $mac = strtoupper(str_replace(":","",$header[3]));
32 | $firmware = $header[2];
33 | define(DEBUG_VIEW, false);
34 | if($_REQUEST['pass']) $qpass = $_REQUEST['pass'];
35 | global $debug; $debug[] = array(level=>'d',status=>'info',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."rem_ip=$remote_ip, pass=$qpass, mac=$mac");
36 | if(strtoupper(str_replace(":","",$_REQUEST['mac'])) !== $mac) $model = false;
37 | }
38 | $mac = strtoupper(str_replace(":","",$mac));
39 | global $debug; $debug['yealink/dheader'][] = "(yealink 2) model=$model, mac=$mac firmware=$firmware, remote_ip=$remote_ip, file=$file";
40 |
41 | switch($model) {
42 | case 'yealinksip-t19p':
43 | case 'yealinksip-t21p':
44 | case 'yealinksip-t22p':
45 | case 'yealinksip-t23p':
46 | case 'yealinksip-t26p':
47 | case 'yealinksip-t28p':
48 | case 'yealinksip-t32g':
49 | case 'yealinksip-t38g':
50 | case 'yealinksip-t41g':
51 | case 'yealinksip-t42g':
52 | case 'yealinksip-t46g':
53 | case 'yealinksip-t46g-1':
54 | case 'yealinksip-t46g-2':
55 | case 'yealinksip-t48g':
56 | case 'yealinksip-t48g-1':
57 | case 'yealinksip-t48g-2':
58 | case 'yealinksip-w52p':
59 | if (stristr($file,"yealink.cfg")) {
60 | if(function_exists("get_yealink_cfg"))
61 | $host = get_dbhost($hosts);
62 | $sag = new Sag($host, $dbport);
63 | get_yealink_cfg($mac);
64 | } else {
65 | if(preg_match("/^001565/i",$mac)) {
66 | global $debug; $debug['yealink/mswitch'][] = "(yealink) OK model=$model file=$file";
67 | $host = get_dbhost($hosts);
68 | $sag = new Sag($host, $dbport);
69 | if(preg_match("/^001565/",$mac) && filemtime("/tmp/phone-".$mac) <= (time()-6)){
70 | touch("/tmp/phone-".strtoupper($mac));
71 | $phone_data = get_phone_data($mac, $qpass, $nonepass);
72 | if($phone_data == false) exit;
73 | $phone_data['device'] = strtolower($model);
74 | //print_r($phone_data);
75 | if($phone_data['account'][0]['provision']['firmware_enabled'] == '1') check_yealink_firmware($agent, $phone_type);
76 | else {global $debug; $debug[] = array(level=>'d',status=>'problem',file=>__FILE__.":".__LINE__,log=>'('. __FUNCTION__ .') '."firmwareupdate is not supported from account:".$phone_data['account'][0]['provision']['firmware_enabled']);}
77 | if(DEBUG_FUNCTION == 'all' || DEBUG_FUNCTION == 'yealink' || $phone_data['prov'][0]['mac'] == true) {
78 | get_provisioning($phone_data);
79 | global $debug; $debug['yealink/getprov'][] = " (get_provision) MAC=$mac, $model".$phone_data['callerid']." $add";
80 | } else {global $debug; $debug['yealink/getprov'][] = " (get_provision) is not supported from phone provisioned=".$phone_data['provisioned'];}
81 | } else {global $debug; $debug['yealink/prov'][] = "(provision failed) mac=".strtoupper($mac)." && Timediff:".filemtime("/tmp/phone-".strtoupper($mac));}
82 | }
83 | }
84 | //print_r($debug);
85 | break;
86 | if(function_exists(debug_log) && $debug) {
87 | foreach($debug as $k1 => $deb) {
88 | foreach($deb as $k2 => $detail) {
89 | debug_log('['.$k1.']['.$k2.'] '.$detail.']',$k1);
90 | }
91 | }
92 | }
93 | }
94 |
95 | function Yealink_decode_HTTP_header()
96 | {
97 | if($_REQUEST['user_agent'] != false)
98 | $user_agent = $_REQUEST['user_agent'];
99 | else
100 | $user_agent=$_SERVER["HTTP_USER_AGENT"];
101 |
102 | if(stristr($user_agent,"Yealink"))
103 | {
104 | $value=explode(" ",$user_agent);
105 | } else {
106 | $value[0]="MSIE";
107 | $value[1]="NA";
108 | $value[2]="NA";
109 | }
110 | $value[]=$_SERVER["REMOTE_ADDR"];
111 | return($value);
112 | }
113 |
114 | function get_yealink_cfg($mac)
115 | {
116 | $phone_data = get_phone_data($mac, false, true);
117 | $durl = parse_url($_SERVER['REQUEST_URI']);
118 |
119 | $search = array(
120 | '{{HOST_PROVSERVER}}',
121 | '{{HOST_TIMESERVER}}',
122 | '{{PROV_PASSWORD}}',
123 | '{{NEW_LOGIN}}',
124 | '{{Phone_Reregister_Prov}}',
125 | );
126 |
127 | $replace = array(
128 | $durl['host'],
129 | $durl['host'],
130 | 'provpass',
131 | _("Logout"),
132 | '360',
133 | );
134 |
135 | // make slower for security
136 | sleep(4.5);
137 | $generator = $phone_data['template']->pvt_generator;
138 | $read = $generator($phone_data['template']->cfg_base,'settings');
139 | if($read)
140 | echo preg_replace($search, $replace, $read);
141 | }
142 |
143 | show_debug();
144 | include("../snom/debug_footer.php");
145 | ?>
--------------------------------------------------------------------------------
/DEVELOP/snom_template_plain.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | 'm3x', 'keys'=>'0', 'ekeys' => '0');
12 |
13 | foreach($types as $mod => $val) {
14 |
15 | $prov['endpoint_brand'] = 'snom';
16 | $prov['endpoint_family'] = $val['fam'];
17 | $prov['endpoint_model'] = $mod;
18 | /* this is programable keys on phone */
19 | $prov['usr_keys']['setable_phone_keys'] = $val['keys'];
20 | $prov['usr_keys']['setable_phone_key_counter'] = '1';
21 | $prov['usr_keys']['setable_phone_key_value'] = 'fkey';
22 | /* this is extensions module keys */
23 | $prov['usr_keys']['setable_module_keys'] = $val['ekeys'];
24 | $prov['usr_keys']['setable_module_key_counter'] = '1';
25 | /* there use an special key for extensionsmodule */
26 | $prov['usr_keys']['setable_module_key_value'] = 'extkey';
27 |
28 |
29 | // this is example manual plain to jaon format (ACCOUNT MUST BE!)
30 | $in =
31 | '
32 |
33 | %SRV_{ACCOUNT}_SIP_UA_DATA_DOMAIN%:
34 | %SRV_{ACCOUNT}_SIP_URI_DOMAIN_CONFIG%: 2
35 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_PORT%: {PROXY_PORT}
36 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_TYPE%: 0
37 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_IS_LOCAL%: 1
38 | %SRV_{ACCOUNT}_SIP_UA_DATA_REREG_TIME%: {PHONE_REREGISTER}
39 | %SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_ADDR%:
40 | %SRV_{ACCOUNT}_DTMF_SIGNALLING%: 1
41 | %SRV_{ACCOUNT}_SIP_UA_CODEC_PRIORITY%: 0, 1, 2, 4, 255
42 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME%: "{SIPAUTHNAME}"
43 | %SUBSCR_{ACCOUNT}_UA_DATA_DISP_NAME%: "{SIPCALLERID}"
44 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME_ALIAS%: "{SIPAUTHNAME}"
45 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NAME%: "{SIPAUTHNAME}"
46 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NUMBER%: "{VMSD}"
47 | %SUBSCR_{ACCOUNT}_UA_DATA_AUTH_NAME%: "{SIPAUTHNAME}"
48 | %SUBSCR_{ACCOUNT}_UA_DATA_AUTH_PASS%: "{SIPSECRET}"
49 | %CLIR_CODE_ENABLE_UA_{ACCOUNT}%: 0
50 | %CLIR_PREFIX_UA_{ACCOUNT}%:
51 | %SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_PORT%: {PROXY_PORT}
52 | %HANDSET_{ACCOUNT_2}_NAME%: "{INTERNAL} {SIPCALLERID}"
53 | %HANDSET_{ACCOUNT_2}_CW%: 1
54 | %HANDSET_{ACCOUNT_2}_DND%: 0
55 | %FWD_ON_BUSY_ACT_{ACCOUNT_2}%:
56 | %FWD_ON_BUSY_DEACT_{ACCOUNT_2}%:
57 | %FWD_ON_NO_ANSWER_ACT_{ACCOUNT_2}%:
58 | %FWD_ON_NO_ANSWER_DEACT_{ACCOUNT_2}%:
59 | %FWD_UNCOND_ACT_{ACCOUNT_2}%: "61*"
60 | %FWD_UNCOND_DEACT_{ACCOUNT_2}%:
61 | %DECT_SUBS_{ACCOUNT_2}%: 0, 0, 0, 0, 0
62 |
63 | ';
64 |
65 | $prov['cfg_account'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
66 |
67 | // this is example manual plain to jaon format (BASE OPTIONAL)
68 | $in =
69 | '
70 |
71 | %GMT_TIME_ZONE%: 16
72 | %PLAY_INBAND_DTMF%: 1
73 | %AUTOMATIC_SYNC_CLOCK%: 1
74 | %AC_CODE%: {PROVPASS}
75 | %COMMON_PHONEBOOK%: 1
76 | %PINCODE_PROTECTED_SETTINGS%: 255
77 | %DECT_SUBS_MATCH_IPEI%: 0
78 | %FWU_POLLING_ENABLE%: 0
79 | %FWU_POLLING_MODE%: 0
80 | %FWU_POLLING_PERIOD%: 86400
81 | %FWU_POLLING_TIME_HH%: 3
82 | %FWU_POLLING_TIME_MM%: 0
83 | %COUNTRY_VARIANT_ID%: {COUNTRYID_M3}
84 | %EMERGENCY_PRIMARY_PORT%: 1
85 | %JOIN_CALLS_ALLOWED%: 0
86 | %SIP_KEEP_ALIVE_ENABLE%: 1
87 | %SIP_SIP_PRIORITY%: 4
88 | %DELAYED_MEDIA_BEHAVIOUR%: 0
89 | %NETWORK_FWU_SERVER%: "provisioning.snom.com"
90 | %NETWORK_RTP_QOS_REPORT_SERVER%:
91 | %NETWORK_RTP_QOS_REPORT_PATH%: "/QOSReports/"
92 | %NETWORK_RTP_QOS_REPORT_PROTOCOL%: 1
93 | %NETWORK_RTP_QOS_REPORT_ENABLE%: 0
94 | %NETWORK_VLAN_ID%: 0
95 | %NETWORK_VLAN_USER_PRIORITY%: 0
96 | %VOIP_LOG_AUTO_UPLOAD%: 0
97 | %NETWORK_DHCP_CLIENT_TIMEOUT%: 3
98 | %NETWORK_DHCP_CLIENT_BOOT_SERVER%: 3
99 | %NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION%: 160
100 | %NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION_DATATYPE%: 1
101 | %INFOPUSH_ICO_PRELOAD_URL%:
102 | %LOCAL_HTTP_SERVER_TEMPLATE_TITLE%: "SNOM M3"
103 | %LOCAL_HTTP_SERVER_AUTH_NAME%: "admin"
104 | %LOCAL_HTTP_SERVER_AUTH_PASS%: "{PROVPASS}"
105 | %LOCAL_HTTP_SERVER_ACCESS%: 36863
106 | %CODEC_SILENCE_SUPPRESSION%: 0
107 | %SIP_STUN_ENABLE%: 0
108 | %SIP_RPORT_ENABLE%: 0
109 | %SIP_STUN_BINDTIME_GUARD%: 0
110 | %SIP_STUN_BINDTIME_DETERMINE%: 0
111 | %SIP_STUN_KEEP_ALIVE_TIME%: 0
112 | %SIP_SIP_PORT%: {PROXY_PORT}
113 | %SIP_RTP_PORT%: 15000
114 | %SIP_RTP_PORT_RANGE%: 20
115 | %FWU_TFTP_SERVER_PATH%: "/m3/firmware/"
116 | %SIP_RTP_PRIORITY%: 4
117 | %TRACE_MODE%: 1
118 | %CONFIGURATION_FILE_FLAG%: 1
119 | %MANAGEMENT_TRANSFER_PROTOCOL%: 1
120 | %MANAGEMENT_PASSWORD%: "VoipLan"
121 | %MANAGEMENT_UPLOAD_SCRIPT%: "/CfgUpload"
122 | %ENABLE_SIP_MESSAGE_ENCRYPTION%: 0
123 | %NETWORK_STUN_SERVER%:
124 | %NETWORK_SNTP_SERVER%: "{PROV_SERVER}"
125 | %NETWORK_TFTP_SERVER%: "{PROV_SERVER}"
126 | %NETWORK_SNTP_SERVER_UPDATE_TIME%: 60
127 |
128 | ';
129 |
130 | $prov['cfg_base'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
131 |
132 |
133 | // this is example manual plain to jaon format (BASE OPTIONAL)
134 | $in = /* putin behavior settings from phone !!!!!!!*/
135 | '
136 |
137 | %DST_ENABLE%: 2
138 | %DST_FIXED_DAY_ENABLE%: 0
139 | %DST_START_MONTH%: 3
140 | %DST_START_DATE%: 1
141 | %DST_START_TIME%: 2
142 | %DST_START_DAY_OF_WEEK%: 1
143 | %DST_START_WDAY_LAST_IN_MONTH%: 1
144 | %DST_STOP_MONTH%: 10
145 | %DST_STOP_DATE%: 1
146 | %DST_STOP_TIME%: 2
147 | %DST_STOP_DAY_OF_WEEK%: 1
148 | %DST_STOP_WDAY_LAST_IN_MONTH%: 1
149 | %ENABLE_ENHANCED_IDLE_SCREEN%: 0
150 |
151 | ';
152 |
153 | $prov['cfg_behavior'] = json_decode(plain2json($in, $del));
154 |
155 |
156 | // this is example manual plain to jaon format (BASE OPTIONAL)
157 | $in = /* putin behavior settings from phone !!!!!!!!!*/
158 | '
159 |
160 | ';
161 |
162 | $prov['cfg_tone'] = json_decode(plain2json($in, $del));
163 |
164 | // this is example manual plain to jaon format (BASE OPTIONAL)
165 | $in = /* putin behavior settings from phone !!!!!!!!!!*/
166 | '
167 |
168 | ';
169 |
170 | $prov['cfg_key'] = json_decode(plain2json($in, $del));
171 |
172 | $prov['pvt_counter'] = 0;
173 | $prov['pvt_type'] = 'provisioner';
174 |
175 | $prov['pvt_generator'] = 'json2plain';
176 | echo upload_phone_data($prov);
177 | unset($prov);
178 | }
179 |
180 | ?>
--------------------------------------------------------------------------------
/DEVELOP/grandstream_template_plain.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | 'm3x', 'keys'=>'0', 'ekeys' => '0');
12 |
13 | foreach($types as $mod => $val) {
14 |
15 | $prov['endpoint_brand'] = 'grandstream';
16 | $prov['endpoint_family'] = $val['fam'];
17 | $prov['endpoint_model'] = $mod;
18 | /* this is programable keys on phone */
19 | $prov['usr_keys']['setable_phone_keys'] = $val['keys'];
20 | $prov['usr_keys']['setable_phone_key_counter'] = '1';
21 | $prov['usr_keys']['setable_phone_key_value'] = 'fkey';
22 | /* this is extensions module keys */
23 | $prov['usr_keys']['setable_module_keys'] = $val['ekeys'];
24 | $prov['usr_keys']['setable_module_key_counter'] = '1';
25 | /* there use an special key for extensionsmodule */
26 | $prov['usr_keys']['setable_module_key_value'] = 'extkey';
27 |
28 |
29 | // this is example manual plain to jaon format (ACCOUNT MUST BE!)
30 | $in =
31 | '
32 |
33 | %SRV_{ACCOUNT}_SIP_UA_DATA_DOMAIN%:
34 | %SRV_{ACCOUNT}_SIP_URI_DOMAIN_CONFIG%: 2
35 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_PORT%: {PROXY_PORT}
36 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_TYPE%: 0
37 | %SRV_{ACCOUNT}_SIP_UA_DATA_SERVER_IS_LOCAL%: 1
38 | %SRV_{ACCOUNT}_SIP_UA_DATA_REREG_TIME%: {PHONE_REREGISTER}
39 | %SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_ADDR%:
40 | %SRV_{ACCOUNT}_DTMF_SIGNALLING%: 1
41 | %SRV_{ACCOUNT}_SIP_UA_CODEC_PRIORITY%: 0, 1, 2, 4, 255
42 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME%: "{SIPAUTHNAME}"
43 | %SUBSCR_{ACCOUNT}_UA_DATA_DISP_NAME%: "{SIPCALLERID}"
44 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_SIP_NAME_ALIAS%: "{SIPAUTHNAME}"
45 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NAME%: "{SIPAUTHNAME}"
46 | %SUBSCR_{ACCOUNT}_SIP_UA_DATA_VOICE_MAILBOX_NUMBER%: "{VMSD}"
47 | %SUBSCR_{ACCOUNT}_UA_DATA_AUTH_NAME%: "{SIPAUTHNAME}"
48 | %SUBSCR_{ACCOUNT}_UA_DATA_AUTH_PASS%: "{SIPSECRET}"
49 | %CLIR_CODE_ENABLE_UA_{ACCOUNT}%: 0
50 | %CLIR_PREFIX_UA_{ACCOUNT}%:
51 | %SRV_{ACCOUNT}_SIP_UA_DATA_PROXY_PORT%: {PROXY_PORT}
52 | %HANDSET_{ACCOUNT_2}_NAME%: "{INTERNAL} {SIPCALLERID}"
53 | %HANDSET_{ACCOUNT_2}_CW%: 1
54 | %HANDSET_{ACCOUNT_2}_DND%: 0
55 | %FWD_ON_BUSY_ACT_{ACCOUNT_2}%:
56 | %FWD_ON_BUSY_DEACT_{ACCOUNT_2}%:
57 | %FWD_ON_NO_ANSWER_ACT_{ACCOUNT_2}%:
58 | %FWD_ON_NO_ANSWER_DEACT_{ACCOUNT_2}%:
59 | %FWD_UNCOND_ACT_{ACCOUNT_2}%: "61*"
60 | %FWD_UNCOND_DEACT_{ACCOUNT_2}%:
61 | %DECT_SUBS_{ACCOUNT_2}%: 0, 0, 0, 0, 0
62 |
63 | ';
64 |
65 | $prov['cfg_account'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
66 |
67 | // this is example manual plain to jaon format (BASE OPTIONAL)
68 | $in =
69 | '
70 |
71 | %GMT_TIME_ZONE%: 16
72 | %PLAY_INBAND_DTMF%: 1
73 | %AUTOMATIC_SYNC_CLOCK%: 1
74 | %AC_CODE%: {PROVPASS}
75 | %COMMON_PHONEBOOK%: 1
76 | %PINCODE_PROTECTED_SETTINGS%: 255
77 | %DECT_SUBS_MATCH_IPEI%: 0
78 | %FWU_POLLING_ENABLE%: 0
79 | %FWU_POLLING_MODE%: 0
80 | %FWU_POLLING_PERIOD%: 86400
81 | %FWU_POLLING_TIME_HH%: 3
82 | %FWU_POLLING_TIME_MM%: 0
83 | %COUNTRY_VARIANT_ID%: {COUNTRYID_M3}
84 | %EMERGENCY_PRIMARY_PORT%: 1
85 | %JOIN_CALLS_ALLOWED%: 0
86 | %SIP_KEEP_ALIVE_ENABLE%: 1
87 | %SIP_SIP_PRIORITY%: 4
88 | %DELAYED_MEDIA_BEHAVIOUR%: 0
89 | %NETWORK_FWU_SERVER%: "provisioning.grandstream.com"
90 | %NETWORK_RTP_QOS_REPORT_SERVER%:
91 | %NETWORK_RTP_QOS_REPORT_PATH%: "/QOSReports/"
92 | %NETWORK_RTP_QOS_REPORT_PROTOCOL%: 1
93 | %NETWORK_RTP_QOS_REPORT_ENABLE%: 0
94 | %NETWORK_VLAN_ID%: 0
95 | %NETWORK_VLAN_USER_PRIORITY%: 0
96 | %VOIP_LOG_AUTO_UPLOAD%: 0
97 | %NETWORK_DHCP_CLIENT_TIMEOUT%: 3
98 | %NETWORK_DHCP_CLIENT_BOOT_SERVER%: 3
99 | %NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION%: 160
100 | %NETWORK_DHCP_CLIENT_BOOT_SERVER_OPTION_DATATYPE%: 1
101 | %INFOPUSH_ICO_PRELOAD_URL%:
102 | %LOCAL_HTTP_SERVER_TEMPLATE_TITLE%: "grandstream M3"
103 | %LOCAL_HTTP_SERVER_AUTH_NAME%: "admin"
104 | %LOCAL_HTTP_SERVER_AUTH_PASS%: "{PROVPASS}"
105 | %LOCAL_HTTP_SERVER_ACCESS%: 36863
106 | %CODEC_SILENCE_SUPPRESSION%: 0
107 | %SIP_STUN_ENABLE%: 0
108 | %SIP_RPORT_ENABLE%: 0
109 | %SIP_STUN_BINDTIME_GUARD%: 0
110 | %SIP_STUN_BINDTIME_DETERMINE%: 0
111 | %SIP_STUN_KEEP_ALIVE_TIME%: 0
112 | %SIP_SIP_PORT%: {PROXY_PORT}
113 | %SIP_RTP_PORT%: 15000
114 | %SIP_RTP_PORT_RANGE%: 20
115 | %FWU_TFTP_SERVER_PATH%: "/m3/firmware/"
116 | %SIP_RTP_PRIORITY%: 4
117 | %TRACE_MODE%: 1
118 | %CONFIGURATION_FILE_FLAG%: 1
119 | %MANAGEMENT_TRANSFER_PROTOCOL%: 1
120 | %MANAGEMENT_PASSWORD%: "VoipLan"
121 | %MANAGEMENT_UPLOAD_SCRIPT%: "/CfgUpload"
122 | %ENABLE_SIP_MESSAGE_ENCRYPTION%: 0
123 | %NETWORK_STUN_SERVER%:
124 | %NETWORK_SNTP_SERVER%: "{PROV_SERVER}"
125 | %NETWORK_TFTP_SERVER%: "{PROV_SERVER}"
126 | %NETWORK_SNTP_SERVER_UPDATE_TIME%: 60
127 |
128 | ';
129 |
130 | $prov['cfg_base'] = json_decode(plain2json($in, $del)); /* ":" is for split line in 2 pices on : */
131 |
132 |
133 | // this is example manual plain to jaon format (BASE OPTIONAL)
134 | $in = /* putin behavior settings from phone !!!!!!!*/
135 | '
136 |
137 | %DST_ENABLE%: 2
138 | %DST_FIXED_DAY_ENABLE%: 0
139 | %DST_START_MONTH%: 3
140 | %DST_START_DATE%: 1
141 | %DST_START_TIME%: 2
142 | %DST_START_DAY_OF_WEEK%: 1
143 | %DST_START_WDAY_LAST_IN_MONTH%: 1
144 | %DST_STOP_MONTH%: 10
145 | %DST_STOP_DATE%: 1
146 | %DST_STOP_TIME%: 2
147 | %DST_STOP_DAY_OF_WEEK%: 1
148 | %DST_STOP_WDAY_LAST_IN_MONTH%: 1
149 | %ENABLE_ENHANCED_IDLE_SCREEN%: 0
150 |
151 | ';
152 |
153 | $prov['cfg_behavior'] = json_decode(plain2json($in, $del));
154 |
155 |
156 | // this is example manual plain to jaon format (BASE OPTIONAL)
157 | $in = /* putin behavior settings from phone !!!!!!!!!*/
158 | '
159 |
160 | ';
161 |
162 | $prov['cfg_tone'] = json_decode(plain2json($in, $del));
163 |
164 | // this is example manual plain to jaon format (BASE OPTIONAL)
165 | $in = /* putin behavior settings from phone !!!!!!!!!!*/
166 | '
167 |
168 | ';
169 |
170 | $prov['cfg_key'] = json_decode(plain2json($in, $del));
171 |
172 | $prov['pvt_counter'] = 0;
173 | $prov['pvt_type'] = 'provisioner';
174 |
175 | $prov['pvt_generator'] = 'json2plain';
176 | echo upload_phone_data($prov);
177 | unset($prov);
178 | }
179 |
180 | ?>
--------------------------------------------------------------------------------
/DEVELOP/polycom_template_xml.php:
--------------------------------------------------------------------------------
1 | #!/usr/bin/php
2 | 'spip', 'keys'=>'0', 'ekeys' => '0');
13 | $types['320'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
14 | $types['321'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
15 | $types['322'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
16 | $types['330'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
17 | $types['331'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
18 | $types['335'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
19 | $types['430'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
20 | $types['450'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
21 | $types['501'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
22 | $types['550'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
23 | $types['560'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
24 | $types['600'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
25 | $types['601'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
26 | $types['650'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
27 | $types['670'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
28 | $types['4000'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
29 | $types['5000'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
30 | $types['6000'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
31 | $types['7000'] = array('fam' => 'spip', 'keys'=>'0', 'ekeys' => '0');
32 | // vvx family
33 | $types['300'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
34 | $types['310'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
35 | $types['400'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
36 | $types['410'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
37 | $types['500'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
38 | $types['600'] = array('fam' => 'vvx', 'keys'=>'0', 'ekeys' => '0');
39 |
40 | foreach($types as $mod => $val) {
41 |
42 | $prov['endpoint_brand'] = 'polycom';
43 | $prov['endpoint_family'] = $val['fam'];
44 | $prov['endpoint_model'] = $mod;
45 | /* this is programable keys on phone */
46 | $prov['usr_keys']['setable_phone_keys'] = $val['keys'];
47 | $prov['usr_keys']['setable_phone_key_counter'] = '1';
48 | $prov['usr_keys']['setable_phone_key_value'] = 'fkey';
49 | /* this is extensions module keys */
50 | $prov['usr_keys']['setable_module_keys'] = $val['ekeys'];
51 | $prov['usr_keys']['setable_module_key_counter'] = '1';
52 | /* there use an special key for extensionsmodule */
53 | $prov['usr_keys']['setable_module_key_value'] = 'extkey';
54 |
55 |
56 | $in = /* putin account settings from phone !!!!!!!*/ '';
57 | if($in) $prov['cfg_account'] = XML2Array::createArray($in);
58 |
59 | $in = /* putin behavior settings from phone !!!!!!!*/ '
60 |
61 |
62 | true
63 | true
64 | true
65 |
66 |
67 | dhcp
68 | 0.us.pool.ntp.org
69 | CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00
70 |
71 |
72 |
73 | update
74 | 0
75 |
76 |
77 |
78 | kws300firmware.bin
79 |
80 |
81 | static
82 | ftp://{SERVER}/
83 |
84 |
85 | true
86 |
87 |
88 | {SERVER}
89 |
90 | 270
91 | false
92 | true
93 | 96
94 |
95 | 12050
96 | 70
97 |
98 | 1,2
99 | 58000
100 | 20
101 | true
102 | 184
103 |
104 |
105 | true
106 | 300
107 | true
108 |
109 | true
110 | false
111 |
112 | {SERVER}
113 | 0
114 | UDPonly
115 |
116 | 300
117 | false
118 | false
119 | true
120 | true
121 | 96
122 |
123 |
124 | ';
125 | if($in) $prov['cfg_behavior'] = XML2Array::createArray($in);
126 |
127 | /* if you have more the 1 subselection add this seperatly */
128 | $in = '';
129 | if($in) $prov['cfg_behavior'] = array_merge($prov['cfg_behavior'], XML2Array::createArray($in));
130 |
131 | $in = /* putin base settings from phone !!!!!!!*/ '';
132 | if($in) $prov['cfg_base'] = XML2Array::createArray($in);
133 |
134 | /* if you have more the 1 subselection add this seperatly */
135 | $in ='';
136 | if($in) $prov['cfg_base'] = array_merge($prov['cfg_base'], XML2Array::createArray($in));
137 |
138 | $in = '';
139 | if($in) $prov['cfg_base'] = array_merge($prov['cfg_base'], XML2Array::createArray($in));
140 |
141 | $in = /* putin tone settings from phone !!!!!!!*/ '';
142 | if($in) $prov['cfg_tone'] = XML2Array::createArray($in);
143 |
144 | $in = /* putin keys settings from phone !!!!!!!*/ '';
145 | if($in) $prov['cfg_keys'] = XML2Array::createArray($in);
146 |
147 | $prov['cfg_key'] = json_decode(plain2json($in, $del));
148 |
149 |
150 |
151 |
152 | $prov['pvt_generator'] = 'json2xml';
153 | $prov['pvt_counter'] = 1;
154 | $prov['pvt_type'] = 'provisioner';
155 | echo upload_phone_data($prov);
156 | unset($prov);
157 | }
158 |
159 | ?>
--------------------------------------------------------------------------------