Change the default for the pridialplan parameter to the far more common case of
[asterisk/asterisk.git] / configs / zapata.conf.sample
1 ;
2 ; Zapata telephony interface
3 ;
4 ; Configuration file
5 ;
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 (signalling, as well as
11 ;               PRI and SS7-related settings cannot be changed on a
12 ;               reload.
13
14 ; This file documents many configuration variables.  Normally unless you
15 ; know what a variable means or that it should be changed, there's no
16 ; reason to unrem lines.
17 ;
18 ; remmed-out examples below (those lines that begin with a ';' but no
19 ; space afterwards) typically show a value that is not the defauult value,
20 ; but would make sense under cetain circumstances. The default values
21 ; are usually sane. Thus you should typically not touch them unless you 
22 ; know what they mean or you know you should change them.
23
24
25 [trunkgroups]
26 ;
27 ; Trunk groups are used for NFAS or GR-303 connections.
28 ;
29 ; Group: Defines a trunk group.  
30 ;        trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
31 ;
32 ;        trunkgroup  is the numerical trunk group to create
33 ;        dchannel    is the zap channel which will have the 
34 ;                    d-channel for the trunk.
35 ;        backup1     is an optional list of backup d-channels.
36 ;
37 ;trunkgroup => 1,24,48
38 ;trunkgroup => 1,24
39 ;
40 ; Spanmap: Associates a span with a trunk group
41 ;        spanmap => <zapspan>,<trunkgroup>[,<logicalspan>]
42 ;
43 ;        zapspan     is the zap span number to associate
44 ;        trunkgroup  is the trunkgroup (specified above) for the mapping
45 ;        logicalspan is the logical span number within the trunk group to use.
46 ;                    if unspecified, no logical span number is used.
47 ;
48 ;spanmap => 1,1,1
49 ;spanmap => 2,1,2
50 ;spanmap => 3,1,3
51 ;spanmap => 4,1,4
52
53 [channels]
54 ;
55 ; Default language
56 ;
57 ;language=en
58 ;
59 ; Context for calls. Defaults to 'default'
60 ;
61 ;context=incoming
62 ;
63 ; Switchtype:  Only used for PRI.
64 ;
65 ; national:       National ISDN 2 (default)
66 ; dms100:         Nortel DMS100
67 ; 4ess:           AT&T 4ESS
68 ; 5ess:           Lucent 5ESS
69 ; euroisdn:       EuroISDN (common in Europe)
70 ; ni1:            Old National ISDN 1
71 ; qsig:           Q.SIG
72 ;
73 ;switchtype=euroisdn
74 ;
75 ; Some switches (AT&T especially) require network specific facility IE
76 ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
77 ;
78 ; nsf cannot be changed on a reload.
79 ;
80 ;nsf=none
81 ;
82 ; PRI Dialplan: The ISDN-level Type Of Number (TON) or numbering plan, used for
83 ; the dialed number.  For most installations, leaving this as 'unknown' (the
84 ; default) works in the most cases.  In some very unusual circumstances, you
85 ; may need to set this to 'dynamic' or 'redundant'.  Note that if you set one
86 ; of the others, you will be unable to dial another class of numbers.  For
87 ; example, if you set 'national', you will be unable to dial local or
88 ; international numbers.
89 ;
90 ; PRI Local Dialplan:  Only RARELY used for PRI (sets the calling number's 
91 ; numbering plan).  In North America, the typical use is sending the 10 digit
92 ; callerID number and setting the prilocaldialplan to 'national' (the default).
93 ; Only VERY rarely will you need to change this.
94 ;
95 ; Neither pridialplan nor prilocaldialplan can be changed on reload.
96 ;
97 ; unknown:        Unknown
98 ; private:        Private ISDN
99 ; local:          Local ISDN
100 ; national:       National ISDN
101 ; international:  International ISDN
102 ; dynamic:        Dynamically selects the appropriate dialplan
103 ; redundant:      Same as dynamic, except that the underlying number is not 
104 ;                 changed (not common)
105 ;
106 ;pridialplan=unknown
107 ;prilocaldialplan=national
108
109 ; pridialplan may be also set at dialtime, by prefixing the dialled number with
110 ; one of the following letters:
111 ; U - Unknown
112 ; I - International
113 ; N - National
114 ; L - Local (Net Specific)
115 ; S - Subscriber
116 ; V - Abbreviated
117 ; R - Reserved (should probably never be used but is included for completeness)
118 ;
119 ; Additionally, you may also set the following NPI bits (also by prefixing the
120 ; dialled string with one of the following letters):
121 ; u - Unknown
122 ; e - E.163/E.164 (ISDN/telephony)
123 ; x - X.121 (Data)
124 ; f - F.69 (Telex)
125 ; n - National
126 ; p - Private
127 ; r - Reserved (should probably never be used but is included for completeness)
128 ;
129 ; You may also set the prilocaldialplan in the same way, but by prefixing the
130 ; Caller*ID Number, rather than the dialled number.  Please note that telcos
131 ; which require this kind of additional manipulation of the TON/NPI are *rare*.
132 ; Most telco PRIs will work fine simply by setting pridialplan to unknown or
133 ; dynamic.
134 ;
135 ;
136 ; PRI caller ID prefixes based on the given TON/NPI (dialplan)
137 ; This is especially needed for EuroISDN E1-PRIs
138
139 ; None of the prefix settings can be changed on reload.
140 ;
141 ; sample 1 for Germany 
142 ;internationalprefix = 00
143 ;nationalprefix = 0
144 ;localprefix = 0711
145 ;privateprefix = 07115678
146 ;unknownprefix = 
147 ;
148 ; sample 2 for Germany 
149 ;internationalprefix = +
150 ;nationalprefix = +49
151 ;localprefix = +49711
152 ;privateprefix = +497115678
153 ;unknownprefix = 
154 ;
155 ; PRI resetinterval: sets the time in seconds between restart of unused
156 ; B channels; defaults to 'never'.
157 ;
158 ;resetinterval = 3600 
159 ;
160 ; Overlap dialing mode (sending overlap digits)
161 ; Cannot be changed on a reload.
162 ;
163 ;overlapdial=yes
164 ;
165 ; PRI Out of band indications.
166 ; Enable this to report Busy and Congestion on a PRI using out-of-band
167 ; notification. Inband indication, as used by Asterisk doesn't seem to work
168 ; with all telcos.
169
170 ; outofband:      Signal Busy/Congestion out of band with RELEASE/DISCONNECT
171 ; inband:         Signal Busy/Congestion using in-band tones (default)
172 ;
173 ; priindication cannot be changed on a reload.
174 ;
175 ;priindication = outofband
176 ;
177 ; If you need to override the existing channels selection routine and force all
178 ; PRI channels to be marked as exclusively selected, set this to yes.
179 ;
180 ; priexclusive cannot be changed on a reload.
181 ;
182 ;priexclusive = yes
183 ;
184 ; ISDN Timers
185 ; All of the ISDN timers and counters that are used are configurable.  Specify
186 ; the timer name, and its value (in ms for timers).
187 ; K:    Layer 2 max number of outstanding unacknowledged I frames (default 7)
188 ; N200: Layer 2 max number of retransmissions of a frame (default 3)
189 ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms)
190 ; T203: Layer 2 max time without frames being exchanged (default 10000 ms)
191 ; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
192 ; T308: Wait for RELEASE acknowledge (default 4000 ms)
193 ; T309: Maintain active calls on Layer 2 disconnection (default -1, 
194 ;       Asterisk clears calls)
195 ;       EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
196 ;       May vary in other ISDN standards (Q.931 1993 : 90000 ms)
197 ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
198 ;
199 ;pritimer => t200,1000
200 ;pritimer => t313,4000
201 ;
202 ; To enable transmission of facility-based ISDN supplementary services (such
203 ; as caller name from CPE over facility), enable this option.
204 ; Cannot be changed on a reload.
205 ;
206 ;facilityenable = yes
207 ;
208 ; pritimer cannot be changed on a reload.
209 ;
210 ; Signalling method. The default is "auto". Valid values:
211 ; auto:           Use the current value from Zaptel.
212 ; em:             E & M
213 ; em_e1:          E & M E1
214 ; em_w:           E & M Wink
215 ; featd:          Feature Group D (The fake, Adtran style, DTMF)
216 ; featdmf:        Feature Group D (The real thing, MF (domestic, US))
217 ; featdmf_ta:     Feature Group D (The real thing, MF (domestic, US)) through
218 ;                 a Tandem Access point
219 ; featb:          Feature Group B (MF (domestic, US))
220 ; fgccama         Feature Group C-CAMA (DP DNIS, MF ANI)
221 ; fgccamamf       Feature Group C-CAMA MF (MF DNIS, MF ANI)
222 ; fxs_ls:         FXS (Loop Start)
223 ; fxs_gs:         FXS (Ground Start)
224 ; fxs_ks:         FXS (Kewl Start)
225 ; fxo_ls:         FXO (Loop Start)
226 ; fxo_gs:         FXO (Ground Start)
227 ; fxo_ks:         FXO (Kewl Start)
228 ; pri_cpe:        PRI signalling, CPE side
229 ; pri_net:        PRI signalling, Network side
230 ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
231 ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
232 ; sf:             SF (Inband Tone) Signalling
233 ; sf_w:           SF Wink
234 ; sf_featd:       SF Feature Group D (The fake, Adtran style, DTMF)
235 ; sf_featdmf:     SF Feature Group D (The real thing, MF (domestic, US))
236 ; sf_featb:       SF Feature Group B (MF (domestic, US))
237 ; e911:           E911 (MF) style signalling
238 ; ss7:            Signalling System 7
239 ;
240 ; The following are used for Radio interfaces:
241 ; fxs_rx:         Receive audio/COR on an FXS kewlstart interface (FXO at the
242 ;                 channel bank)
243 ; fxs_tx:         Transmit audio/PTT on an FXS loopstart interface (FXO at the
244 ;                 channel bank)
245 ; fxo_rx:         Receive audio/COR on an FXO loopstart interface (FXS at the
246 ;                 channel bank)
247 ; fxo_tx:         Transmit audio/PTT on an FXO groundstart interface (FXS at
248 ;                 the channel bank)
249 ; em_rx:          Receive audio/COR on an E&M interface (1-way)
250 ; em_tx:          Transmit audio/PTT on an E&M interface (1-way)
251 ; em_txrx:        Receive audio/COR AND Transmit audio/PTT on an E&M interface
252 ;                 (2-way)
253 ; em_rxtx:        Same as em_txrx (for our dyslexic friends)
254 ; sf_rx:          Receive audio/COR on an SF interface (1-way)
255 ; sf_tx:          Transmit audio/PTT on an SF interface (1-way)
256 ; sf_txrx:        Receive audio/COR AND Transmit audio/PTT on an SF interface
257 ;                 (2-way)
258 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
259 ; ss7:            Signalling System 7
260 ;
261 ; signalling of a channel can not be changed on a reload.
262 ;
263 ;signalling=fxo_ls
264 ;
265 ; If you have an outbound signalling format that is different from format
266 ; specified above (but compatible), you can specify outbound signalling format,
267 ; (see below). The 'signalling' format specified will be the inbound signalling
268 ; format. If you only specify 'signalling', then it will be the format for
269 ; both inbound and outbound.
270
271 ; outsignalling can only be one of: 
272 ;   em, em_e1, em_w, sf, sf_w, sf_featd, sf_featdmf, sf_featb, featd,
273 ;   featdmf, featdmf_ta, e911, fgccama, fgccamamf
274
275 ; outsignalling cannot be changed on a reload.
276 ;
277 ;signalling=featdmf
278 ;
279 ;outsignalling=featb
280 ;
281 ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
282 ; parameters (Will not be updated on reload):
283 ;
284 ;defaultozz=0000
285 ;defaultcic=303
286 ;
287 ; A variety of timing parameters can be specified as well
288 ; The default values for those are "-1", which is to use the
289 ; compile-time defaults of the Zaptel kernel modules. The timing
290 ; parameters, (with the standard default from Zaptel):
291 ;
292 ;    prewink:     Pre-wink time (default 50ms)
293 ;    preflash:    Pre-flash time (default 50ms)
294 ;    wink:        Wink time (default 150ms)
295 ;    flash:       Flash time (default 750ms)
296 ;    start:       Start time (default 1500ms)
297 ;    rxwink:      Receiver wink time (default 300ms)
298 ;    rxflash:     Receiver flashtime (default 1250ms)
299 ;    debounce:    Debounce timing (default 600ms)
300 ;
301 ; None of them will update on a reload.
302 ;
303 ; How long generated tones (DTMF and MF) will be played on the channel
304 ; (in milliseconds). 
305 ;
306 ; This is a global, rather than a per-channel setting. It will not be 
307 ; updated on a reload.
308 ;
309 ;toneduration=100
310 ;
311 ; Whether or not to do distinctive ring detection on FXO lines:
312 ;
313 ;usedistinctiveringdetection=yes
314 ;
315 ; enable dring detection after caller ID for those countries like Australia
316 ; where the ring cadence is changed *after* the caller ID spill:
317 ;
318 ;distinctiveringaftercid=yes    
319 ;
320 ; Whether or not to use caller ID:
321 ;
322 usecallerid=yes
323 ;
324 ; Hide the name part and leave just the number part of the caller ID
325 ; string. Only applies to PRI channels.
326 ;hidecalleridname=yes
327 ;
328 ; Type of caller ID signalling in use
329 ;     bell     = bell202 as used in US (default)
330 ;     v23      = v23 as used in the UK
331 ;     v23_jp   = v23 as used in Japan
332 ;     dtmf     = DTMF as used in Denmark, Sweden and Netherlands
333 ;     smdi     = Use SMDI for caller ID.  Requires SMDI to be enabled (usesmdi).
334 ;
335 ;cidsignalling=v23
336 ;
337 ; What signals the start of caller ID
338 ;     ring        = a ring signals the start (default)
339 ;     polarity    = polarity reversal signals the start
340 ;     polarity_IN = polarity reversal signals the start, for India, 
341 ;                   for dtmf dialtone detection; using DTMF.
342 ;                   (see doc/India-CID.txt)
343 ;
344 ;cidstart=polarity
345 ;
346 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
347 ; (If your dialplan doesn't catch it)
348 ;
349 ;hidecallerid=yes
350 ;
351 ; The following option enables receiving MWI on FXO lines.  The default
352 ; value is no.  When this is enabled, and MWI notification indicates on or off,
353 ; the script specified by the mwimonitornotify option is executed.  Also, an
354 ; internal Asterisk MWI event will be generated so that any other part of
355 ; Asterisk that cares about MWI state changes will get notified, just as if
356 ; the state change came from app_voicemail. The energy level that must be seen
357 ; before starting the MWI detection process can be set with 'mwilevel'.
358 ;
359 ;mwimonitor=no
360 ;mwilevel=512
361 ;
362 ; This option is used in conjunction with mwimonitor.  This will get executed
363 ; when incoming MWI state changes.  The script is passed 2 arguments.  The
364 ; first is the corresponding mailbox, and the second is 1 or 0, indicating if
365 ; there are messages waiting or not.
366 ;
367 ;mwimonitornotify=/usr/local/bin/zapnotify.sh
368 ;
369 ; Whether or not to enable call waiting on internal extensions
370 ; With this set to 'yes', busy extensions will hear the call-waiting
371 ; tone, and can use hook-flash to switch between callers. The Dial()
372 ; app will not return the "BUSY" result for extensions.
373 ;
374 callwaiting=yes
375 ;
376 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
377 ; available for the user)
378 ; Mostly use with FXS ports
379 ;
380 ;restrictcid=no
381 ;
382 ; Whether or not use the caller ID presentation for the outgoing call that the
383 ; calling switch is sending.
384 ; See README.callingpres. FIXME: file no longer exists.
385 ;
386 usecallingpres=yes
387 ;
388 ; Some countries (UK) have ring tones with different ring tones (ring-ring),
389 ; which means the caller ID needs to be set later on, and not just after
390 ; the first ring, as per the default (1). 
391 ;
392 ;sendcalleridafter = 2
393 ;
394 ;
395 ; Support caller ID on Call Waiting
396 ;
397 callwaitingcallerid=yes
398 ;
399 ; Support three-way calling
400 ;
401 threewaycalling=yes
402 ;
403 ; For FXS ports (either direct analog or over T1/E1):
404 ;   Support flash-hook call transfer (requires three way calling)
405 ;   Also enables call parking (overrides the 'canpark' parameter)
406 ;
407 ; For digital ports using ISDN PRI protocols:
408 ;   Support switch-side transfer (called 2BCT, RLT or other names)
409 ;   This setting must be enabled on both ports involved, and the
410 ;   'facilityenable' setting must also be enabled to allow sending
411 ;   the transfer to the ISDN switch, since it sent in a FACILITY
412 ;   message.
413 ;
414 transfer=yes
415 ;
416 ; Allow call parking
417 ; ('canpark=no' is overridden by 'transfer=yes')
418 ;
419 canpark=yes
420 ;
421 ; Support call forward variable
422 ;
423 cancallforward=yes
424 ;
425 ; Whether or not to support Call Return (*69, if your dialplan doesn't
426 ; catch this first)
427 ;
428 callreturn=yes
429 ;
430 ; Stutter dialtone support: If a mailbox is specified without a voicemail 
431 ; context, then when voicemail is received in a mailbox in the default 
432 ; voicemail context in voicemail.conf, taking the phone off hook will cause a
433 ; stutter dialtone instead of a normal one. 
434 ;
435 ; If a mailbox is specified *with* a voicemail context, the same will result
436 ; if voicemail received in mailbox in the specified voicemail context.
437 ;
438 ; for default voicemail context, the example below is fine:
439 ;
440 ;mailbox=1234
441 ;
442 ; for any other voicemail context, the following will produce the stutter tone:
443 ;
444 ;mailbox=1234@context 
445 ;
446 ; Enable echo cancellation 
447 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
448 ; actually set the number of taps of cancellation.
449 ;
450 ; Note that when setting the number of taps, the number 256 does not translate
451 ; to 256 ms of echo cancellation.  echocancel=256 means 256 / 8 = 32 ms.
452 ;
453 ; Note that if any of your Zaptel cards have hardware echo cancellers,
454 ; then this setting only turns them on and off; numeric settings will
455 ; be treated as "yes". There are no special settings required for
456 ; hardware echo cancellers; when present and enabled in their kernel
457 ; modules, they take precedence over the software echo canceller compiled
458 ; into Zaptel automatically.
459 ;
460 ;
461 echocancel=yes
462 ;
463 ; As of Zaptel 1.4.8, some Zaptel echo cancellers (software and hardware)
464 ; support adjustable parameters; these parameters can be supplied as
465 ; additional options to the 'echocancel' setting. Note that Asterisk
466 ; does not attempt to validate the parameters or their values, so if you
467 ; supply an invalid parameter you will not know the specific reason it
468 ; failed without checking the kernel message log for the error(s)
469 ; put there by Zaptel.
470 ;
471 ;echocancel=128,param1=32,param2=0,param3=14
472 ;
473 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
474 ; the circuit path is entirely TDM.  You may, however, change this behavior
475 ; by enabling the echo canceller during pure TDM bridging below.
476 ;
477 echocancelwhenbridged=yes
478 ;
479 ; In some cases, the echo canceller doesn't train quickly enough and there
480 ; is echo at the beginning of the call.  Enabling echo training will cause
481 ; Zaptel to briefly mute the channel, send an impulse, and use the impulse
482 ; response to pre-train the echo canceller so it can start out with a much
483 ; closer idea of the actual echo.  Value may be "yes", "no", or a number of
484 ; milliseconds to delay before training (default = 400)
485 ;
486 ; WARNING:  In some cases this option can make echo worse!  If you are
487 ; trying to debug an echo problem, it is worth checking to see if your echo
488 ; is better with the option set to yes or no.  Use whatever setting gives
489 ; the best results.
490 ;
491 ; Note that these parameters do not apply to hardware echo cancellers.
492 ;
493 ;echotraining=yes
494 ;echotraining=800
495 ;
496 ; If you are having trouble with DTMF detection, you can relax the DTMF
497 ; detection parameters.  Relaxing them may make the DTMF detector more likely
498 ; to have "talkoff" where DTMF is detected when it shouldn't be.
499 ;
500 ;relaxdtmf=yes
501 ;
502 ; You may also set the default receive and transmit gains (in dB)
503 ;
504 ; Gain Settings: increasing / decreasing the volume level on a channel.
505 ;                The values are in db (decibells). A positive number
506 ;                increases the volume level on a channel, and a
507 ;                negavive value decreases volume level.
508 ;
509 ;                There are several independent gain settings:
510 ;   rxgain: gain for the rx (receive - into Asterisk) channel. Default: 0.0
511 ;   txgain: gain for the tx (transmit - out of Asterisk Asterisk) channel. 
512 ;           Default: 0.0
513 ;   cid_rxgain: set the gain just for the caller ID sounds Asterisk
514 ;               emits. Default: 5.0 .
515
516 ;rxgain=2.0
517 ;txgain=3.0
518 ;
519 ; Logical groups can be assigned to allow outgoing roll-over.  Groups range
520 ; from 0 to 63, and multiple groups can be specified. By default the
521 ; channel is not a member of any group.
522 ;
523 ; Note that an explicit empty value for 'group' is invalid, and will not
524 ; override a previous non-empty one. The same applies to callgroup and
525 ; pickupgroup as well.
526 ;
527 group=1
528 ;
529 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing
530 ; and it is a member of a group which is one of your pickup groups, then
531 ; you can answer it by picking up and dialing *8#.  For simple offices, just
532 ; make these both the same.  Groups range from 0 to 63.
533 ;
534 callgroup=1
535 pickupgroup=1
536
537 ; Channel variable to be set for all calls from this channel
538 ;setvar=CHANNEL=42             
539
540 ;
541 ; Specify whether the channel should be answered immediately or if the simple
542 ; switch should provide dialtone, read digits, etc.
543 ; Note: If immediate=yes the dialplan execution will always start at extension
544 ; 's' priority 1 regardless of the dialed number!
545 ;
546 ;immediate=yes
547 ;
548 ; Specify whether flash-hook transfers to 'busy' channels should complete or
549 ; return to the caller performing the transfer (default is yes).
550 ;
551 ;transfertobusy=no
552 ;
553 ; caller ID can be set to "asreceived" or a specific number if you want to
554 ; override it.  Note that "asreceived" only applies to trunk interfaces.
555 ; fullname sets just the 
556 ;
557 ; fullname: sets just the name part.
558 ; cid_number: sets just the number part: 
559 ;
560 ;callerid = 123456
561 ;
562 ;callerid = My Name <2564286000>
563 ; Which can also be written as:
564 ;cid_number = 2564286000
565 ;fullname = My Name
566 ;
567 ;callerid = asreceived
568 ;
569 ; should we use the caller ID from incoming call on zap transfer?
570 ;
571 ;useincomingcalleridonzaptransfer = yes
572 ;
573 ; AMA flags affects the recording of Call Detail Records.  If specified
574 ; it may be 'default', 'omit', 'billing', or 'documentation'.
575 ;
576 ;amaflags=default
577 ;
578 ; Channels may be associated with an account code to ease
579 ; billing
580 ;
581 ;accountcode=lss0101
582 ;
583 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
584 ; basis if you have (or may have) ADSI compatible CPE equipment
585 ;
586 ;adsi=yes
587 ;
588 ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel
589 ; basis if you would like that channel to behave like an SMDI message desk.
590 ; The SMDI port specified should have already been defined in smdi.conf.  The
591 ; default port is /dev/ttyS0.
592 ;
593 ;usesmdi=yes
594 ;smdiport=/dev/ttyS0
595 ;
596 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
597 ; etc, it can be useful to perform busy detection either in an effort to 
598 ; detect hangup or for detecting busies.  This enables listening for
599 ; the beep-beep busy pattern.
600 ;
601 ;busydetect=yes
602 ;
603 ; If busydetect is enabled, it is also possible to specify how many busy tones
604 ; to wait for before hanging up.  The default is 3, but it might be
605 ; safer to set to 6 or even 8.  Mind that the higher the number, the more
606 ; time that will be needed to hangup a channel, but lowers the probability
607 ; that you will get random hangups.
608 ;
609 ;busycount=6
610 ;
611 ; If busydetect is enabled, it is also possible to specify the cadence of your
612 ; busy signal.  In many countries, it is 500msec on, 500msec off.  Without
613 ; busypattern specified, we'll accept any regular sound-silence pattern that
614 ; repeats <busycount> times as a busy signal.  If you specify busypattern,
615 ; then we'll further check the length of the sound (tone) and silence, which
616 ; will further reduce the chance of a false positive.
617 ;
618 ;busypattern=500,500
619 ;
620 ; NOTE: In make menuselect, you'll find further options to tweak the busy
621 ; detector.  If your country has a busy tone with the same length tone and
622 ; silence (as many countries do), consider enabling the
623 ; BUSYDETECT_COMPARE_TONE_AND_SILENCE option.
624 ;
625 ; To further detect which hangup tone your telco provider is sending, it is
626 ; useful to use the ztmonitor utility to record the audio that main/dsp.c
627 ; is receiving after the caller hangs up.
628 ;
629 ; Use a polarity reversal to mark when a outgoing call is answered by the
630 ; remote party.
631 ;
632 ;answeronpolarityswitch=yes
633 ;
634 ; In some countries, a polarity reversal is used to signal the disconnect of a
635 ; phone line.  If the hanguponpolarityswitch option is selected, the call will
636 ; be considered "hung up" on a polarity reversal.
637 ;
638 ;hanguponpolarityswitch=yes
639 ;
640 ; polarityonanswerdelay: minimal time period (ms) between the answer 
641 ;                        polarity switch and hangup polarity switch. 
642 ;                        (default: 600ms)
643 ;
644 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
645 ; of a call through RINGING, BUSY, and ANSWERING.   If turned on, call
646 ; progress attempts to determine answer, busy, and ringing on phone lines.
647 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
648 ; so don't count on it being very accurate.
649 ;
650 ; Few zones are supported at the time of this writing, but may be selected
651 ; with "progzone".
652 ;
653 ; progzone also affects the pattern used for buzydetect (unless
654 ; busypattern is set explicitly). The possible values are: 
655 ;   us (default)
656 ;   ca (alias for 'us')
657 ;   cr (Costa Rica)
658 ;   br (Brazil, alias for 'cr')
659 ;   uk
660 ;
661 ; This feature can also easily detect false hangups. The symptoms of this is
662 ; being disconnected in the middle of a call for no reason.
663 ;
664 ;callprogress=yes
665 ;progzone=uk
666 ;
667 ; Set the tonezone. Equivalent of the defaultzone settings in
668 ; /etc/zaptel.conf . This sets the tone zone by number.
669 ; Note that you'd still need to load tonezones (loadzone in zaptel.conf).
670 ; The default is -1: not to set anything.
671 ;tonezone = 0 ; 0 is US
672 ;
673 ; FXO (FXS signalled) devices must have a timeout to determine if there was a
674 ; hangup before the line was answered.  This value can be tweaked to shorten
675 ; how long it takes before Zap considers a non-ringing line to have hungup.
676 ;
677 ; ringtimeout will not update on a reload.
678 ;
679 ;ringtimeout=8000
680 ;
681 ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
682 ; Pulse digits from phones (FXS devices, FXO signalling) are always
683 ; detected.
684 ;
685 ;pulsedial=yes
686 ;
687 ; For fax detection, uncomment one of the following lines.  The default is *OFF*
688 ;
689 ;faxdetect=both
690 ;faxdetect=incoming
691 ;faxdetect=outgoing
692 ;faxdetect=no
693 ;
694 ; This option specifies a preference for which music on hold class this channel
695 ; should listen to when put on hold if the music class has not been set on the
696 ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
697 ; channel putting this one on hold did not suggest a music class.
698 ;
699 ; If this option is set to "passthrough", then the hold message will always be
700 ; passed through as signalling instead of generating hold music locally. This
701 ; setting is only valid when used on a channel that uses digital signalling.
702 ;
703 ;mohinterpret=default
704 ;
705 ; This option specifies which music on hold class to suggest to the peer channel
706 ; when this channel places the peer on hold. 
707 ;
708 ;mohsuggest=default
709 ;
710 ; PRI channels can have an idle extension and a minunused number.  So long as
711 ; at least "minunused" channels are idle, chan_zap will try to call "idledial"
712 ; on them, and then dump them into the PBX in the "idleext" extension (which
713 ; is of the form exten@context).  When channels are needed the "idle" calls
714 ; are disconnected (so long as there are at least "minidle" calls still
715 ; running, of course) to make more channels available.  The primary use of
716 ; this is to create a dynamic service, where idle channels are bundled through
717 ; multilink PPP, thus more efficiently utilizing combined voice/data services
718 ; than conventional fixed mappings/muxings.
719 ;
720 ; Those settings cannot be changed on reload.
721 ;
722 ;idledial=6999
723 ;idleext=6999@dialout
724 ;minunused=2
725 ;minidle=1
726 ;
727 ; Configure jitter buffers in Zapata (each one is 20ms, default is 4)
728 ; This is set globally, rather than per-channel.
729 ;
730 ;jitterbuffers=4
731 ;
732 ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
733 ; jbenable = yes              ; Enables the use of a jitterbuffer on the receiving side of a
734                               ; ZAP channel. Defaults to "no". An enabled jitterbuffer will
735                               ; be used only if the sending side can create and the receiving
736                               ; side can not accept jitter. The ZAP channel can't accept jitter,
737                               ; thus an enabled jitterbuffer on the receive ZAP side will always
738                               ; be used if the sending side can create jitter.
739
740 ; jbmaxsize = 200             ; Max length of the jitterbuffer in milliseconds.
741
742 ; jbresyncthreshold = 1000    ; Jump in the frame timestamps over which the jitterbuffer is
743                               ; resynchronized. Useful to improve the quality of the voice, with
744                               ; big jumps in/broken timestamps, usually sent from exotic devices
745                               ; and programs. Defaults to 1000.
746
747 ; jbimpl = fixed              ; Jitterbuffer implementation, used on the receiving side of a ZAP
748                               ; channel. Two implementations are currently available - "fixed"
749                               ; (with size always equals to jbmax-size) and "adaptive" (with
750                               ; variable size, actually the new jb of IAX2). Defaults to fixed.
751
752 ; jblog = no                  ; Enables jitterbuffer frame logging. Defaults to "no".
753 ;-----------------------------------------------------------------------------------
754 ;
755 ; You can define your own custom ring cadences here.  You can define up to 8
756 ; pairs.  If the silence is negative, it indicates where the caller ID spill is
757 ; to be placed.  Also, if you define any custom cadences, the default cadences
758 ; will be turned off.
759 ;
760 ; This setting is global, rather than per-channel. It will not update on
761 ; a reload.
762 ;
763 ; Syntax is:  cadence=ring,silence[,ring,silence[...]]
764 ;
765 ; These are the default cadences:
766 ;
767 ;cadence=125,125,2000,-4000
768 ;cadence=250,250,500,1000,250,250,500,-4000
769 ;cadence=125,125,125,125,125,-4000
770 ;cadence=1000,500,2500,-5000
771 ;
772 ; Each channel consists of the channel number or range.  It inherits the
773 ; parameters that were specified above its declaration.
774 ;
775 ; For GR-303, CRV's are created like channels except they must start with the
776 ; trunk group followed by a colon, e.g.: 
777 ;
778 ; crv => 1:1
779 ; crv => 2:1-2,5-8
780 ;
781 ;
782 ;callerid="Green Phone"<(256) 428-6121>
783 ;channel => 1
784 ;callerid="Black Phone"<(256) 428-6122>
785 ;channel => 2
786 ;callerid="CallerID Phone" <(630) 372-1564>
787 ;channel => 3
788 ;callerid="Pac Tel Phone" <(256) 428-6124>
789 ;channel => 4
790 ;callerid="Uniden Dead" <(256) 428-6125>
791 ;channel => 5
792 ;callerid="Cortelco 2500" <(256) 428-6126>
793 ;channel => 6
794 ;callerid="Main TA 750" <(256) 428-6127>
795 ;channel => 44
796 ;
797 ; For example, maybe we have some other channels which start out in a
798 ; different context and use E & M signalling instead.
799 ;
800 ;context=remote
801 ;sigalling=em
802 ;channel => 15
803 ;channel => 16
804
805 ;signalling=em_w
806 ;
807 ; All those in group 0 I'll use for outgoing calls
808 ;
809 ; Strip most significant digit (9) before sending
810 ;
811 ;stripmsd=1
812 ;callerid=asreceived
813 ;group=0
814 ;signalling=fxs_ls
815 ;channel => 45
816
817 ;signalling=fxo_ls
818 ;group=1
819 ;callerid="Joe Schmoe" <(256) 428-6131>
820 ;channel => 25
821 ;callerid="Megan May" <(256) 428-6132>
822 ;channel => 26
823 ;callerid="Suzy Queue" <(256) 428-6233>
824 ;channel => 27
825 ;callerid="Larry Moe" <(256) 428-6234>
826 ;channel => 28
827 ;
828 ; Sample PRI (CPE) config:  Specify the switchtype, the signalling as either
829 ; pri_cpe or pri_net for CPE or Network termination, and generally you will
830 ; want to create a single "group" for all channels of the PRI.
831 ;
832 ; switchtype cannot be changed on a reload.
833 ;
834 ; switchtype = national
835 ; signalling = pri_cpe
836 ; group = 2
837 ; channel => 1-23
838
839 ;
840
841 ;  Used for distinctive ring support for x100p.
842 ;  You can see the dringX patterns is to set any one of the dringXcontext fields
843 ;  and they will be printed on the console when an inbound call comes in.
844 ;
845 ;  dringXrange is used to change the acceptable ranges for "tone offsets".  Defaults to 10.
846 ;  Note: a range of 0 is NOT what you might expect - it instead forces it to the default.
847 ;  A range of -1 will force it to always match.
848 ;  Anything lower than -1 would presumably cause it to never match.
849 ;
850 ;dring1=95,0,0 
851 ;dring1context=internal1 
852 ;dring1range=10
853 ;dring2=325,95,0 
854 ;dring2context=internal2 
855 ;dring2range=10
856 ; If no pattern is matched here is where we go.
857 ;context=default
858 ;channel => 1 
859
860 ; ---------------- Options for use with signalling=ss7 -----------------
861 ; None of them can be changed by a reload.
862 ;
863 ; Variant of SS7 signalling:
864 ; Options are itu and ansi
865 ;ss7type = itu
866
867 ; SS7 Called Nature of Address Indicator
868 ;
869 ; unknown:        Unknown
870 ; subscriber:     Subscriber
871 ; national:       National
872 ; international:  International
873 ; dynamic:        Dynamically selects the appropriate dialplan
874 ;
875 ;ss7_called_nai=dynamic
876 ;
877 ; SS7 Calling Nature of Address Indicator
878 ;
879 ; unknown:        Unknown
880 ; subscriber:     Subscriber
881 ; national:       National
882 ; international:  International
883 ; dynamic:        Dynamically selects the appropriate dialplan
884 ;
885 ;ss7_calling_nai=dynamic
886 ;
887
888 ; sample 1 for Germany 
889 ;ss7_internationalprefix = 00
890 ;ss7_nationalprefix = 0
891 ;ss7_subscriberprefix = 
892 ;ss7_unknownprefix = 
893 ;
894
895 ; All settings apply to linkset 1
896 ;linkset = 1
897
898 ; Point code of the linkset.  For ITU, this is the decimal number
899 ; format of the point code.  For ANSI, this can either be in decimal
900 ; number format or in the xxx-xxx-xxx format
901 ;pointcode = 1
902
903 ; Point code of node adjacent to this signalling link (Possibly the STP between you and
904 ; your destination).  Point code format follows the same rules as above.
905 ;adjpointcode = 2
906
907 ; Default point code that you would like to assign to outgoing messages (in case of
908 ; routing through STPs, or using A links).  Point code format follows the same rules
909 ; as above.
910 ;defaultdpc = 3
911
912 ; Begin CIC (Circuit indication codes) count with this number
913 ;cicbeginswith = 1
914
915 ; What the MTP3 network indicator bits should be set to.  Choices are
916 ; national, national_spare, international, international_spare
917 ;networkindicator=international
918
919 ; First signalling channel
920 ;sigchan = 48
921
922 ; Channels to associate with CICs on this linkset
923 ;channel = 25-47
924 ;
925 ; For more information on setting up SS7, see the README file in libss7 or
926 ; the doc/ss7.txt file in the Asterisk source tree.
927 ; ----------------- SS7 Options ----------------------------------------
928
929 ; Configuration Sections
930 ; ~~~~~~~~~~~~~~~~~~~~~~
931 ; You can also configure channels in a separate zapata.conf section. In
932 ; this case the keyword 'channel' is not used. Instead the keyword
933 ; 'zapchan' is used (as in users.conf) - configuration is only processed
934 ; in a section where the keyword zapchan is used. It will only be
935 ; processed in the end of the section. Thus the following section:
936 ;
937 ;[phones]
938 ;echocancel = 64
939 ;zapchan = 1-8
940 ;group = 1
941 ;
942 ; Is somewhat equivalent to the following snippet in the section
943 ; [channels]:
944 ;
945 ;echocancel = 64
946 ;group = 1
947 ;channel => 1-8
948 ;
949 ; When starting a new section almost all of the configuration values are
950 ; copied from their values at the end of the section [channels] in
951 ; zapata.conf and [general] in users.conf - one section's configuration
952 ; does not affect another one's.
953 ;
954 ; Instead of letting common configuration values "slide through" you can 
955 ; use configuration templates to easily keep the common part in one
956 ; place and override where needed.
957 ;
958 ;[phones](!)
959 ;echocancel = yes
960 ;group = 0,4
961 ;callgroup = 3
962 ;pickupgroup = 3
963 ;threewaycalling = yes
964 ;transfer = yes
965 ;context = phones
966 ;faxdetect = incoming
967 ;
968 ;[phone-1](phones)
969 ;zapchan = 1
970 ;callerid = My Name <501>
971 ;mailbox = 501@mailboxes
972 ;
973 ;
974 ;[fax](phones)
975 ;zapchan = 2
976 ;faxdetect = no
977 ;context = fax
978 ;
979 ;[phone-3](phones)
980 ;zapchan = 3
981 ;pickupgroup = 3,4