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