aboutsummaryrefslogtreecommitdiffstats
path: root/configs/vpb.conf.sample
blob: 31e5da1ec66e02a4738f61268f4d44e48c8b9c53 (plain)
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
;
; Voicetronix Voice Processing Board (VPB) telephony interface
;
; Configuration file
;

[general]
;
; Total number of Voicetronix cards in this machine
;
cards=0

;
; Which indication functions to use
;    1 = use Asterisk functions
;    0 = use VPB functions
;
indication=1

;
; Echo Canceller suppression threshold
;    0    = no suppression threshold
;    2048 = -18dB
;    4096 = -24dB
;
;ecsuppthres=0

;
; Inter-digit delay timeout, used when collecting DTMF tones for dialling
; from a station port.  Measured in milliseconds.
;
dtmfidd=3000

;
; How to play DTMF tones
;    any value     = use Asterisk functions
;    commented out = use VPB functions
;
;ast-dtmf=1

;
; How to detect DTMF tones
;    any value     = use Asterisk functions
;    commented out = use VPB functions
;
; NOTE: this setting is currently broken, and uncommenting it will
; stop dialling from working.  Any volunteers to fix it?
;ast-dtmf-det=1

;
; Use relaxed DTMF detection (ignored unless ast-dtmf-det is set)
;
relaxdtmf=1

;
; When we do a native bridge between two VPB channels:
;    yes = only break the connection for '#' and '*'
;    no  = break the connection for any DTMF
;
; NOTE: this is currently broken, and setting to no will segfault
; Asterisk while dialling.  Any volunteers to fix it?
;
break-for-dtmf=yes

;
; The maximum period between received rings.  Measures in milliseconds.
;
timer_period_ring=4000


[interfaces]
;
; Default language
;
language=en

;
; Default context
;
context=default

;
; Echo cancellation
;     off  = no not use echo cancellation
;     on   = use echo cancellation
;
echocancel=off

;
; Caller ID routines/signalling
;   For FXO ports, select one of:
;     on   = collect caller ID between 1st/2nd rings using VPB routines
;     off  = do not use caller ID
;     bell = bell202 as used in US, using Asterisk's caller ID routines
;     v23  = v23 as used in the UK, using Asterisk's caller ID routines
;   For FXS ports, set the channel's CID in '"name" <number>' format
;
; NOTE that other caller ID standards are supported in Asterisk, but are
; not yet active in chan_vpb.  It should be reasonably trivial to add
; support for the other standards (see the default chan_dahdi.conf for a
; list of them) that Asterisk already handles.
;
callerid=bell

;
; Use a polarity reversal as the trigger for the start of caller ID,
; rather than triggering after the first ring.
;
usepolaritycid=0

;
; Use loop drop to detect the end of a call.  On by default, but if you
; experience unexpected hangups, try turning it off.
;
useloopdrop=1

;
; Use in-kernel bridging.  This will generally give lower delay audio if
; bridging between two VPB channels.  It will not affect bridging
; between VPB channels and other technologies.
;
usenativebridge=1

;
; Software transmit and receive gain.  Adjusting these will change the
; volume of audio files that are played (tx) and recorded (rx).  It will
; _not_ affect audio between channels in a native bridge.  It will,
; however, affect the volume of audio between VPB channels and channels
; using other technologies (such as VoIP channels).  Usually it's best to
; leave these as they are.  If you're looking to get rid of echo, the
; first thing to do is match your line impedance with the bal1/bal2/bal3
; settings.
;
;txgain=0.0
;rxgain=0.0

;
; Hardware transmit and receive gain.  Adjusting these will change the
; volume of all audio on a channel.  The allowed range of settings is
; -12.0 to 12.0 (measured in dB).
;
;txhwgain=0.0
;rxhwgain=0.0

;
; Balance register settings, for matching the impedance of the card to
; that of the connected equipment.  Only relevant for OpenLine and
; OpenSwitch series cards.  Values should be in the range 0 - 255.
;
; We (Voicetronix) have determined the best codec balance values for
; standard interfaces based on their US, Australian and European
; specifications, shown below.
;
; US (600 ohm)
;bal1=0xf8
;bal2=0x1a
;bal3=0x0c
;
; Australia (complex impedance)
;bal1=0xf0
;bal2=0x5d
;bal3=0x79
;
; Europe (CTR-21)
;bal1=0xf0
;bal2=0x6e
;bal3=0x75

;
; Logical groups can be assigned to allow outgoing rollover.  Groups range
; from 0 to 63, and multiple groups can be specified.
;
group=1

;
; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is
; ringing and it is a member of a group which is one of your pickup
; groups, then you can answer it by picking up and dialling *8#.  For
; simple offices, just make these both the same.  Groups range from 0 to
; 63.
;
callgroup=1
pickupgroup=1

;
; If we haven't had a "grunt" (voice activity detection) for this many
; seconds, then we hang up the line due to inactivity.  Default is one
; hour.
;
grunttimeout=3600

;
; Type of line and line handling.  This setting will usually be overridden
; on a per channel basis.  Valid settings are:
;     fxo       = this is an FXO port
;     immediate = this is an FXS port, with no dialtone or dialling
;                   required (ie it is a "hotline")
;     dialtone  = this is an FXS port, providing dialtone and dialling
;
mode=immediate

;-------------------------------------------------------------------------
; Channel definitions
;
; Each channel inherits the settings specified above, unless the are
; overridden.  As a minimum, the board number and channel number must be
; set, starting from 0 for the first board, and for the channels on each
; board.  For example, board 0, channels 0 to 11, then board 1, channels
; 0 to 11 for two OpenSwitch12 cards.
;

;
; First board is an OpenSwitch12 card (jumpers at factory defaults)
;
;board=0
;
;mode=dialtone
;context=from-handset
;group=1
;channel=0
;channel=1
;channel=2
;channel=3
;channel=4
;channel=5
;channel=6
;channel=7
;
;mode=fxo
;context=from-pstn
;group=2
;channel=8
;channel=9
;channel=10
;channel=11

;
; Second board is an OpenLine4
;
;board=1
;
;mode=fxo
;group=2
;context=from-pstn
;channel=0
;channel=1
;channel=2
;channel=3