Merge another change from team/russell/events ...
[asterisk-bristuff.git] / configs / vpb.conf.sample
blobbcda655deb8e9f3cb86479cac9e90ebc147cadf0
2 ; Voicetronix Voice Processing Board (VPB) telephony interface
4 ; Configuration file
7 [general]
9 ; Total number of Voicetronix cards in this machine
11 cards=0
14 ; Which indication functions to use
15 ;    1 = use Asterisk functions
16 ;    0 = use VPB functions
18 indication=1
21 ; Echo Canceller suppression threshold
22 ;    0    = no suppression threshold
23 ;    2048 = -18dB
24 ;    4096 = -24dB
26 ;ecsuppthres=0
29 ; Inter-digit delay timeout, used when collecting DTMF tones for dialling
30 ; from a station port.  Measured in milliseconds.
32 dtmfidd=3000
35 ; How to play DTMF tones
36 ;    any value     = use Asterisk functions
37 ;    commented out = use VPB functions
39 ;ast-dtmf=1
42 ; How to detect DTMF tones
43 ;    any value     = use Asterisk functions
44 ;    commented out = use VPB functions
46 ; NOTE: this setting is currently broken, and uncommenting it will
47 ; stop dialling from working.  Any volunteers to fix it?
48 ;ast-dtmf-det=1
51 ; Use relaxed DTMF detection (ignored unless ast-dtmf-det is set)
53 relaxdtmf=1
56 ; When we do a native bridge between two VPB channels:
57 ;    yes = only break the connection for '#' and '*'
58 ;    no  = break the connection for any DTMF
60 ; NOTE: this is currently broken, and setting to no will segfault
61 ; Asterisk while dialling.  Any volunteers to fix it?
63 break-for-dtmf=yes
66 ; The maximum period between received rings.  Measures in milliseconds.
68 timer_period_ring=4000
71 [interfaces]
73 ; Default language
75 language=en
78 ; Default context
80 context=default
83 ; Echo cancellation
84 ;     off  = no not use echo cancellation
85 ;     on   = use echo cancellation
87 echocancel=off
90 ; Caller ID routines/signalling
91 ;   For FXO ports, select one of:
92 ;     on   = collect caller ID between 1st/2nd rings using VPB routines
93 ;     off  = do not use caller ID
94 ;     bell = bell202 as used in US, using Asterisk's caller ID routines
95 ;     v23  = v23 as used in the UK, using Asterisk's caller ID routines
96 ;   For FXS ports, set the channel's CID in '"name" <number>' format
98 ; NOTE that other caller ID standards are supported in Asterisk, but are
99 ; not yet active in chan_vpb.  It should be reasonably trivial to add
100 ; support for the other standards (see the default zapata.conf for a list
101 ; of them) that Asterisk already handles.
103 callerid=bell
106 ; Use a polarity reversal as the trigger for the start of caller ID,
107 ; rather than triggering after the first ring.
109 usepolaritycid=0
112 ; Use loop drop to detect the end of a call.  On by default, but if you
113 ; experience unexpected hangups, try turning it off.
115 useloopdrop=1
118 ; Use in-kernel bridging.  This will generally give lower delay audio if
119 ; bridging between two VPB channels.  It will not affect bridging
120 ; between VPB channels and other technologies.
122 usenativebridge=1
125 ; Software transmit and receive gain.  Adjusting these will change the
126 ; volume of audio files that are played (tx) and recorded (rx).  It will
127 ; _not_ affect audio between channels in a native bridge.  It will,
128 ; however, affect the volume of audio between VPB channels and channels
129 ; using other technologies (such as VoIP channels).  Usually it's best to
130 ; leave these as they are.  If you're looking to get rid of echo, the
131 ; first thing to do is match your line impedance with the bal1/bal2/bal3
132 ; settings.
134 ;txgain=0.0
135 ;rxgain=0.0
138 ; Hardware transmit and receive gain.  Adjusting these will change the
139 ; volume of all audio on a channel.  The allowed range of settings is
140 ; -12.0 to 12.0 (measured in dB).
142 ;txhwgain=0.0
143 ;rxhwgain=0.0
146 ; Balance register settings, for matching the impedance of the card to
147 ; that of the connected equipment.  Only relevant for OpenLine and
148 ; OpenSwitch series cards.  Values should be in the range 0 - 255.
150 ; We (Voicetronix) have determined the best codec balance values for
151 ; standard interfaces based on their US, Australian and European
152 ; specifications, shown below.
154 ; US (600 ohm)
155 ;bal1=0xf8
156 ;bal2=0x1a
157 ;bal3=0x0c
159 ; Australia (complex impedance)
160 ;bal1=0xf0
161 ;bal2=0x5d
162 ;bal3=0x79
164 ; Europe (CTR-21)
165 ;bal1=0xf0
166 ;bal2=0x6e
167 ;bal3=0x75
170 ; Logical groups can be assigned to allow outgoing rollover.  Groups range
171 ; from 0 to 63, and multiple groups can be specified.
173 group=1
176 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is
177 ; ringing and it is a member of a group which is one of your pickup
178 ; groups, then you can answer it by picking up and dialling *8#.  For
179 ; simple offices, just make these both the same.  Groups range from 0 to
180 ; 63.
182 callgroup=1
183 pickupgroup=1
186 ; If we haven't had a "grunt" (voice activity detection) for this many
187 ; seconds, then we hang up the line due to inactivity.  Default is one
188 ; hour.
190 grunttimeout=3600
193 ; Type of line and line handling.  This setting will usually be overridden
194 ; on a per channel basis.  Valid settings are:
195 ;     fxo       = this is an FXO port
196 ;     immediate = this is an FXS port, with no dialtone or dialling
197 ;                   required (ie it is a "hotline")
198 ;     dialtone  = this is an FXS port, providing dialtone and dialling
200 mode=immediate
202 ;-------------------------------------------------------------------------
203 ; Channel definitions
205 ; Each channel inherits the settings specified above, unless the are
206 ; overridden.  As a minimum, the board number and channel number must be
207 ; set, starting from 0 for the first board, and for the channels on each
208 ; board.  For example, board 0, channels 0 to 11, then board 1, channels
209 ; 0 to 11 for two OpenSwitch12 cards.
213 ; First board is an OpenSwitch12 card (jumpers at factory defaults)
215 ;board=0
217 ;mode=dialtone
218 ;context=from-handset
219 ;group=1
220 ;channel=0
221 ;channel=1
222 ;channel=2
223 ;channel=3
224 ;channel=4
225 ;channel=5
226 ;channel=6
227 ;channel=7
229 ;mode=fxo
230 ;context=from-pstn
231 ;group=2
232 ;channel=8
233 ;channel=9
234 ;channel=10
235 ;channel=11
238 ; Second board is an OpenLine4
240 ;board=1
242 ;mode=fxo
243 ;group=2
244 ;context=from-pstn
245 ;channel=0
246 ;channel=1
247 ;channel=2
248 ;channel=3