forked from blacksenator/carddav2fb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.php
145 lines (138 loc) · 5.44 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
<?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 = CardDAV contacts overwrite phonebook on Fritz!Box
], // 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
]
],
/* 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
],
'plainFTP' => false, // set true to use FTP instead of FTPS e.g. on Windows
],
/*
'reply' => [ // mandatory if you use "forcedupload" < 3 !
'url' => 'smtp...',
'port' => 587, // alternativ 465
'secure' => 'tls', // alternativ 'ssl'
'user' => '[USER]', // your sender email adress e.g. account
'password' => '[PASSWORD]',
'receiver' => '[email protected]', // 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' => [
'category' => [
'vip1'
],
'group' => [
'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 consecutively. Order decides!
*/
'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
]
]
];