Some modification asterisk-helper.pl
[diplomippbx.git] / rpm / 1 / zapata.conf
blobc6bc12556dcbce4c74ade6d84dda271c8772a545
2 ; Zapata telephony interface
4 ; Configuration file
6 ; You need to restart Asterisk to re-configure the Zap channel
7 ; CLI> reload chan_zap.so 
8 ;               will reload the configuration file,
9 ;               but not all configuration options are 
10 ;               re-configured during a reload.
14 [trunkgroups]
16 ; Trunk groups are used for NFAS or GR-303 connections.
18 ; Group: Defines a trunk group.  
19 ;        group => <trunkgroup>,<dchannel>[,<backup1>...]
21 ;        trunkgroup  is the numerical trunk group to create
22 ;        dchannel    is the zap channel which will have the 
23 ;                    d-channel for the trunk.
24 ;        backup1     is an optional list of backup d-channels.
26 ;trunkgroup => 1,24,48
27 ;trunkgroup => 1,24
29 ; Spanmap: Associates a span with a trunk group
30 ;        spanmap => <zapspan>,<trunkgroup>[,<logicalspan>]
32 ;        zapspan     is the zap span number to associate
33 ;        trunkgroup  is the trunkgroup (specified above) for the mapping
34 ;        logicalspan is the logical span number within the trunk group to use.
35 ;                    if unspecified, no logical span number is used.
37 ;spanmap => 1,1,1
38 ;spanmap => 2,1,2
39 ;spanmap => 3,1,3
40 ;spanmap => 4,1,4
42 [channels]
44 ; Default language
46 ;language=en
48 ; Default context
50 ;context=default
52 ; Switchtype:  Only used for PRI.
54 ; national:       National ISDN 2 (default)
55 ; dms100:         Nortel DMS100
56 ; 4ess:           AT&T 4ESS
57 ; 5ess:           Lucent 5ESS
58 ; euroisdn:       EuroISDN
59 ; ni1:            Old National ISDN 1
60 ; qsig:           Q.SIG
62 ;switchtype=national
64 ; Some switches (AT&T especially) require network specific facility IE
65 ; supported values are currently 'none', 'sdn', 'megacom', 'accunet'
67 ;nsf=none
69 ; PRI Dialplan:  Only RARELY used for PRI.
71 ; unknown:        Unknown
72 ; private:        Private ISDN
73 ; local:          Local ISDN
74 ; national:       National ISDN
75 ; international:  International ISDN
77 ;pridialplan=national
79 ; PRI Local Dialplan:  Only RARELY used for PRI (sets the calling number's numbering plan)
81 ; unknown:        Unknown
82 ; private:        Private ISDN
83 ; local:          Local ISDN
84 ; national:       National ISDN
85 ; international:  International ISDN
87 ;prilocaldialplan=national
89 ; PRI callerid prefixes based on the given TON/NPI (dialplan)
90 ; This is especially needed for euroisdn E1-PRIs
91
92 ; sample 1 for Germany 
93 ;internationalprefix = 00
94 ;nationalprefix = 0
95 ;localprefix = 0711
96 ;privateprefix = 07115678
97 ;unknownprefix = 
99 ; sample 2 for Germany 
100 ;internationalprefix = +
101 ;nationalprefix = +49
102 ;localprefix = +49711
103 ;privateprefix = +497115678
104 ;unknownprefix = 
106 ; PRI resetinterval: sets the time in seconds between restart of unused
107 ; channels, defaults to 3600; minimum 60 seconds.  Some PBXs don't like
108 ; channel restarts. so set the interval to a very long interval e.g. 100000000
109 ; or 'never' to disable *entirely*.
111 ;resetinterval = 3600 
113 ; Overlap dialing mode (sending overlap digits)
115 ;overlapdial=yes
117 ; PRI Out of band indications.
118 ; Enable this to report Busy and Congestion on a PRI using out-of-band
119 ; notification. Inband indication, as used by Asterisk doesn't seem to work
120 ; with all telcos.
122 ; outofband:      Signal Busy/Congestion out of band with RELEASE/DISCONNECT
123 ; inband:         Signal Busy/Congestion using in-band tones
125 ; priindication = outofband
127 ; If you need to override the existing channels selection routine and force all
128 ; PRI channels to be marked as exclusively selected, set this to yes.
129 ; priexclusive = yes
131 ; ISDN Timers
132 ; All of the ISDN timers and counters that are used are configurable.  Specify
133 ; the timer name, and its value (in ms for timers).
135 ; pritimer => t200,1000
136 ; pritimer => t313,4000
138 ; To enable transmission of facility-based ISDN supplementary services (such
139 ; as caller name from CPE over facility), enable this option.
140 ; facilityenable = yes
143 ; Signalling method (default is fxs).  Valid values:
144 ; em:             E & M
145 ; em_w:           E & M Wink
146 ; featd:          Feature Group D (The fake, Adtran style, DTMF)
147 ; featdmf:        Feature Group D (The real thing, MF (domestic, US))
148 ; featdmf_ta:     Feature Group D (The real thing, MF (domestic, US)) through
149 ;                 a Tandem Access point
150 ; featb:          Feature Group B (MF (domestic, US))
151 ; fxs_ls:         FXS (Loop Start)
152 ; fxs_gs:         FXS (Ground Start)
153 ; fxs_ks:         FXS (Kewl Start)
154 ; fxo_ls:         FXO (Loop Start)
155 ; fxo_gs:         FXO (Ground Start)
156 ; fxo_ks:         FXO (Kewl Start)
157 ; pri_cpe:        PRI signalling, CPE side
158 ; pri_net:        PRI signalling, Network side
159 ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
160 ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
161 ; sf:             SF (Inband Tone) Signalling
162 ; sf_w:           SF Wink
163 ; sf_featd:       SF Feature Group D (The fake, Adtran style, DTMF)
164 ; sf_featdmf:     SF Feature Group D (The real thing, MF (domestic, US))
165 ; sf_featb:       SF Feature Group B (MF (domestic, US))
166 ; e911:           E911 (MF) style signalling
168 ; The following are used for Radio interfaces:
169 ; fxs_rx:         Receive audio/COR on an FXS kewlstart interface (FXO at the
170 ;                 channel bank)
171 ; fxs_tx:         Transmit audio/PTT on an FXS loopstart interface (FXO at the
172 ;                 channel bank)
173 ; fxo_rx:         Receive audio/COR on an FXO loopstart interface (FXS at the
174 ;                 channel bank)
175 ; fxo_tx:         Transmit audio/PTT on an FXO groundstart interface (FXS at
176 ;                 the channel bank)
177 ; em_rx:          Receive audio/COR on an E&M interface (1-way)
178 ; em_tx:          Transmit audio/PTT on an E&M interface (1-way)
179 ; em_txrx:        Receive audio/COR AND Transmit audio/PTT on an E&M interface
180 ;                 (2-way)
181 ; em_rxtx:        Same as em_txrx (for our dyslexic friends)
182 ; sf_rx:          Receive audio/COR on an SF interface (1-way)
183 ; sf_tx:          Transmit audio/PTT on an SF interface (1-way)
184 ; sf_txrx:        Receive audio/COR AND Transmit audio/PTT on an SF interface
185 ;                 (2-way)
186 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
188 ;signalling=fxo_ls
190 ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
191 ; parameters:
192 ;defaultozz=0000
193 ;defaultcic=303
195 ; A variety of timing parameters can be specified as well
196 ; Including:
197 ;    prewink:     Pre-wink time (default 50ms)
198 ;    preflash:    Pre-flash time (default 50ms)
199 ;    wink:        Wink time (default 150ms)
200 ;    flash:       Flash time (default 750ms)
201 ;    start:       Start time (default 1500ms)
202 ;    rxwink:      Receiver wink time (default 300ms)
203 ;    rxflash:     Receiver flashtime (default 1250ms)
204 ;    debounce:    Debounce timing (default 600ms)
206 rxwink=300              ; Atlas seems to use long (250ms) winks
208 ; How long generated tones (DTMF and MF) will be played on the channel
209 ; (in miliseconds)
210 ;toneduration=100
212 ; Whether or not to do distinctive ring detection on FXO lines
214 ;usedistinctiveringdetection=yes
217 ; Whether or not to use caller ID
219 usecallerid=yes
221 ; Type of caller ID signalling in use
222 ;     bell     = bell202 as used in US
223 ;     v23      = v23 as used in the UK
224 ;     dtmf     = DTMF as used in Denmark, Sweden and Netherlands
226 ;cidsignalling=bell
228 ; What signals the start of caller ID
229 ;     ring     = a ring signals the start
230 ;     polarity = polarity reversal signals the start
232 ;cidstart=ring
234 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
236 hidecallerid=no
238 ; Whether or not to enable call waiting on FXO lines
240 callwaiting=yes
242 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
243 ; available for the user)
244 ; Mostly use with FXS ports
246 ;restrictcid=no
248 ; Whether or not use the caller ID presentation for the outgoing call that the
249 ; calling switch is sending.
251 usecallingpres=yes
253 ; Some countries (UK) have ring tones with different ring tones (ring-ring),
254 ; which means the callerid needs to be set later on, and not just after
255 ; the first ring, as per the default. 
257 ;sendcalleridafter=1
260 ; Support Caller*ID on Call Waiting
262 callwaitingcallerid=yes
264 ; Support three-way calling
266 threewaycalling=yes
268 ; Support flash-hook call transfer (requires three way calling)
269 ; Also enables call parking (overrides the 'canpark' parameter)
271 transfer=yes
273 ; Allow call parking
274 ; ('canpark=no' is overridden by 'transfer=yes')
276 canpark=yes
278 ; Support call forward variable
280 cancallforward=yes
282 ; Whether or not to support Call Return (*69)
284 callreturn=yes
286 ; Stutter dialtone support: If a mailbox is specified without a voicemail 
287 ; context, then when voicemail is received in a mailbox in the default 
288 ; voicemail context in voicemail.conf, taking the phone off hook will cause a
289 ; stutter dialtone instead of a normal one. 
291 ; If a mailbox is specified *with* a voicemail context, the same will result
292 ; if voicemail recieved in mailbox in the specified voicemail context.
294 ; for default voicemail context, the example below is fine:
296 ;mailbox=1234
298 ; for any other voicemail context, the following will produce the stutter tone:
300 ;mailbox=1234@context 
302 ; Enable echo cancellation 
303 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
304 ; actually set the number of taps of cancellation.
306 echocancel=yes
308 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
309 ; the circuit path is entirely TDM.  You may, however, reverse this behavior
310 ; by enabling the echo cancel during pure TDM bridging below.
312 echocancelwhenbridged=yes
314 ; In some cases, the echo canceller doesn't train quickly enough and there
315 ; is echo at the beginning of the call.  Enabling echo training will cause
316 ; asterisk to briefly mute the channel, send an impulse, and use the impulse
317 ; response to pre-train the echo canceller so it can start out with a much
318 ; closer idea of the actual echo.  Value may be "yes", "no", or a number of
319 ; milliseconds to delay before training (default = 400)
321 echotraining=yes
322 ;echotraining=800
324 ; If you are having trouble with DTMF detection, you can relax the DTMF
325 ; detection parameters.  Relaxing them may make the DTMF detector more likely
326 ; to have "talkoff" where DTMF is detected when it shouldn't be.
328 ;relaxdtmf=yes
330 ; You may also set the default receive and transmit gains (in dB)
332 ;rxgain=0.0
333 ;txgain=0.0
335 ; Logical groups can be assigned to allow outgoing rollover.  Groups range
336 ; from 0 to 63, and multiple groups can be specified.
338 group=1
340 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing
341 ; and it is a member of a group which is one of your pickup groups, then
342 ; you can answer it by picking up and dialing *8#.  For simple offices, just
343 ; make these both the same
345 callgroup=1
346 pickupgroup=1
349 ; Specify whether the channel should be answered immediately or if the simple
350 ; switch should provide dialtone, read digits, etc.
352 immediate=no
354 ; Specify whether flash-hook transfers to 'busy' channels should complete or
355 ; return to the caller performing the transfer (default is yes).
357 ;transfertobusy=no
359 ; CallerID can be set to "asreceived" or a specific number if you want to
360 ; override it.  Note that "asreceived" only applies to trunk interfaces.
362 ;callerid=2564286000
364 ; AMA flags affects the recording of Call Detail Records.  If specified
365 ; it may be 'default', 'omit', 'billing', or 'documentation'.
367 ;amaflags=default
369 ; Channels may be associated with an account code to ease
370 ; billing
372 ;accountcode=lss0101
374 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
375 ; basis if you have (or may have) ADSI compatible CPE equipment
377 ;adsi=yes
379 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
380 ; etc, it can be useful to perform busy detection either in an effort to 
381 ; detect hangup or for detecting busies.  This enables listening for
382 ; the beep-beep busy pattern.
384 ;busydetect=yes
386 ; If busydetect is enabled, it is also possible to specify how many busy tones
387 ; to wait for before hanging up.  The default is 4, but better results can be
388 ; achieved if set to 6 or even 8.  Mind that the higher the number, the more
389 ; time that will be needed to hangup a channel, but lowers the probability
390 ; that you will get random hangups.
392 ;busycount=4
394 ; If busydetect is enabled, it is also possible to specify the cadence of your
395 ; busy signal.  In many countries, it is 500msec on, 500msec off.  Without
396 ; busypattern specified, we'll accept any regular sound-silence pattern that
397 ; repeats <busycount> times as a busy signal.  If you specify busypattern,
398 ; then we'll further check the length of the sound (tone) and silence, which
399 ; will further reduce the chance of a false positive.
401 ;busypattern=500,500
403 ; NOTE: In the Asterisk Makefile you'll find further options to tweak the busy
404 ; detector.  If your country has a busy tone with the same length tone and
405 ; silence (as many countries do), consider defining the
406 ; -DBUSYDETECT_COMPARE_TONE_AND_SILENCE option.
408 ; Use a polarity reversal to mark when a outgoing call is answered by the
409 ; remote party.
411 ;answeronpolarityswitch=yes
413 ; In some countries, a polarity reversal is used to signal the disconnect of a
414 ; phone line.  If the hanguponpolarityswitch option is selected, the call will
415 ; be considered "hung up" on a polarity reversal.
417 ;hanguponpolarityswitch=yes
419 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
420 ; of a call through RINGING, BUSY, and ANSWERING.   If turned on, call
421 ; progress attempts to determine answer, busy, and ringing on phone lines.
422 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
423 ; so don't count on it being very accurate.
425 ; Few zones are supported at the time of this writing, but may be selected
426 ; with "progzone"
428 ; This feature can also easily detect false hangups. The symptoms of this is
429 ; being disconnected in the middle of a call for no reason.
431 ;callprogress=yes
432 ;progzone=us
434 ; FXO (FXS signalled) devices must have a timeout to determine if there was a
435 ; hangup before the line was answered.  This value can be tweaked to shorten
436 ; how long it takes before Zap considers a non-ringing line to have hungup.
438 ;ringtimeout=8000
440 ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
442 ;pulsedial=yes
444 ; For fax detection, uncomment one of the following lines.  The default is *OFF*
446 ;faxdetect=both
447 ;faxdetect=incoming
448 ;faxdetect=outgoing
449 ;faxdetect=no
451 ; Select which class of music to use for music on hold.  If not specified
452 ; then the default will be used.
454 ;musiconhold=default
456 ; PRI channels can have an idle extension and a minunused number.  So long as
457 ; at least "minunused" channels are idle, chan_zap will try to call "idledial"
458 ; on them, and then dump them into the PBX in the "idleext" extension (which
459 ; is of the form exten@context).  When channels are needed the "idle" calls
460 ; are disconnected (so long as there are at least "minidle" calls still
461 ; running, of course) to make more channels available.  The primary use of
462 ; this is to create a dynamic service, where idle channels are bundled through
463 ; multilink PPP, thus more efficiently utilizing combined voice/data services
464 ; than conventional fixed mappings/muxings.
466 ;idledial=6999
467 ;idleext=6999@dialout
468 ;minunused=2
469 ;minidle=1
471 ; Configure jitter buffers in zapata (each one is 20ms, default is 4)
473 ;jitterbuffers=4
475 ; You can define your own custom ring cadences here.  You can define up to 8
476 ; pairs.  If the silence is negative, it indicates where the callerid spill is
477 ; to be placed.  Also, if you define any custom cadences, the default cadences
478 ; will be turned off.
480 ; Syntax is:  cadence=ring,silence[,ring,silence[...]]
482 ; These are the default cadences:
484 ;cadence=125,125,2000,-4000
485 ;cadence=250,250,500,1000,250,250,500,-4000
486 ;cadence=125,125,125,125,125,-4000
487 ;cadence=1000,500,2500,-5000
489 ; Each channel consists of the channel number or range.  It inherits the
490 ; parameters that were specified above its declaration.
492 ; For GR-303, CRV's are created like channels except they must start with the
493 ; trunk group followed by a colon, e.g.: 
495 ; crv => 1:1
496 ; crv => 2:1-2,5-8
499 ;callerid="Green Phone"<(256) 428-6121>
500 ;channel => 1
501 ;callerid="Black Phone"<(256) 428-6122>
502 ;channel => 2
503 ;callerid="CallerID Phone" <(256) 428-6123>
504 ;callerid="CallerID Phone" <(630) 372-1564>
505 ;callerid="CallerID Phone" <(256) 704-4666>
506 ;channel => 3
507 ;callerid="Pac Tel Phone" <(256) 428-6124>
508 ;channel => 4
509 ;callerid="Uniden Dead" <(256) 428-6125>
510 ;channel => 5
511 ;callerid="Cortelco 2500" <(256) 428-6126>
512 ;channel => 6
513 ;callerid="Main TA 750" <(256) 428-6127>
514 ;channel => 44
516 ; For example, maybe we have some other channels which start out in a
517 ; different context and use E & M signalling instead.
519 ;context=remote
520 ;sigalling=em
521 ;channel => 15
522 ;channel => 16
524 ;signalling=em_w
526 ; All those in group 0 I'll use for outgoing calls
528 ; Strip most significant digit (9) before sending
530 ;stripmsd=1
531 ;callerid=asreceived
532 ;group=0
533 ;signalling=fxs_ls
534 ;channel => 45
536 ;signalling=fxo_ls
537 ;group=1
538 ;callerid="Joe Schmoe" <(256) 428-6131>
539 ;channel => 25
540 ;callerid="Megan May" <(256) 428-6132>
541 ;channel => 26
542 ;callerid="Suzy Queue" <(256) 428-6233>
543 ;channel => 27
544 ;callerid="Larry Moe" <(256) 428-6234>
545 ;channel => 28
547 ; Sample PRI (CPE) config:  Specify the switchtype, the signalling as either
548 ; pri_cpe or pri_net for CPE or Network termination, and generally you will
549 ; want to create a single "group" for all channels of the PRI.
551 ; switchtype = national
552 ; signalling = pri_cpe
553 ; group = 2
554 ; channel => 1-23
556 context=fromdefinity
557 callerid=asreceived
558 switchtype = euroisdn 
559 overlapdial = yes 
560 signalling = pri_cpe
561 ;resetinterval = never 
562 group = 1 
563 channel => 1-15 
564 channel => 17-31 
566 context=external
567 callerid=asreceived
568 switchtype = euroisdn 
569 overlapdial = yes 
570 signalling = pri_cpe
571 resetinterval = never 
572 group = 2
573 channel => 32-46 
574 channel => 48-62 
578 ;  Used for distintive ring support for x100p.
579 ;  You can see the dringX patterns is to set any one of the dringXcontext fields
580 ;  and they will be printed on the console when an inbound call comes in.
582 ;dring1=95,0,0 
583 ;dring1context=internal1 
584 ;dring2=325,95,0 
585 ;dring2context=internal2 
586 ; If no pattern is matched here is where we go.
587 ;context=default
588 ;channel => 1