18e75eee07f7d8ea731cdb848205ebf68b278e04
[asterisk/asterisk.git] / configs / zapata.conf.sample
1 ;
2 ; Zapata telephony interface
3 ;
4 ; Configuration file
5
6 [trunkgroups]
7 ;
8 ; Trunk groups are used for NFAS or GR-303 connections.
9 ;
10 ; Group: Defines a trunk group.  
11 ;        group => <trunkgroup>,<dchannel>[,<backup1>...]
12 ;
13 ;        trunkgroup  is the numerical trunk group to create
14 ;        dchannel    is the zap channel which will have the 
15 ;                    d-channel for the trunk.
16 ;        backup1     is an optional list of backup d-channels.
17 ;
18 ;trunkgroup => 1,24,48
19 ;
20 ; Spanmap: Associates a span with a trunk group
21 ;        spanmap => <zapspan>,<trunkgroup>[,<logicalspan>]
22 ;
23 ;        zapspan     is the zap span number to associate
24 ;        trunkgroup  is the trunkgroup (specified above) for the mapping
25 ;        logicalspan is the logical span number within the trunk group to use.
26 ;                    if unspecified, no logical span number is used.
27 ;
28 ;spanmap => 1,1,1
29 ;spanmap => 2,1,2
30 ;spanmap => 3,1,3
31 ;spanmap => 4,1,4
32
33 [channels]
34 ;
35 ; Default language
36 ;
37 ;language=en
38 ;
39 ; Default context
40 ;
41 context=default
42 ;
43 ; Switchtype:  Only used for PRI.
44 ;
45 ; national:       National ISDN 2 (default)
46 ; dms100:         Nortel DMS100
47 ; 4ess:           AT&T 4ESS
48 ; 5ess:           Lucent 5ESS
49 ; euroisdn:       EuroISDN
50 ; ni1:            Old National ISDN 1
51 ;
52 switchtype=national
53 ;
54 ; PRI Dialplan:  Only RARELY used for PRI.
55 ;
56 ; unknown:        Unknown
57 ; private:        Private ISDN
58 ; local:          Local ISDN
59 ; national:       National ISDN
60 ; international:  International ISDN
61 ;
62 ;pridialplan=national
63 ;
64 ; Overlap dialing mode (sending overlap digits)
65 ;
66 ;overlapdial=yes
67 ;
68 ; Signalling method (default is fxs).  Valid values:
69 ; em:      E & M
70 ; em_w:    E & M Wink
71 ; featd:   Feature Group D (The fake, Adtran style, DTMF)
72 ; featdmf: Feature Group D (The real thing, MF (domestic, US))
73 ; featb:   Feature Group B (MF (domestic, US))
74 ; fxs_ls:  FXS (Loop Start)
75 ; fxs_gs:  FXS (Ground Start)
76 ; fxs_ks:  FXS (Kewl Start)
77 ; fxo_ls:  FXO (Loop Start)
78 ; fxo_gs:  FXO (Ground Start)
79 ; fxo_ks:  FXO (Kewl Start)
80 ; pri_cpe: PRI signalling, CPE side
81 ; pri_net: PRI signalling, Network side
82 ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
83 ; sf:         SF (Inband Tone) Signalling
84 ; sf_w:       SF Wink
85 ; sf_featd:   SF Feature Group D (The fake, Adtran style, DTMF)
86 ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US))
87 ; sf_featb:   SF Feature Group B (MF (domestic, US))
88 ; The following are used for Radio interfaces:
89 ; fxs_rx:  Receive audio/COR on an FXS kewlstart interface (FXO at the channel bank)
90 ; fxs_tx:  Transmit audio/PTT on an FXS loopstart interface (FXO at the channel bank)
91 ; fxo_rx:  Receive audio/COR on an FXO loopstart interface (FXS at the channel bank)
92 ; fxo_tx:  Transmit audio/PTT on an FXO groundstart interface (FXS at the channel bank)
93 ; em_rx:   Receive audio/COR on an E&M interface (1-way)
94 ; em_tx:   Transmit audio/PTT on an E&M interface (1-way)
95 ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface (2-way)
96 ; em_rxtx: same as em_txrx (for our dyslexic friends)
97 ; sf_rx:   Receive audio/COR on an SF interface (1-way)
98 ; sf_tx:   Transmit audio/PTT on an SF interface (1-way)
99 ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface (2-way)
100 ; sf_rxtx: same as sf_txrx (for our dyslexic friends)
101 ;
102 signalling=fxo_ls
103 ;
104 ; A variety of timing parameters can be specified as well
105 ; Including:
106 ;    prewink:     Pre-wink time (default 50ms)
107 ;    preflash:    Pre-flash time (default 50ms)
108 ;    wink:        Wink time (default 150ms)
109 ;    flash:       Flash time (default 750ms)
110 ;    start:       Start time (default 1500ms)
111 ;    rxwink:      Receiver wink time (default 300ms)
112 ;    rxflash:     Receiver flashtime (default 1250ms)
113 ;    debounce:    Debounce timing (default 600ms)
114 ;
115 rxwink=300              ; Atlas seems to use long (250ms) winks
116 ;
117 ; Whether or not to do distinctive ring detection on FXO lines
118 ;
119 ;usedistinctiveringdetection=yes
120
121 ;
122 ; Whether or not to use caller ID
123 ;
124 usecallerid=yes
125 ;
126 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
127 ;
128 hidecallerid=no
129 ;
130 ; Whether or not to enable call waiting on FXO lines
131 ;
132 callwaiting=yes
133 ;
134 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not available for the user)
135 ; Mostly use with FXS ports
136 ;
137 ;restrictcid=no
138 ;
139 ; Whether or not use the caller ID presentation for the outgoing call that the calling switch is sending
140 ;
141 usecallingpres=yes
142 ;
143 ; Support Caller*ID on Call Waiting
144 ;
145 callwaitingcallerid=yes
146 ;
147 ; Support three-way calling
148 ;
149 threewaycalling=yes
150 ;
151 ; Support flash-hook call transfer (requires three way calling)
152 ;
153 transfer=yes
154 ;
155 ; Support call forward variable
156 ;
157 cancallforward=yes
158 ;
159 ; Whether or not to support Call Return (*69)
160 ;
161 callreturn=yes
162 ;
163 ; Stutter dialtone support: If a mailbox is specified without a voicemail 
164 ; context, then when voicemail is received in a mailbox in the default 
165 ; voicemail context in voicemail.conf, taking the phone off hook will 
166 ; cause a stutter dialtone instead of a normal one. 
167 ;
168 ; If a mailbox is specified *with* a voicemail context, the same will 
169 ; result if voicemail recieved in mailbox in the specified voicemail 
170 ; context
171 ;
172 ; for default voicemail context, the example below is fine:
173 ;
174 ;mailbox=1234
175 ;
176 ; for any other voicemail context, the following will produce the 
177 ; stutter tone:
178 ;
179 ;mailbox=1234@context 
180 ;
181 ; Enable echo cancellation 
182 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish
183 ; to actually set the number of taps of cancellation.
184 ;
185 echocancel=yes
186 ;
187 ; Generally, it is not necessary (and in fact undesirable) to echo cancel
188 ; when the circuit path is entirely TDM.  You may, however, reverse this
189 ; behavior by enabling the echo cancel during pure TDM bridging below.
190 ;
191 echocancelwhenbridged=yes
192 ;
193 ; In some cases, the echo canceller doesn't train quickly enough and there
194 ; is echo at the beginning of the call.  Enabling echo training will cause
195 ; asterisk to briefly mute the channel, send an impulse, and use the impulse
196 ; response to pre-train the echo canceller so it can start out with a much
197 ; closer idea of the actual echo.
198 ;
199 ;echotraining=yes
200 ;
201 ; If you are having trouble with DTMF detection, you can relax the
202 ; DTMF detection parameters.  Relaxing them may make the DTMF detector
203 ; more likely to have "talkoff" where DTMF is detected when it
204 ; shouldn't be.
205 ;
206 ;relaxdtmf=yes
207 ;
208 ; You may also set the default receive and transmit gains (in dB)
209 ;
210 rxgain=0.0
211 txgain=0.0
212 ;
213 ; Logical groups can be assigned to allow outgoing rollover.  Groups
214 ; range from 0 to 31, and multiple groups can be specified.
215 ;
216 group=1
217 ;
218 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing
219 ; and it is a member of a group which is one of your pickup groups, then
220 ; you can answer it by picking up and dialing *8#.  For simple offices, just
221 ; make these both the same
222 ;
223 callgroup=1
224 pickupgroup=1
225
226 ;
227 ; Specify whether the channel should be answered immediately or
228 ; if the simple switch should provide dialtone, read digits, etc.
229 ;
230 immediate=no
231 ;
232 ; CallerID can be set to "asreceived" or a specific number
233 ; if you want to override it.  Note that "asreceived" only
234 ; applies to trunk interfaces.
235 ;
236 ;callerid=2564286000
237 ;
238 ; AMA flags affects the recording of Call Detail Records.  If specified
239 ; it may be 'default', 'omit', 'billing', or 'documentation'.
240 ;
241 ;amaflags=default
242 ;
243 ; Channels may be associated with an account code to ease
244 ; billing
245 ;
246 ;accountcode=lss0101
247 ;
248 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
249 ; basis if you have (or may have) ADSI compatible CPE equipment
250 ;
251 ;adsi=yes
252 ;
253 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
254 ; etc, it can be useful to perform busy detection either in an effort to 
255 ; detect hangup or for detecting busies
256 ;
257 ;busydetect=yes
258 ;
259 ; If busydetect is enabled, is also possible to specify how many
260 ; busy tones to wait before hanging up. The default is 4, but
261 ; better results can be achieved if set to 6 or even 8. Mind that
262 ; higher the number, more time is needed to hangup a channel, but
263 ; lower is probability to get random hangups
264 ;
265 ;busycount=4
266 ;
267 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
268 ; of a call through RINGING, BUSY, and ANSWERING.   If turned on, call
269 ; progress attempts to determine answer, busy, and ringing on phone lines.
270 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
271 ; so don't count on it being very accurate.  
272 ;
273 ; Few zones are supported at the time of this writing, but may
274 ; be selected with "progzone"
275 ;
276 ; This feature can also easily detect false hangups. The symptoms of this 
277 ; is being disconnected in the middle of a call for no reason.
278 ;
279 ;callprogress=yes
280 ;progzone=us
281 ;
282 ; For fax detection, uncomment the following line.  The default is *OFF*
283 ;
284 ;faxdetect=yes
285 ;
286 ; Select which class of music to use for music on hold.  If not specified
287 ; then the default will be used.
288 ;
289 ;musiconhold=default
290 ;
291 ; PRI channels can have an idle extension and a minunused number.  So long
292 ; as at least "minunused" channels are idle, chan_zap will try to call
293 ; "idledial" on them, and then dump them into the PBX in the "idleext"
294 ; extension (which is of the form exten@context).  When channels are needed
295 ; the "idle" calls are disconnected (so long as there are at least "minidle"
296 ; calls still running, of course) to make more channels available.  The
297 ; primary use of this is to create a dynamic service, where idle channels
298 ; are bundled through multilink PPP, thus more efficiently utilizing
299 ; combined voice/data services than conventional fixed mappings/muxings.
300 ;
301 ;idledial=6999
302 ;idleext=6999@dialout
303 ;minunused=2
304 ;minidle=1
305 ;
306 ; Configure jitter buffers in zapata (each one is 20ms, default is 4)
307 ;
308 ;jitterbuffers=4
309 ;
310 ; You can define your own custom ring cadences here.  You can define up to
311 ; 8 pairs.  If the silence is negative, it indicates where the callerid
312 ; spill is to be placed.  Also, if you define any custom cadences, the
313 ; default cadences will be turned off.
314 ;
315 ; Syntax is:  cadence=ring,silence[,ring,silence[...]]
316 ;
317 ; These are the default cadences:
318 ;
319 ;cadence=125,125,2000,-4000
320 ;cadence=250,250,500,1000,250,250,500,-4000
321 ;cadence=125,125,125,125,125,-4000
322 ;cadence=1000,500,2500,-5000
323 ;
324 ; Each channel consists of the channel number or range.  It
325 ; inherits the parameters that were specified above its declaration
326 ;
327 ; For GR-303, CRV's are created like channels except they must start
328 ; with the trunk group followed by a colon, e.g.: 
329 ;
330 ; crv => 1:1
331 ; crv => 2:1-2,5-8
332 ;
333 ;
334 ;callerid="Green Phone"<(256) 428-6121>
335 ;channel => 1
336 ;callerid="Black Phone"<(256) 428-6122>
337 ;channel => 2
338 ;callerid="CallerID Phone" <(256) 428-6123>
339 ;callerid="CallerID Phone" <(630) 372-1564>
340 ;callerid="CallerID Phone" <(256) 704-4666>
341 ;channel => 3
342 ;callerid="Pac Tel Phone" <(256) 428-6124>
343 ;channel => 4
344 ;callerid="Uniden Dead" <(256) 428-6125>
345 ;channel => 5
346 ;callerid="Cortelco 2500" <(256) 428-6126>
347 ;channel => 6
348 ;callerid="Main TA 750" <(256) 428-6127>
349 ;channel => 44
350 ;
351 ; For example, maybe we have some other channels
352 ; which start out in a different context and use
353 ; E & M signalling instead.
354 ;
355 ;context=remote
356 ;sigalling=em
357 ;channel => 15
358 ;channel => 16
359
360 ;signalling=em_w
361 ;
362 ; All those in group 0 I'll use for outgoing calls
363 ;
364 ; Strip most significant digit (9) before sending
365 ;
366 ;stripmsd=1
367 ;callerid=asreceived
368 ;group=0
369 ;signalling=fxs_ls
370 ;channel => 45
371
372 ;signalling=fxo_ls
373 ;group=1
374 ;callerid="Joe Schmoe" <(256) 428-6131>
375 ;channel => 25
376 ;callerid="Megan May" <(256) 428-6132>
377 ;channel => 26
378 ;callerid="Suzy Queue" <(256) 428-6233>
379 ;channel => 27
380 ;callerid="Larry Moe" <(256) 428-6234>
381 ;channel => 28
382 ;
383 ; Sample PRI (CPE) config:  Specify the switchtype, the signalling as
384 ; either pri_cpe or pri_net for CPE or Network termination, and generally
385 ; you will want to create a single "group" for all channels of the PRI.
386 ;
387 ; switchtype = national
388 ; signalling = pri_cpe
389 ; group = 2
390 ; channel => 1-23
391
392 ;
393 ;  Used for distintive ring support for x100p.
394 ;  You can see the dringX patterns is to set any one of the dringXcontext fields
395 ;  and they will be printed on the console when an inbound call comes in.
396 ;
397 ;dring1=95,0,0 
398 ;dring1context=internal1 
399 ;dring2=325,95,0 
400 ;dring2context=internal2 
401 ; If no pattern is matched here is where we go.
402 ;context=default
403 ;channel => 1 
404