forked from andig/carddav2fb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.example.php
183 lines (173 loc) · 6.76 KB
/
config.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
$config = [
// phonebook
'phonebook' => [
'id' => 0, // only "0" can store quickdial and vanity numbers
'name' => 'Telefonbuch',
'imagepath' => 'file:///var/InternerSpeicher/[YOURUSBSTICK]/FRITZ/fonpix/', // mandatory if you use the -i option
'forcedupload' => true, // true = overwrite FRITZ!Box phonebook
], // false = newer entries will send as VCF via eMail (-> reply)
// server (is considered with the run and download command)
'server' => [
[
'url' => 'https://...',
'user' => '',
'password' => '',
'http' => [ // http client options are directly passed to Guzzle http client
// 'verify' => false, // uncomment to disable certificate check
// 'auth' => 'digest', // uncomment for digest auth
],
// 'method' => 'PROPFIND'; // uncomment if 'REPORT' (default) causes an error (e.g. t-online)
],
/* add as many as you need
[
'url' => 'https://...',
'user' => '',
'password' => '',
...
],
*/
],
// fritzbox
'fritzbox' => [
'url' => 'http://fritz.box',
'user' => '',
'password' => '',
'fonpix' => '/[YOURUSBSTICK]/FRITZ/fonpix', // the storage on your usb stick for uploading images
'fritzfons' => [ // uncomment to upload quickdial image as background to designated FRITZ!Fon
// '613', // internal number must be in the range '610' to '615' (maximum of DECT devices)
],
'quickdial_alias' => false, // if true, than vanity names ("JON") become quickdial aliases ("Jon") in the background image
'fritzadr' => '/[YOURUSBSTICK]/FRITZ/mediabox', // if not empty FRITZadr will be written to this location
'http' => [ // http client options are directly passed to Guzzle http client
// 'debug' => true,
// 'verify' => false, // uncomment to disable certificate check
],
'ftp' => [
'plain' => false, // set true to use FTP instead of FTPS e.g. on Windows
'disabled' => false, // set true if your FRITZ!Box does not support ftp - e.g. 7412
],
],
/*
'reply' => [ // mandatory if you use "forcedupload" false !
'url' => 'smtp...',
'port' => 587, // alternativ 465
'secure' => 'tls', // alternativ 'ssl'
'user' => '[USER]', // your sender email adress e.g. account
'password' => '[PASSWORD]',
'receiver' => 'blacksenator@github.com', // your email adress to receive the secured contacts
'debug' => 0, // 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
],
*/
'filters' => [
'include' => [ // if empty include all by default
/*
'categories' => [],
'groups' => [],
*/
],
'exclude' => [
/*
'categories' => [],
'groups' => [],
*/
],
],
'conversions' => [
'vip' => [
'categories' => [
'VIP'
],
'groups' => [
'PERS'
],
],
/**
* 'realName' conversions are processed consecutively. Order decides!
*/
'realName' => [
'{lastname}, {prefix} {nickname}',
'{lastname}, {prefix} {firstname}',
'{lastname}, {nickname}',
'{lastname}, {firstname}',
'{org}',
'{fullname}'
],
/**
* 'phoneTypes':
* The order of the target values (first occurrence) determines the sorting of the telephone numbers
*/
'phoneTypes' => [
'WORK' => 'work',
'HOME' => 'home',
'CELL' => 'mobile',
'FAX' => 'fax_work' // NOTE: actual mapping is ignored but order counts, so fax is put last
],
'emailTypes' => [
'WORK' => 'work',
'HOME' => 'home'
],
/**
* 'phoneReplaceCharacters' conversions are processed length descending!
*/
'phoneReplaceCharacters' => [ // are processed consecutively. Order decides!
'(' => '', // delete separators
')' => '',
'/' => '',
'-' => '',
' ' => '',
'+49 1' => '01', // domestic numbers without area code
'+49 2' => '02',
'+49 3' => '03',
'+49 4' => '04',
'+49 5' => '05',
'+49 6' => '06',
'+49 7' => '07',
'+49 8' => '08',
'+49 9' => '09',
'+491' => '01',
'+492' => '02',
'+493' => '03',
'+494' => '04',
'+495' => '05',
'+496' => '06',
'+497' => '07',
'+498' => '08',
'+499' => '09',
'+49' => '',
'+' => '00' // normalize foreign numbers
],
],
'ipPhonebooks' => [ // uncomment your desired export(s)
/*
'jfritz' => [ // name is just for informational purposes
'xsl' => 'jfritz.xsl', // XSL transformation file in .\lib\
'path' => '', // the converted phone book is saved there
'file' => 'jfritz.phonebook.xml',
],
'Yealink' => [
'xsl' => 'Yealink.xsl', // alternative: 'Yealink_2.xsl'
'path' => '',
'file' => 'LocalPhonebook.xml',
],
'snom' => [
'xsl' => 'snom.xsl',
'path' => '',
'file' => 'phonebook.xml',
],
'Grandstream' => [
'xsl' => 'grandstream.xsl',
'path' => '',
'file' => 'gs_phonebook.xml',
],
'Cisco' => [
'xsl' => 'Cisco.xsl',
'path' => '',
'file' => 'Phonebook.xml',
],
*/
],
'wildcardNumber' => false, // set true if a main company number with a wildcard is to be added
];