chan_dahdi: Add config support for hwgain settings.
[asterisk/asterisk.git] / configs / chan_dahdi.conf.sample
1 ;
2 ; DAHDI Telephony Configuration file
3 ;
4 ; You need to restart Asterisk to re-configure the DAHDI channel
5 ; CLI> module reload chan_dahdi.so
6 ;      will reload the configuration file, but not all configuration options
7 ;      are re-configured during a reload (signalling, as well as PRI and
8 ;      SS7-related settings cannot be changed on a reload).
9 ;
10 ; This file documents many configuration variables.  Normally unless you know
11 ; what a variable means or that it should be changed, there's no reason to
12 ; un-comment those lines.
13 ;
14 ; Examples below that are commented out (those lines that begin with a ';' but
15 ; no space afterwards) typically show a value that is not the default value,
16 ; but would make sense under certain circumstances. The default values are
17 ; usually sane. Thus you should typically not touch them unless you know what
18 ; they mean or you know you should change them.
19
20 [trunkgroups]
21 ;
22 ; Trunk groups are used for NFAS connections.
23 ;
24 ; Group: Defines a trunk group.
25 ;        trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
26 ;
27 ;        trunkgroup  is the numerical trunk group to create
28 ;        dchannel    is the DAHDI channel which will have the
29 ;                    d-channel for the trunk.
30 ;        backup1     is an optional list of backup d-channels.
31 ;
32 ;trunkgroup => 1,24,48
33 ;trunkgroup => 1,24
34 ;
35 ; Spanmap: Associates a span with a trunk group
36 ;        spanmap => <dahdispan>,<trunkgroup>[,<logicalspan>]
37 ;
38 ;        dahdispan   is the DAHDI span number to associate
39 ;        trunkgroup  is the trunkgroup (specified above) for the mapping
40 ;        logicalspan is the logical span number within the trunk group to use.
41 ;                    if unspecified, no logical span number is used.
42 ;
43 ;spanmap => 1,1,1
44 ;spanmap => 2,1,2
45 ;spanmap => 3,1,3
46 ;spanmap => 4,1,4
47
48 [channels]
49 ;
50 ; Default language
51 ;
52 ;language=en
53 ;
54 ; Context for incoming calls. Defaults to 'default'
55 ;
56 context=public
57 ;
58 ; Switchtype:  Only used for PRI.
59 ;
60 ; national:    National ISDN 2 (default)
61 ; dms100:      Nortel DMS100
62 ; 4ess:        AT&T 4ESS
63 ; 5ess:        Lucent 5ESS
64 ; euroisdn:    EuroISDN (common in Europe)
65 ; ni1:         Old National ISDN 1
66 ; qsig:        Q.SIG
67 ;
68 ;switchtype=euroisdn
69 ;
70 ; MSNs for ISDN spans.  Asterisk will listen for the listed numbers on
71 ; incoming calls and ignore any calls not listed.
72 ; Here you can give a comma separated list of numbers or dialplan extension
73 ; patterns.  An empty list disables MSN matching to allow any incoming call.
74 ; Only set on PTMP CPE side of ISDN span if needed.
75 ; The default is an empty list.
76 ;msn=
77 ;
78 ; Some switches (AT&T especially) require network specific facility IE.
79 ; Supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
80 ;
81 ; nsf cannot be changed on a reload.
82 ;
83 ;nsf=none
84 ;
85 ;service_message_support=yes
86 ; Enable service message support for channel. Must be set after switchtype.
87 ;
88 ; Dialing options for ISDN (i.e., Dial(DAHDI/g1/exten/options)):
89 ; R      Reverse Charge Indication
90 ;          Indicate to the called party that the call will be reverse charged.
91 ; K(n)   Keypad digits n
92 ;          Send out the specified digits as keypad digits.
93 ;
94 ; PRI Dialplan: The ISDN-level Type Of Number (TON) or numbering plan, used for
95 ; the dialed number.  Leaving this as 'unknown' (the default) works for most
96 ; cases.  In some very unusual circumstances, you may need to set this to
97 ; 'dynamic' or 'redundant'.
98 ;
99 ; unknown:        Unknown
100 ; private:        Private ISDN
101 ; local:          Local ISDN
102 ; national:       National ISDN
103 ; international:  International ISDN
104 ; dynamic:        Dynamically selects the appropriate dialplan using the
105 ;                 prefix settings.
106 ; redundant:      Same as dynamic, except that the underlying number is not
107 ;                 changed (not common)
108 ;
109 ; pridialplan cannot be changed on reload.
110 ;pridialplan=unknown
111 ;
112 ; PRI Local Dialplan:  Only RARELY used for PRI (sets the calling number's
113 ; numbering plan).  In North America, the typical use is sending the 10 digit
114 ; callerID number and setting the prilocaldialplan to 'national' (the default).
115 ; Only VERY rarely will you need to change this.
116 ;
117 ; unknown:        Unknown
118 ; private:        Private ISDN
119 ; local:          Local ISDN
120 ; national:       National ISDN
121 ; international:  International ISDN
122 ; from_channel:   Use the CALLERID(ton) value from the channel.
123 ; dynamic:        Dynamically selects the appropriate dialplan using the
124 ;                 prefix settings.
125 ; redundant:      Same as dynamic, except that the underlying number is not
126 ;                 changed (not common)
127 ;
128 ; prilocaldialplan cannot be changed on reload.
129 ;prilocaldialplan=national
130 ;
131 ; PRI Connected Line Dialplan:  Sets the connected party number's numbering plan.
132 ;
133 ; unknown:        Unknown
134 ; private:        Private ISDN
135 ; local:          Local ISDN
136 ; national:       National ISDN
137 ; international:  International ISDN
138 ; from_channel:   Use the CONNECTEDLINE(ton) value from the channel.
139 ; dynamic:        Dynamically selects the appropriate dialplan using the
140 ;                 prefix settings.
141 ; redundant:      Same as dynamic, except that the underlying number is not
142 ;                 changed (not common)
143 ;
144 ; pricpndialplan cannot be changed on reload.
145 ;pricpndialplan=from_channel
146 ;
147 ; pridialplan may be also set at dialtime, by prefixing the dialed number with
148 ; one of the following letters:
149 ; U - Unknown
150 ; I - International
151 ; N - National
152 ; L - Local (Net Specific)
153 ; S - Subscriber
154 ; V - Abbreviated
155 ; R - Reserved (should probably never be used but is included for completeness)
156 ;
157 ; Additionally, you may also set the following NPI bits (also by prefixing the
158 ; dialed string with one of the following letters):
159 ; u - Unknown
160 ; e - E.163/E.164 (ISDN/telephony)
161 ; x - X.121 (Data)
162 ; f - F.69 (Telex)
163 ; n - National
164 ; p - Private
165 ; r - Reserved (should probably never be used but is included for completeness)
166 ;
167 ; You may also set the prilocaldialplan in the same way, but by prefixing the
168 ; Caller*ID Number rather than the dialed number.
169
170 ; Please note that telcos which require this kind of additional manipulation
171 ; of the TON/NPI are *rare*.  Most telco PRIs will work fine simply by
172 ; setting pridialplan to unknown or dynamic.
173 ;
174 ;
175 ; PRI caller ID prefixes based on the given TON/NPI (dialplan)
176 ; This is especially needed for EuroISDN E1-PRIs
177 ;
178 ; None of the prefix settings can be changed on reload.
179 ;
180 ; sample 1 for Germany
181 ;internationalprefix = 00
182 ;nationalprefix = 0
183 ;localprefix = 0711
184 ;privateprefix = 07115678
185 ;unknownprefix =
186 ;
187 ; sample 2 for Germany
188 ;internationalprefix = +
189 ;nationalprefix = +49
190 ;localprefix = +49711
191 ;privateprefix = +497115678
192 ;unknownprefix =
193 ;
194 ; PRI resetinterval: sets the time in seconds between restart of unused
195 ; B channels; defaults to 'never'.
196 ;
197 ;resetinterval = 3600
198 ;
199 ; Assume inband audio may be present when a PROCEEDING message is received.
200 ; Q.931 Section 5.1.2 says the network cannot assume that the CPE side has
201 ; attached to the B channel at this time without explicitly sending the
202 ; progress indicator ie informing the CPE side to attach to the B channel
203 ; for audio.  However, some non-compliant ISDN switches send a PROCEEDING
204 ; without the progress indicator ie indicating inband audio is available and
205 ; assume that the CPE device has connected the media path for listening to
206 ; ringback and other messages.
207 ; Default no.
208 ;
209 ;inband_on_proceeding=yes
210 ;
211 ; Overlap dialing mode (sending overlap digits)
212 ; Cannot be changed on a reload.
213 ;
214 ; incoming: incoming direction only
215 ; outgoing: outgoing direction only
216 ; no: neither direction
217 ; yes or both: both directions
218 ;
219 ;overlapdial=yes
220
221 ; Send/receive ISDN display IE options.  The display options are a comma separated
222 ; list of the following options:
223 ;
224 ; block:        Do not pass display text data.
225 ;               Q.SIG: Default for send/receive.
226 ;               ETSI CPE: Default for send.
227 ; name_initial: Use display text in SETUP/CONNECT messages as the party name.
228 ;               Default for all other modes.
229 ; name_update:  Use display text in other messages (NOTIFY/FACILITY) for COLP name
230 ;               update.
231 ; name:         Combined name_initial and name_update options.
232 ; text:         Pass any unused display text data as an arbitrary display message
233 ;               during a call.  Sent text goes out in an INFORMATION message.
234 ;
235 ; * Default is an empty string for legacy behavior.
236 ; * The name options are not recommended for Q.SIG since Q.SIG already
237 ;   supports names.
238 ; * The send block is the only recommended setting for CPE mode since Q.931 uses
239 ;   the display IE only in the network to user direction.
240 ;
241 ; display_send and display_receive cannot be changed on reload.
242 ;
243 ;display_send=
244 ;display_receive=
245
246 ; Allow sending an ISDN Malicious Caller ID (MCID) request on this span.
247 ; Default disabled
248 ;
249 ;mcid_send=yes
250
251 ; Send ISDN date/time IE in CONNECT message option.  Only valid on NT spans.
252 ;
253 ; no:           Do not send date/time IE in CONNECT message.
254 ; date:         Send date only.
255 ; date_hh       Send date and hour.
256 ; date_hhmm     Send date, hour, and minute.
257 ; date_hhmmss   Send date, hour, minute, and second.
258 ;
259 ; Default is an empty string which lets libpri pick the default
260 ; date/time IE send policy.
261 ;
262 ;datetime_send=
263
264 ; Send ISDN conected line information.
265 ;
266 ; block:   Do not send any connected line information.
267 ; connect: Send connected line information on initial connect.
268 ; update:  Same as connect but also send any updates during a call.
269 ;          Updates happen if the call is transferred. (Default)
270 ;
271 ;colp_send=update
272
273 ; Allow inband audio (progress) when a call is DISCONNECTed by the far end of a PRI
274 ;
275 ;inbanddisconnect=yes
276 ;
277 ; Allow a held call to be transferred to the active call on disconnect.
278 ; This is useful on BRI PTMP NT lines where an ISDN phone can simulate the
279 ; transfer feature of an analog phone.
280 ; The default is no.
281 ;hold_disconnect_transfer=yes
282
283 ; BRI PTMP layer 1 presence.
284 ; You should normally not need to set this option.
285 ; You may need to set this option if your telco brings layer 1 down when
286 ; the line is idle.
287 ; required:      Layer 1 presence required for outgoing calls. (default)
288 ; ignore:        Ignore alarms from DAHDI about this span.
289 ;                (Layer 1 and 2 will be brought back up for an outgoing call.)
290 ;                NOTE:  You will not be able to detect physical line problems
291 ;                until an outgoing call is attempted and fails.
292 ;
293 ;layer1_presence=ignore
294
295 ; BRI PTMP layer 2 persistence.
296 ; You should normally not need to set this option.
297 ; You may need to set this option if your telco brings layer 1 down when
298 ; the line is idle.
299 ; <blank>:       Use libpri default.
300 ; keep_up:       Bring layer 2 back up if peer takes it down.
301 ; leave_down:    Leave layer 2 down if peer takes it down. (Libpri default)
302 ;                (Layer 2 will be brought back up for an outgoing call.)
303 ;
304 ;layer2_persistence=leave_down
305
306 ; PRI Out of band indications.
307 ; Enable this to report Busy and Congestion on a PRI using out-of-band
308 ; notification. Inband indication, as used by Asterisk doesn't seem to work
309 ; with all telcos.
310 ;
311 ; outofband:      Signal Busy/Congestion out of band with RELEASE/DISCONNECT
312 ; inband:         Signal Busy/Congestion using in-band tones (default)
313 ;
314 ; priindication cannot be changed on a reload.
315 ;
316 ;priindication = outofband
317 ;
318 ; If you need to override the existing channels selection routine and force all
319 ; PRI channels to be marked as exclusively selected, set this to yes.
320 ;
321 ; priexclusive cannot be changed on a reload.
322 ;
323 ;priexclusive = yes
324 ;
325 ;
326 ; If you need to use the logical channel mapping with your Q.SIG PRI instead
327 ; of the physical mapping you must use the qsigchannelmapping option.
328 ;
329 ; logical:  Use the logical channel mapping
330 ; physical: Use physical channel mapping (default)
331 ;
332 ;qsigchannelmapping=logical
333 ;
334 ; If you wish to ignore remote hold indications (and use MOH that is supplied over
335 ; the B channel) enable this option.
336 ;
337 ;discardremoteholdretrieval=yes
338 ;
339 ; ISDN Timers
340 ; All of the ISDN timers and counters that are used are configurable.  Specify
341 ; the timer name, and its value (in ms for timers).
342 ; K:    Layer 2 max number of outstanding unacknowledged I frames (default 7)
343 ; N200: Layer 2 max number of retransmissions of a frame (default 3)
344 ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms)
345 ; T203: Layer 2 max time without frames being exchanged (default 10000 ms)
346 ; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
347 ; T308: Wait for RELEASE acknowledge (default 4000 ms)
348 ; T309: Maintain active calls on Layer 2 disconnection (default 6000 ms)
349 ;       EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
350 ;       May vary in other ISDN standards (Q.931 1993 : 90000 ms)
351 ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
352 ;
353 ; T-RESPONSE:   Maximum time to wait for a typical APDU response. (default 4000 ms)
354 ;               This is an implementation timer when the standard does not specify one.
355 ; T-ACTIVATE:   Request supervision timeout. (default 10000 ms)
356 ; T-RETENTION:  Maximum  time to wait for user A to activate call-completion. (default 30000 ms)
357 ;               Used by ETSI PTP, ETSI PTMP, and Q.SIG as the cc_offer_timer.
358 ; T-CCBS1:      T-STATUS timer equivalent for CC user A status. (default 4000 ms)
359 ; T-CCBS2:      Maximum  time the CCBS service will be active (default 45 min in ms)
360 ; T-CCBS3:      Maximum  time to wait for user A to respond to user B availability. (default 20000 ms)
361 ; T-CCBS5:      Network B CCBS supervision timeout. (default 60 min in ms)
362 ; T-CCBS6:      Network A CCBS supervision timeout. (default 60 min in ms)
363 ; T-CCNR2:      Maximum  time the CCNR service will be active (default 180 min in ms)
364 ; T-CCNR5:      Network B CCNR supervision timeout. (default 195 min in ms)
365 ; T-CCNR6:      Network A CCNR supervision timeout. (default 195 min in ms)
366 ; CC-T1:        Q.SIG CC request supervision timeout. (default 30000 ms)
367 ; CCBS-T2:      Q.SIG CCBS supervision timeout. (default 60 min in ms)
368 ; CCNR-T2:      Q.SIG CCNR supervision timeout. (default 195 min in ms)
369 ; CC-T3:        Q.SIG CC Maximum time to wait for user A to respond to user B availability. (default 30000 ms)
370 ;
371 ;pritimer => t200,1000
372 ;pritimer => t313,4000
373 ;
374 ; CC PTMP recall mode:
375 ; specific - Only the CC original party A can participate in the CC callback
376 ; global - Other compatible endpoints on the PTMP line can be party A in the CC callback
377 ;
378 ; cc_ptmp_recall_mode cannot be changed on a reload.
379 ;
380 ;cc_ptmp_recall_mode = specific
381 ;
382 ; CC Q.SIG Party A (requester) retain signaling link option
383 ; retain       Require that the signaling link be retained.
384 ; release      Request that the signaling link be released.
385 ; do_not_care  The responder is free to choose if the signaling link will be retained.
386 ;
387 ;cc_qsig_signaling_link_req = retain
388 ;
389 ; CC Q.SIG Party B (responder) retain signaling link option
390 ; retain       Prefer that the signaling link be retained.
391 ; release      Prefer that the signaling link be released.
392 ;
393 ;cc_qsig_signaling_link_rsp = retain
394 ;
395 ; See ccss.conf.sample for more options.  The timers described by ccss.conf.sample
396 ; are not used by ISDN for the native protocol since they are defined by the
397 ; standards and set by pritimer above.
398 ;
399 ; To enable transmission of facility-based ISDN supplementary services (such
400 ; as caller name from CPE over facility), enable this option.
401 ; Cannot be changed on a reload.
402 ;
403 ;facilityenable = yes
404 ;
405
406 ; This option enables Advice of Charge pass-through between the ISDN PRI and
407 ; Asterisk.  This option can be set to any combination of 's', 'd', and 'e' which
408 ; represent the different variants of Advice of Charge, AOC-S, AOC-D, and AOC-E.
409 ; Advice of Charge pass-through is currently only supported for ETSI.  Since most
410 ; AOC messages are sent on facility messages, the 'facilityenable' option must
411 ; also be enabled to fully support AOC pass-through.
412 ;
413 ;aoc_enable=s,d,e
414 ;
415 ; When this option is enabled, a hangup initiated by the ISDN PRI side of the
416 ; asterisk channel will result in the channel delaying its hangup in an
417 ; attempt to receive the final AOC-E message from its bridge.  The delay
418 ; period is configured as one half the T305 timer length. If the channel
419 ; is not bridged the hangup will occur immediatly without delay.
420 ;
421 ;aoce_delayhangup=yes
422
423 ; pritimer cannot be changed on a reload.
424 ;
425 ; Signalling method. The default is "auto". Valid values:
426 ; auto:           Use the current value from DAHDI.
427 ; em:             E & M
428 ; em_e1:          E & M E1
429 ; em_w:           E & M Wink
430 ; featd:          Feature Group D (The fake, Adtran style, DTMF)
431 ; featdmf:        Feature Group D (The real thing, MF (domestic, US))
432 ; featdmf_ta:     Feature Group D (The real thing, MF (domestic, US)) through
433 ;                 a Tandem Access point
434 ; featb:          Feature Group B (MF (domestic, US))
435 ; fgccama:        Feature Group C-CAMA (DP DNIS, MF ANI)
436 ; fgccamamf:      Feature Group C-CAMA MF (MF DNIS, MF ANI)
437 ; fxs_ls:         FXS (Loop Start)
438 ; fxs_gs:         FXS (Ground Start)
439 ; fxs_ks:         FXS (Kewl Start)
440 ; fxo_ls:         FXO (Loop Start)
441 ; fxo_gs:         FXO (Ground Start)
442 ; fxo_ks:         FXO (Kewl Start)
443 ; pri_cpe:        PRI signalling, CPE side
444 ; pri_net:        PRI signalling, Network side
445 ; bri_cpe:        BRI PTP signalling, CPE side
446 ; bri_net:        BRI PTP signalling, Network side
447 ; bri_cpe_ptmp:   BRI PTMP signalling, CPE side
448 ; bri_net_ptmp:   BRI PTMP signalling, Network side
449 ; sf:             SF (Inband Tone) Signalling
450 ; sf_w:           SF Wink
451 ; sf_featd:       SF Feature Group D (The fake, Adtran style, DTMF)
452 ; sf_featdmf:     SF Feature Group D (The real thing, MF (domestic, US))
453 ; sf_featb:       SF Feature Group B (MF (domestic, US))
454 ; e911:           E911 (MF) style signalling
455 ; ss7:            Signalling System 7
456 ; mfcr2:          MFC/R2 Signalling. To specify the country variant see 'mfcr2_variant'
457 ;
458 ; The following are used for Radio interfaces:
459 ; fxs_rx:         Receive audio/COR on an FXS kewlstart interface (FXO at the
460 ;                 channel bank)
461 ; fxs_tx:         Transmit audio/PTT on an FXS loopstart interface (FXO at the
462 ;                 channel bank)
463 ; fxo_rx:         Receive audio/COR on an FXO loopstart interface (FXS at the
464 ;                 channel bank)
465 ; fxo_tx:         Transmit audio/PTT on an FXO groundstart interface (FXS at
466 ;                 the channel bank)
467 ; em_rx:          Receive audio/COR on an E&M interface (1-way)
468 ; em_tx:          Transmit audio/PTT on an E&M interface (1-way)
469 ; em_txrx:        Receive audio/COR AND Transmit audio/PTT on an E&M interface
470 ;                 (2-way)
471 ; em_rxtx:        Same as em_txrx (for our dyslexic friends)
472 ; sf_rx:          Receive audio/COR on an SF interface (1-way)
473 ; sf_tx:          Transmit audio/PTT on an SF interface (1-way)
474 ; sf_txrx:        Receive audio/COR AND Transmit audio/PTT on an SF interface
475 ;                 (2-way)
476 ; sf_rxtx:        Same as sf_txrx (for our dyslexic friends)
477 ; ss7:            Signalling System 7
478 ;
479 ; signalling of a channel can not be changed on a reload.
480 ;
481 ;signalling=fxo_ls
482 ;
483 ; If you have an outbound signalling format that is different from format
484 ; specified above (but compatible), you can specify outbound signalling format,
485 ; (see below). The 'signalling' format specified will be the inbound signalling
486 ; format. If you only specify 'signalling', then it will be the format for
487 ; both inbound and outbound.
488 ;
489 ; outsignalling can only be one of:
490 ;   em, em_e1, em_w, sf, sf_w, sf_featd, sf_featdmf, sf_featb, featd,
491 ;   featdmf, featdmf_ta, e911, fgccama, fgccamamf
492 ;
493 ; outsignalling cannot be changed on a reload.
494 ;
495 ;signalling=featdmf
496 ;
497 ;outsignalling=featb
498 ;
499 ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
500 ; parameters (Will not be updated on reload):
501 ;
502 ;defaultozz=0000
503 ;defaultcic=303
504 ;
505 ; A variety of timing parameters can be specified as well
506 ; The default values for those are "-1", which is to use the
507 ; compile-time defaults of the DAHDI kernel modules. The timing
508 ; parameters, (with the standard default from DAHDI):
509 ;
510 ;    prewink:     Pre-wink time (default 50ms)
511 ;    preflash:    Pre-flash time (default 50ms)
512 ;    wink:        Wink time (default 150ms)
513 ;    flash:       Flash time (default 750ms)
514 ;    start:       Start time (default 1500ms)
515 ;    rxwink:      Receiver wink time (default 300ms)
516 ;    rxflash:     Receiver flashtime (default 1250ms)
517 ;    debounce:    Debounce timing (default 600ms)
518 ;
519 ; None of them will update on a reload.
520 ;
521 ; How long generated tones (DTMF and MF) will be played on the channel
522 ; (in milliseconds).
523 ;
524 ; This is a global, rather than a per-channel setting. It will not be
525 ; updated on a reload.
526 ;
527 ;toneduration=100
528 ;
529 ; Whether or not to do distinctive ring detection on FXO lines:
530 ;
531 ;usedistinctiveringdetection=yes
532 ;
533 ; enable dring detection after caller ID for those countries like Australia
534 ; where the ring cadence is changed *after* the caller ID spill:
535 ;
536 ;distinctiveringaftercid=yes
537 ;
538 ; Whether or not to use caller ID:
539 ;
540 usecallerid=yes
541 ;
542 ; Type of caller ID signalling in use
543 ;     bell     = bell202 as used in US (default)
544 ;     v23      = v23 as used in the UK
545 ;     v23_jp   = v23 as used in Japan
546 ;     dtmf     = DTMF as used in Denmark, Sweden and Netherlands
547 ;     smdi     = Use SMDI for caller ID.  Requires SMDI to be enabled (usesmdi).
548 ;
549 ;cidsignalling=v23
550 ;
551 ; What signals the start of caller ID
552 ;     ring        = a ring signals the start (default)
553 ;     polarity    = polarity reversal signals the start
554 ;     polarity_IN = polarity reversal signals the start, for India,
555 ;                   for dtmf dialtone detection; using DTMF.
556 ;     (see https://wiki.asterisk.org/wiki/display/AST/Caller+ID+in+India)
557 ;     dtmf        = causes monitor loop to look for dtmf energy on the
558 ;                   incoming channel to initate cid acquisition
559 ;
560 ;cidstart=polarity
561 ;
562 ; When cidstart=dtmf, the energy level on the line used to trigger dtmf cid
563 ; acquisition. This number is compared to the average over a packet of audio
564 ; of the absolute values of 16 bit signed linear samples. The default is set
565 ; to 256. The choice of 256 is arbitrary. The value you should select should
566 ; be high enough to prevent false detections while low enough to insure that
567 ; no dtmf spills are missed.
568 ;
569 ;dtmfcidlevel=256
570 ;
571 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
572 ; (If your dialplan doesn't catch it)
573 ;
574 ;hidecallerid=yes
575 ;
576 ; Enable if you need to hide just the name and not the number for legacy PBX use.
577 ; Only applies to PRI channels.
578 ;hidecalleridname=yes
579 ;
580 ; On UK analog lines, the caller hanging up determines the end of calls.  So
581 ; Asterisk hanging up the line may or may not end a call (DAHDI could just as
582 ; easily be re-attaching to a prior incoming call that was not yet hung up).
583 ; This option changes the hangup to wait for a dialtone on the line, before
584 ; marking the line as once again available for use with outgoing calls.
585 ; Specified in milliseconds, not set by default.
586 ;waitfordialtone=1000
587 ;
588 ; For analog lines, enables Asterisk to use dialtone detection per channel
589 ; if an incoming call was hung up before it was answered.  If dialtone is
590 ; detected, the call is hung up.
591 ; no:       Disabled. (Default)
592 ; yes:      Look for dialtone for 10000 ms after answer.
593 ; <number>: Look for dialtone for the specified number of ms after answer.
594 ; always:   Look for dialtone for the entire call.  Dialtone may return
595 ;           if the far end hangs up first.
596 ;
597 ;dialtone_detect=no
598 ;
599 ; The following option enables receiving MWI on FXO lines.  The default
600 ; value is no.
601 ;       The mwimonitor can take the following values
602 ;               no - No mwimonitoring occurs. (default)
603 ;               yes - The same as specifying fsk
604 ;               fsk - the FXO line is monitored for MWI FSK spills
605 ;               fsk,rpas - the FXO line is monitored for MWI FSK spills preceded
606 ;                       by a ring pulse alert signal.
607 ;               neon - The fxo line is monitored for the presence of NEON pulses
608 ;                       indicating MWI.
609 ; When detected, an internal Asterisk MWI event is generated so that any other
610 ; part of Asterisk that cares about MWI state changes is notified, just as if
611 ; the state change came from app_voicemail.
612 ; For FSK MWI Spills, the energy level that must be seen before starting the
613 ; MWI detection process can be set with 'mwilevel'.
614 ;
615 ;mwimonitor=no
616 ;mwilevel=512
617 ;
618 ; This option is used in conjunction with mwimonitor.  This will get executed
619 ; when incoming MWI state changes.  The script is passed 2 arguments.  The
620 ; first is the corresponding mailbox, and the second is 1 or 0, indicating if
621 ; there are messages waiting or not.
622 ;
623 ;mwimonitornotify=/usr/local/bin/dahdinotify.sh
624 ;
625 ; The following keyword 'mwisendtype' enables various VMWI methods on FXS lines (if supported).
626 ; The default is to send FSK only.
627 ; The following options are available;
628 ; 'rpas' Ring Pulse Alert Signal, alerts intelligent phones that a FSK message is about to be sent.
629 ; 'lrev' Line reversed to indicate messages waiting.
630 ; 'hvdc' 90Vdc OnHook DC voltage to indicate messages waiting.
631 ; 'hvac' or 'neon' 90Vac OnHook AC voltage to light Neon bulb.
632 ; 'nofsk' Disables FSK MWI spills from being sent out.
633 ; It is feasible that multiple options can be enabled.
634 ;mwisendtype=rpas,lrev
635 ;
636 ; Whether or not to enable call waiting on internal extensions
637 ; With this set to 'yes', busy extensions will hear the call-waiting
638 ; tone, and can use hook-flash to switch between callers. The Dial()
639 ; app will not return the "BUSY" result for extensions.
640 ;
641 callwaiting=yes
642 ;
643 ; Configure the number of outstanding call waiting calls for internal ISDN
644 ; endpoints before bouncing the calls as busy.  This option is equivalent to
645 ; the callwaiting option for analog ports.
646 ; A call waiting call is a SETUP message with no B channel selected.
647 ; The default is zero to disable call waiting for ISDN endpoints.
648 ;max_call_waiting_calls=0
649 ;
650 ; Allow incoming ISDN call waiting calls.
651 ; A call waiting call is a SETUP message with no B channel selected.
652 ;allow_call_waiting_calls=no
653
654 ; Configure the ISDN span to indicate MWI for the list of mailboxes.
655 ; You can give a comma separated list of up to 8 mailboxes per span.
656 ; An empty list disables MWI.
657 ; The default is an empty list.
658 ;mwi_mailboxes=mailbox_number[@context]{,mailbox_number[@context]}
659 ;
660 ; Configure the ISDN span voicemail numbers for MWI mailboxes.  What number
661 ; to call for a user to retrieve voicemail messages.
662 ;
663 ; You can give a comma separated list of numbers.  The position of the number
664 ; corresponds to the position in mwi_mailboxes.  If a position is empty then
665 ; the last number is reused.
666 ;
667 ; For example:
668 ;  mwi_vm_numbers=700,,800,,900
669 ; is equivalent to:
670 ;  mwi_vm_numbers=700,700,800,800,900
671 ;
672 ; The default is no number.
673 ;mwi_vm_numbers=
674
675 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
676 ; available for the user)
677 ; Mostly use with FXS ports
678 ; Does nothing.  Use hidecallerid instead.
679 ;
680 ;restrictcid=no
681 ;
682 ; Whether or not to use the caller ID presentation from the Asterisk channel
683 ; for outgoing calls.
684 ; See dialplan function CALLERID(pres) for more information.
685 ; Only applies to PRI and SS7 channels.
686 ;
687 usecallingpres=yes
688 ;
689 ; Some countries (UK) have ring tones with different ring tones (ring-ring),
690 ; which means the caller ID needs to be set later on, and not just after
691 ; the first ring, as per the default (1).
692 ;
693 ;sendcalleridafter = 2
694 ;
695 ;
696 ; Support caller ID on Call Waiting
697 ;
698 callwaitingcallerid=yes
699 ;
700 ; Support three-way calling
701 ;
702 threewaycalling=yes
703 ;
704 ; For FXS ports (either direct analog or over T1/E1):
705 ;   Support flash-hook call transfer (requires three way calling)
706 ;   Also enables call parking (overrides the 'canpark' parameter)
707 ;
708 ; For digital ports using ISDN PRI protocols:
709 ;   Support switch-side transfer (called 2BCT, RLT or other names)
710 ;   This setting must be enabled on both ports involved, and the
711 ;   'facilityenable' setting must also be enabled to allow sending
712 ;   the transfer to the ISDN switch, since it sent in a FACILITY
713 ;   message.
714 ;   NOTE:  This should be disabled for NT PTMP mode.  Phones cannot
715 ;   have tromboned calls pushed down to them.
716 ;
717 transfer=yes
718 ;
719 ; Allow call parking
720 ; ('canpark=no' is overridden by 'transfer=yes')
721 ;
722 canpark=yes
723
724 ; Sets the default parking lot for call parking.
725 ; This is setable per channel.
726 ; Parkinglots are configured in features.conf
727 ;
728 ;parkinglot=plaza
729
730 ;
731 ; Support call forward variable
732 ;
733 cancallforward=yes
734 ;
735 ; Whether or not to support Call Return (*69, if your dialplan doesn't
736 ; catch this first)
737 ;
738 callreturn=yes
739 ;
740 ; Stutter dialtone support: If a mailbox is specified without a voicemail
741 ; context, then when voicemail is received in a mailbox in the default
742 ; voicemail context in voicemail.conf, taking the phone off hook will cause a
743 ; stutter dialtone instead of a normal one.
744 ;
745 ; If a mailbox is specified *with* a voicemail context, the same will result
746 ; if voicemail received in mailbox in the specified voicemail context.
747 ;
748 ; for default voicemail context, the example below is fine:
749 ;
750 ;mailbox=1234
751 ;
752 ; for any other voicemail context, the following will produce the stutter tone:
753 ;
754 ;mailbox=1234@context
755 ;
756 ; Enable echo cancellation
757 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
758 ; actually set the number of taps of cancellation.
759 ;
760 ; Note that when setting the number of taps, the number 256 does not translate
761 ; to 256 ms of echo cancellation.  echocancel=256 means 256 / 8 = 32 ms.
762 ;
763 ; Note that if any of your DAHDI cards have hardware echo cancellers,
764 ; then this setting only turns them on and off; numeric settings will
765 ; be treated as "yes". There are no special settings required for
766 ; hardware echo cancellers; when present and enabled in their kernel
767 ; modules, they take precedence over the software echo canceller compiled
768 ; into DAHDI automatically.
769 ;
770 ;
771 echocancel=yes
772 ;
773 ; Some DAHDI echo cancellers (software and hardware) support adjustable
774 ; parameters; these parameters can be supplied as additional options to
775 ; the 'echocancel' setting. Note that Asterisk does not attempt to
776 ; validate the parameters or their values, so if you supply an invalid
777 ; parameter you will not know the specific reason it failed without
778 ; checking the kernel message log for the error(s) put there by DAHDI.
779 ;
780 ;echocancel=128,param1=32,param2=0,param3=14
781 ;
782 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
783 ; the circuit path is entirely TDM.  You may, however, change this behavior
784 ; by enabling the echo canceller during pure TDM bridging below.
785 ;
786 echocancelwhenbridged=yes
787 ;
788 ; In some cases, the echo canceller doesn't train quickly enough and there
789 ; is echo at the beginning of the call.  Enabling echo training will cause
790 ; DAHDI to briefly mute the channel, send an impulse, and use the impulse
791 ; response to pre-train the echo canceller so it can start out with a much
792 ; closer idea of the actual echo.  Value may be "yes", "no", or a number of
793 ; milliseconds to delay before training (default = 400)
794 ;
795 ; WARNING:  In some cases this option can make echo worse!  If you are
796 ; trying to debug an echo problem, it is worth checking to see if your echo
797 ; is better with the option set to yes or no.  Use whatever setting gives
798 ; the best results.
799 ;
800 ; Note that these parameters do not apply to hardware echo cancellers.
801 ;
802 ;echotraining=yes
803 ;echotraining=800
804 ;
805 ; If you are having trouble with DTMF detection, you can relax the DTMF
806 ; detection parameters.  Relaxing them may make the DTMF detector more likely
807 ; to have "talkoff" where DTMF is detected when it shouldn't be.
808 ;
809 ;relaxdtmf=yes
810 ;
811 ; Hardware gain settings increase/decrease the analog volume level on a channel.
812 ;   The values are in db (decibels) and can be adjusted in 0.1 dB increments.
813 ;   A positive number increases the volume level on a channel, and a negavive
814 ;   value decreases volume level.
815 ;
816 ;   Hardware gain settings are only possible on hardware with analog ports
817 ;   because the gain is done on the analog side of the analog/digital conversion.
818 ;
819 ;   When hardware gains are disabled, Asterisk will NOT touch the gain setting
820 ;   already configured in hardware.
821 ;
822 ;   hwrxgain: Hardware receive gain for the channel (into Asterisk).
823 ;             Default: disabled
824 ;   hwtxgain: Hardware transmit gain for the channel (out of Asterisk).
825 ;             Default: disabled
826 ;
827 ;hwrxgain=disabled
828 ;hwtxgain=disabled
829 ;hwrxgain=2.0
830 ;hwtxgain=3.0
831 ;
832 ; Software gain settings digitally increase/decrease the volume level on a channel.
833 ;   The values are in db (decibels).  A positive number increases the volume
834 ;   level on a channel, and a negavive value decreases volume level.
835 ;
836 ;   Software gains work on the digital side of the analog/digital conversion
837 ;   and thus can also work with T1/E1 cards.
838 ;
839 ;   rxgain: Software receive gain for the channel (into Asterisk). Default: 0.0
840 ;   txgain: Software transmit gain for the channel (out of Asterisk).
841 ;             Default: 0.0
842 ;
843 ;   cid_rxgain: Add this gain to rxgain when Asterisk expects to receive
844 ;               a Caller ID stream.
845 ;               Default: 5.0 .
846 ;
847 ;rxgain=2.0
848 ;txgain=3.0
849 ;
850 ; Dynamic Range Compression: You can also enable dynamic range compression
851 ;   on a channel.  This will digitally amplify quiet sounds while leaving louder
852 ;   sounds untouched.  This is useful in situations where a linear gain setting
853 ;   would cause clipping.  Acceptable values are in the range of 0.0 to around
854 ;   6.0 with higher values causing more compression to be done.
855 ;
856 ;   rxdrc: dynamic range compression for the rx channel. Default: 0.0
857 ;   txdrc: dynamic range compression for the tx channel. Default: 0.0
858 ;
859 ;rxdrc=1.0
860 ;txdrc=4.0
861 ;
862 ; Logical groups can be assigned to allow outgoing roll-over.  Groups range
863 ; from 0 to 63, and multiple groups can be specified. By default the
864 ; channel is not a member of any group.
865 ;
866 ; Note that an explicit empty value for 'group' is invalid, and will not
867 ; override a previous non-empty one. The same applies to callgroup and
868 ; pickupgroup as well.
869 ;
870 group=1
871 ;
872 ; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing
873 ; and it is a member of a group which is one of your pickup groups, then
874 ; you can answer it by picking up and dialing *8#.  For simple offices, just
875 ; make these both the same.  Groups range from 0 to 63.
876 ;
877 callgroup=1
878 pickupgroup=1
879 ;
880 ; Named ring groups (a.k.a. named call groups) and named pickup groups.
881 ; If a phone is ringing and it is a member of a group which is one of your
882 ; named pickup groups, then you can answer it by picking up and dialing *8#.
883 ; For simple offices, just make these both the same.
884 ; The number of named groups is not limited.
885 ;
886 ;namedcallgroup=engineering,sales,netgroup,protgroup
887 ;namedpickupgroup=sales
888
889 ; Channel variables to be set for all calls from this channel
890 ;setvar=CHANNEL=42
891 ;setvar=ATTENDED_TRANSFER_COMPLETE_SOUND=beep   ; This channel variable will
892                                                 ; cause the given audio file to
893                                                 ; be played upon completion of
894                                                 ; an attended transfer to the
895                                                 ; target of the transfer.
896
897 ;
898 ; Specify whether the channel should be answered immediately or if the simple
899 ; switch should provide dialtone, read digits, etc.
900 ; Note: If immediate=yes the dialplan execution will always start at extension
901 ; 's' priority 1 regardless of the dialed number!
902 ;
903 ;immediate=yes
904 ;
905 ; Specify whether flash-hook transfers to 'busy' channels should complete or
906 ; return to the caller performing the transfer (default is yes).
907 ;
908 ;transfertobusy=no
909
910 ; Calls will have the party id user tag set to this string value.
911 ;
912 ;cid_tag=
913
914 ; With this set, you can automatically append the MSN of a party
915 ; to the cid_tag.  An '_' is used to separate the tag from the MSN.
916 ; Applies to ISDN spans.
917 ; Default is no.
918 ;
919 ; Table of what number is appended:
920 ;      outgoing  incoming
921 ; net  dialed    caller
922 ; cpe  caller    dialed
923 ;
924 ;append_msn_to_cid_tag=no
925
926 ; caller ID can be set to "asreceived" or a specific number if you want to
927 ; override it.  Note that "asreceived" only applies to trunk interfaces.
928 ; fullname sets just the
929 ;
930 ; fullname: sets just the name part.
931 ; cid_number: sets just the number part:
932 ;
933 ;callerid = 123456
934 ;
935 ;callerid = My Name <2564286000>
936 ; Which can also be written as:
937 ;cid_number = 2564286000
938 ;fullname = My Name
939 ;
940 ;callerid = asreceived
941 ;
942 ; should we use the caller ID from incoming call on DAHDI transfer?
943 ;
944 ;useincomingcalleridondahditransfer = yes
945 ;
946 ; Add a description for the channel which can be shown through the Asterisk
947 ; console  when executing the 'dahdi show channels' command is run.
948 ;
949 ;description=Phone located in lobby
950 ;
951 ; AMA flags affects the recording of Call Detail Records.  If specified
952 ; it may be 'default', 'omit', 'billing', or 'documentation'.
953 ;
954 ;amaflags=default
955 ;
956 ; Channels may be associated with an account code to ease
957 ; billing
958 ;
959 ;accountcode=lss0101
960 ;
961 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
962 ; basis if you have (or may have) ADSI compatible CPE equipment
963 ;
964 ;adsi=yes
965 ;
966 ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel
967 ; basis if you would like that channel to behave like an SMDI message desk.
968 ; The SMDI port specified should have already been defined in smdi.conf.  The
969 ; default port is /dev/ttyS0.
970 ;
971 ;usesmdi=yes
972 ;smdiport=/dev/ttyS0
973 ;
974 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
975 ; etc, it can be useful to perform busy detection either in an effort to
976 ; detect hangup or for detecting busies.  This enables listening for
977 ; the beep-beep busy pattern.
978 ;
979 ;busydetect=yes
980 ;
981 ; If busydetect is enabled, it is also possible to specify how many busy tones
982 ; to wait for before hanging up.  The default is 3, but it might be
983 ; safer to set to 6 or even 8.  Mind that the higher the number, the more
984 ; time that will be needed to hangup a channel, but lowers the probability
985 ; that you will get random hangups.
986 ;
987 ;busycount=6
988 ;
989 ; If busydetect is enabled, it is also possible to specify the cadence of your
990 ; busy signal.  In many countries, it is 500msec on, 500msec off.  Without
991 ; busypattern specified, we'll accept any regular sound-silence pattern that
992 ; repeats <busycount> times as a busy signal.  If you specify busypattern,
993 ; then we'll further check the length of the sound (tone) and silence, which
994 ; will further reduce the chance of a false positive.
995 ;
996 ;busypattern=500,500
997 ;
998 ; NOTE: In make menuselect, you'll find further options to tweak the busy
999 ; detector.  If your country has a busy tone with the same length tone and
1000 ; silence (as many countries do), consider enabling the
1001 ; BUSYDETECT_COMPARE_TONE_AND_SILENCE option.
1002 ;
1003 ; To further detect which hangup tone your telco provider is sending, it is
1004 ; useful to use the dahdi_monitor utility to record the audio that main/dsp.c
1005 ; is receiving after the caller hangs up.
1006 ;
1007 ; For FXS (FXO signalled) ports
1008 ;   switch the line polarity to signal the connected PBX that an outgoing
1009 ;   call was answered by the remote party.
1010 ; For FXO (FXS signalled) ports
1011 ;   watch for a polarity reversal to mark when a outgoing call is
1012 ;   answered by the remote party.
1013 ;
1014 ;answeronpolarityswitch=yes
1015 ;
1016 ; For FXS (FXO signalled) ports
1017 ;   switch the line polarity to signal the connected PBX that the current
1018 ;   call was "hung up" by the remote party
1019 ; For FXO (FXS signalled) ports
1020 ;   In some countries, a polarity reversal is used to signal the disconnect of a
1021 ;   phone line.  If the hanguponpolarityswitch option is selected, the call will
1022 ;   be considered "hung up" on a polarity reversal.
1023 ;
1024 ;hanguponpolarityswitch=yes
1025 ;
1026 ; polarityonanswerdelay: minimal time period (ms) between the answer
1027 ;                        polarity switch and hangup polarity switch.
1028 ;                        (default: 600ms)
1029 ;
1030 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
1031 ; of a call through RINGING, BUSY, and ANSWERING.   If turned on, call
1032 ; progress attempts to determine answer, busy, and ringing on phone lines.
1033 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
1034 ; so don't count on it being very accurate.
1035 ;
1036 ; Few zones are supported at the time of this writing, but may be selected
1037 ; with "progzone".
1038 ;
1039 ; progzone also affects the pattern used for buzydetect (unless
1040 ; busypattern is set explicitly). The possible values are:
1041 ;   us (default)
1042 ;   ca (alias for 'us')
1043 ;   cr (Costa Rica)
1044 ;   br (Brazil, alias for 'cr')
1045 ;   uk
1046 ;
1047 ; This feature can also easily detect false hangups. The symptoms of this is
1048 ; being disconnected in the middle of a call for no reason.
1049 ;
1050 ;callprogress=yes
1051 ;progzone=uk
1052 ;
1053 ; Set the tonezone. Equivalent of the defaultzone settings in
1054 ; /etc/dahdi/system.conf. This sets the tone zone by number.
1055 ; Note that you'd still need to load tonezones (loadzone in
1056 ; /etc/dahdi/system.conf).
1057 ; The default is -1: not to set anything.
1058 ;tonezone = 0 ; 0 is US
1059 ;
1060 ; FXO (FXS signalled) devices must have a timeout to determine if there was a
1061 ; hangup before the line was answered.  This value can be tweaked to shorten
1062 ; how long it takes before DAHDI considers a non-ringing line to have hungup.
1063 ;
1064 ; ringtimeout will not update on a reload.
1065 ;
1066 ;ringtimeout=8000
1067 ;
1068 ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
1069 ; Pulse digits from phones (FXS devices, FXO signalling) are always
1070 ; detected.
1071 ;
1072 ;pulsedial=yes
1073 ;
1074 ; For fax detection, uncomment one of the following lines.  The default is *OFF*
1075 ;
1076 ;faxdetect=both
1077 ;faxdetect=incoming
1078 ;faxdetect=outgoing
1079 ;faxdetect=no
1080 ;
1081 ; When 'faxdetect' is used, one could use 'faxbuffers' to configure the DAHDI
1082 ; transmit buffer policy.  The default is *OFF*.  When this configuration
1083 ; option is used, the faxbuffer policy will be used for the life of the call
1084 ; after a fax tone is detected.  The faxbuffer policy is reverted after the
1085 ; call is torn down.  The sample below will result in 6 buffers and a full
1086 ; buffer policy.
1087 ;
1088 ;faxbuffers=>6,full
1089 ;
1090 ; Configure the default number of DAHDI buffers and the transmit policy to use.
1091 ; This can be used to eliminate data drops when scheduling jitter prevents
1092 ; Asterisk from writing to a DAHDI channel regularly. Most users will probably
1093 ; want "faxbuffers" instead of "buffers".
1094 ;
1095 ; The policies are:
1096 ; immediate - DAHDI will immediately start sending the data to the hardware after
1097 ;             Asterisk writes to the channel. This is the default mode. It
1098 ;             introduces the least amount of latency but has an increased chance for
1099 ;             hardware under runs if Asterisk is not able to keep the DAHDI write
1100 ;             queue from going empty.
1101 ; half      - DAHDI will wait until half of the configured buffers are full before
1102 ;             starting to transmit. This adds latency to the audio but reduces
1103 ;             the chance of under runs. Essentially, this is like an in-kernel jitter
1104 ;             buffer.
1105 ; full      - DAHDI will not start transmitting until all buffers are full.
1106 ;             Introduces the most amount of latency and is susceptible to over
1107 ;             runs from the Asterisk process.
1108 ;
1109 ; The receive policy is never changed. DAHDI will always pass up audio as soon
1110 ; as possible.
1111 ;
1112 ; The default number of buffers is 4 (from jitterbuffers) and the default policy
1113 ; is immediate.
1114 ;
1115 ;buffers=4,immediate
1116 ;
1117 ; This option specifies what to do when the channel's bridged peer puts the
1118 ; ISDN channel on hold.  Settable per logical ISDN span.
1119 ; moh:          Generate music-on-hold to the remote party.
1120 ; notify:       Send hold notification signaling to the remote party.
1121 ;               For ETSI PTP and ETSI PTMP NT links.
1122 ;               (The notify setting deprecates the mohinterpret=passthrough setting.)
1123 ; hold:         Use HOLD/RETRIEVE signaling to release the B channel while on hold.
1124 ;               For ETSI PTMP TE links.
1125 ;
1126 ;moh_signaling=moh
1127 ;
1128 ; This option specifies a preference for which music on hold class this channel
1129 ; should listen to when put on hold if the music class has not been set on the
1130 ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
1131 ; channel putting this one on hold did not suggest a music class.
1132 ;
1133 ; This option may be set globally or on a per-channel basis.
1134 ;
1135 ;mohinterpret=default
1136 ;
1137 ; This option specifies which music on hold class to suggest to the peer channel
1138 ; when this channel places the peer on hold.  This option may be set globally,
1139 ; or on a per-channel basis.
1140 ;
1141 ;mohsuggest=default
1142 ;
1143 ; PRI channels can have an idle extension and a minunused number.  So long as
1144 ; at least "minunused" channels are idle, chan_dahdi will try to call "idledial"
1145 ; on them, and then dump them into the PBX in the "idleext" extension (which
1146 ; is of the form exten@context).  When channels are needed the "idle" calls
1147 ; are disconnected (so long as there are at least "minidle" calls still
1148 ; running, of course) to make more channels available.  The primary use of
1149 ; this is to create a dynamic service, where idle channels are bundled through
1150 ; multilink PPP, thus more efficiently utilizing combined voice/data services
1151 ; than conventional fixed mappings/muxings.
1152 ;
1153 ; Those settings cannot be changed on reload.
1154 ;
1155 ;idledial=6999
1156 ;idleext=6999@dialout
1157 ;minunused=2
1158 ;minidle=1
1159 ;
1160 ;
1161 ; ignore_failed_channels: Continue even if some channels failed to configure.
1162 ; False by default, as if even a single channel failed to configure, it might
1163 ; mean other channels are misplaced and having them work may not be a good
1164 ; idea. If enabled (set to true), chan_dahdi will nevertheless attempt to
1165 ; configure other channels rather than giving up. This normally makes sense
1166 ; only if you use names (<subdir>!<number>) for DAHDI channels.
1167 ;ignore_failed_channels = true
1168 ;
1169 ; Configure jitter buffers in DAHDI (each one is 20ms, default is 4)
1170 ; This is set globally, rather than per-channel.
1171 ;
1172 ;jitterbuffers=4
1173 ;
1174 ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
1175 ; jbenable = yes              ; Enables the use of a jitterbuffer on the receiving side of a
1176                               ; DAHDI channel. Defaults to "no". An enabled jitterbuffer will
1177                               ; be used only if the sending side can create and the receiving
1178                               ; side can not accept jitter. The DAHDI channel can't accept jitter,
1179                               ; thus an enabled jitterbuffer on the receive DAHDI side will always
1180                               ; be used if the sending side can create jitter.
1181
1182 ; jbmaxsize = 200             ; Max length of the jitterbuffer in milliseconds.
1183
1184 ; jbresyncthreshold = 1000    ; Jump in the frame timestamps over which the jitterbuffer is
1185                               ; resynchronized. Useful to improve the quality of the voice, with
1186                               ; big jumps in/broken timestamps, usually sent from exotic devices
1187                               ; and programs. Defaults to 1000.
1188
1189 ; jbimpl = fixed              ; Jitterbuffer implementation, used on the receiving side of a DAHDI
1190                               ; channel. Two implementations are currently available - "fixed"
1191                               ; (with size always equals to jbmax-size) and "adaptive" (with
1192                               ; variable size, actually the new jb of IAX2). Defaults to fixed.
1193
1194 ; jbtargetextra = 40          ; This option only affects the jb when 'jbimpl = adaptive' is set.
1195                               ; The option represents the number of milliseconds by which the new
1196                               ; jitter buffer will pad its size. the default is 40, so without
1197                               ; modification, the new jitter buffer will set its size to the jitter
1198                               ; value plus 40 milliseconds. increasing this value may help if your
1199                               ; network normally has low jitter, but occasionally has spikes.
1200
1201 ; jblog = no                  ; Enables jitterbuffer frame logging. Defaults to "no".
1202 ;-----------------------------------------------------------------------------------
1203 ;
1204 ; You can define your own custom ring cadences here.  You can define up to 8
1205 ; pairs.  If the silence is negative, it indicates where the caller ID spill is
1206 ; to be placed.  Also, if you define any custom cadences, the default cadences
1207 ; will be turned off.
1208 ;
1209 ; This setting is global, rather than per-channel. It will not update on
1210 ; a reload.
1211 ;
1212 ; Syntax is:  cadence=ring,silence[,ring,silence[...]]
1213 ;
1214 ; These are the default cadences:
1215 ;
1216 ;cadence=125,125,2000,-4000
1217 ;cadence=250,250,500,1000,250,250,500,-4000
1218 ;cadence=125,125,125,125,125,-4000
1219 ;cadence=1000,500,2500,-5000
1220 ;
1221 ; Each channel consists of the channel number or range.  It inherits the
1222 ; parameters that were specified above its declaration.
1223 ;
1224 ;
1225 ;callerid="Green Phone"<(256) 428-6121>
1226 ;description=Reception Phone                    ; add a description for 'dahdi show channels'
1227 ;channel => 1
1228 ;callerid="Black Phone"<(256) 428-6122>
1229 ;description=Courtesy Phone
1230 ;channel => 2
1231 ;callerid="CallerID Phone" <(630) 372-1564>
1232 ;description=                                   ; reset the description for following channels
1233 ;channel => 3
1234 ;callerid="Pac Tel Phone" <(256) 428-6124>
1235 ;channel => 4
1236 ;callerid="Uniden Dead" <(256) 428-6125>
1237 ;channel => 5
1238 ;callerid="Cortelco 2500" <(256) 428-6126>
1239 ;channel => 6
1240 ;callerid="Main TA 750" <(256) 428-6127>
1241 ;channel => 44
1242 ;
1243 ; For example, maybe we have some other channels which start out in a
1244 ; different context and use E & M signalling instead.
1245 ;
1246 ;context=remote
1247 ;signaling=em
1248 ;channel => 15
1249 ;channel => 16
1250
1251 ;signalling=em_w
1252 ;
1253 ; All those in group 0 I'll use for outgoing calls
1254 ;
1255 ; Strip most significant digit (9) before sending
1256 ;
1257 ;stripmsd=1
1258 ;callerid=asreceived
1259 ;group=0
1260 ;signalling=fxs_ls
1261 ;channel => 45
1262
1263 ;signalling=fxo_ls
1264 ;group=1
1265 ;callerid="Joe Schmoe" <(256) 428-6131>
1266 ;channel => 25
1267 ;callerid="Megan May" <(256) 428-6132>
1268 ;channel => 26
1269 ;callerid="Suzy Queue" <(256) 428-6233>
1270 ;channel => 27
1271 ;callerid="Larry Moe" <(256) 428-6234>
1272 ;channel => 28
1273 ;
1274 ; Sample PRI (CPE) config:  Specify the switchtype, the signalling as either
1275 ; pri_cpe or pri_net for CPE or Network termination, and generally you will
1276 ; want to create a single "group" for all channels of the PRI.
1277 ;
1278 ; switchtype cannot be changed on a reload.
1279 ;
1280 ; switchtype = national
1281 ; signalling = pri_cpe
1282 ; group = 2
1283 ; channel => 1-23
1284 ;
1285 ; Alternatively, the number of the channel may be replaced with a relative
1286 ; path to a device file under /dev/dahdi . The final element of that file
1287 ; must be a number, though. The directory separator is '!', as we can't
1288 ; use '/' in a dial string. So if we have
1289 ;
1290 ;   /dev/dahdi/span-name/pstn/00/1
1291 ;   /dev/dahdi/span-name/pstn/00/2
1292 ;   /dev/dahdi/span-name/pstn/00/3
1293 ;   /dev/dahdi/span-name/pstn/00/4
1294 ;
1295 ; we could use:
1296 ;channel => span-name!pstn!00!1-4
1297 ;
1298 ; or:
1299 ;channel => span-name!pstn!00!1,2,3,4
1300 ;
1301 ; See also ignore_failed_channels above.
1302
1303 ;  Used for distinctive ring support for x100p.
1304 ;  You can see the dringX patterns is to set any one of the dringXcontext fields
1305 ;  and they will be printed on the console when an inbound call comes in.
1306 ;
1307 ;  dringXrange is used to change the acceptable ranges for "tone offsets".  Defaults to 10.
1308 ;  Note: a range of 0 is NOT what you might expect - it instead forces it to the default.
1309 ;  A range of -1 will force it to always match.
1310 ;  Anything lower than -1 would presumably cause it to never match.
1311 ;
1312 ;dring1=95,0,0
1313 ;dring1context=internal1
1314 ;dring1range=10
1315 ;dring2=325,95,0
1316 ;dring2context=internal2
1317 ;dring2range=10
1318 ; If no pattern is matched here is where we go.
1319 ;context=default
1320 ;channel => 1
1321
1322 ; AMI alarm event reporting
1323 ;reportalarms=channels
1324 ;Possible values are:
1325 ;channels - report each channel alarms (current behavior, default for backward compatibility)
1326 ;spans - report an "SpanAlarm" event when the span of any configured channel is alarmed
1327 ;all - report channel and span alarms (aggregated behavior)
1328 ;none - do not report any alarms.
1329
1330 ; ---------------- Options for use with signalling=ss7 -----------------
1331 ; None of them can be changed by a reload.
1332 ;
1333 ; Variant of SS7 signalling:
1334 ; Options are itu and ansi
1335 ;ss7type = itu
1336
1337 ; SS7 Called Nature of Address Indicator
1338 ;
1339 ; unknown:        Unknown
1340 ; subscriber:     Subscriber
1341 ; national:       National
1342 ; international:  International
1343 ; dynamic:        Dynamically selects the appropriate dialplan
1344 ;
1345 ;ss7_called_nai=dynamic
1346 ;
1347 ; SS7 Calling Nature of Address Indicator
1348 ;
1349 ; unknown:        Unknown
1350 ; subscriber:     Subscriber
1351 ; national:       National
1352 ; international:  International
1353 ; dynamic:        Dynamically selects the appropriate dialplan
1354 ;
1355 ;ss7_calling_nai=dynamic
1356 ;
1357 ;
1358 ; sample 1 for Germany
1359 ;ss7_internationalprefix = 00
1360 ;ss7_nationalprefix = 0
1361 ;ss7_subscriberprefix =
1362 ;ss7_unknownprefix =
1363 ;
1364
1365 ; This option is used to disable automatic sending of ACM when the call is started
1366 ; in the dialplan.  If you do use this option, you will need to use the Proceeding()
1367 ; application in the dialplan to send ACM.
1368 ;ss7_explictacm=yes
1369
1370 ; All settings apply to linkset 1
1371 ;linkset = 1
1372
1373 ; Point code of the linkset.  For ITU, this is the decimal number
1374 ; format of the point code.  For ANSI, this can either be in decimal
1375 ; number format or in the xxx-xxx-xxx format
1376 ;pointcode = 1
1377
1378 ; Point code of node adjacent to this signalling link (Possibly the STP between you and
1379 ; your destination).  Point code format follows the same rules as above.
1380 ;adjpointcode = 2
1381
1382 ; Default point code that you would like to assign to outgoing messages (in case of
1383 ; routing through STPs, or using A links).  Point code format follows the same rules
1384 ; as above.
1385 ;defaultdpc = 3
1386
1387 ; Begin CIC (Circuit indication codes) count with this number
1388 ;cicbeginswith = 1
1389
1390 ; What the MTP3 network indicator bits should be set to.  Choices are
1391 ; national, national_spare, international, international_spare
1392 ;networkindicator=international
1393
1394 ; First signalling channel
1395 ;sigchan = 48
1396
1397 ; Additional signalling channel for this linkset (So you can have a linkset
1398 ; with two signalling links in it).  It seems like a silly way to do it, but
1399 ; for linksets with multiple signalling links, you add an additional sigchan
1400 ; line for every additional signalling link on the linkset.
1401 ;sigchan = 96
1402
1403 ; Channels to associate with CICs on this linkset
1404 ;channel = 25-47
1405 ;
1406 ; For more information on setting up SS7, see the README file in libss7 or
1407 ; https://wiki.asterisk.org/wiki/display/AST/Signaling+System+Number+7
1408 ; ----------------- SS7 Options ----------------------------------------
1409
1410 ; ---------------- Options for use with signalling=mfcr2 --------------
1411
1412 ; MFC-R2 signaling has lots of variants from country to country and even sometimes
1413 ; minor variants inside the same country. The only mandatory parameters here are:
1414 ; mfcr2_variant, mfcr2_max_ani and mfcr2_max_dnis.
1415 ; IT IS RECOMMENDED that you leave the default values (leaving it commented) for the 
1416 ; other parameters unless you have problems or you have been instructed to change some 
1417 ; parameter. OpenR2 library uses the mfcr2_variant parameter to try to determine the 
1418 ; best defaults for your country, also refer to the OpenR2 package directory 
1419 ; doc/asterisk/ where you can find sample configurations for some countries. If you 
1420 ; want to contribute your configs for a particular country send them to the e-mail 
1421 ; of the primary OpenR2 developer that you can find in the AUTHORS file of the OpenR2 package
1422
1423 ; MFC/R2 variant. This depends on the OpenR2 supported variants
1424 ; A list of values can be found by executing the openr2 command r2test -l
1425 ; some valid values are:
1426 ; ar (Argentina)
1427 ; br (Brazil)
1428 ; mx (Mexico)
1429 ; ph (Philippines)
1430 ; itu (per ITU spec)
1431 ; mfcr2_variant=mx
1432
1433 ; Max amount of ANI to ask for
1434 ; mfcr2_max_ani=10
1435
1436 ; Max amount of DNIS to ask for
1437 ; mfcr2_max_dnis=4
1438
1439 ; whether or not to get the ANI before getting DNIS.
1440 ; some telcos require ANI first some others do not care
1441 ; if this go wrong, change this value
1442 ; mfcr2_get_ani_first=no
1443
1444 ; Caller Category to send
1445 ; national_subscriber
1446 ; national_priority_subscriber
1447 ; international_subscriber
1448 ; international_priority_subscriber
1449 ; collect_call
1450 ; usually national_subscriber works just fine
1451 ; you can change this setting from the dialplan
1452 ; by setting the variable MFCR2_CATEGORY
1453 ; (remember to set _MFCR2_CATEGORY from originating channels)
1454 ; MFCR2_CATEGORY will also be a variable available in your context
1455 ; on incoming calls set to the value received from the far end
1456 ; mfcr2_category=national_subscriber
1457
1458 ; Call logging is stored at the Asterisk
1459 ; logging directory specified in asterisk.conf
1460 ; plus mfcr2/<whatever you put here>
1461 ; if you specify 'span1' here and asterisk.conf has
1462 ; as logging directory /var/log/asterisk then the full
1463 ; path to your MFC/R2 call logs will be /var/log/asterisk/mfcr2/span1
1464 ; (the directory will be automatically created if not present already)
1465 ; remember to set mfcr2_call_files=yes
1466 ; mfcr2_logdir=span1
1467
1468 ; whether or not to drop call files into mfcr2_logdir
1469 ; mfcr2_call_files=yes|no
1470
1471 ; MFC/R2 valid logging values are: all,error,warning,debug,notice,cas,mf,stack,nothing
1472 ; error,warning,debug and notice are self-descriptive
1473 ; 'cas' is for logging ABCD CAS tx and rx
1474 ; 'mf' is for logging of the Multi Frequency tones
1475 ; 'stack' is for very verbose output of the channel and context call stack, only useful
1476 ; if you are debugging a crash or want to learn how the library works. The stack logging
1477 ; will be only enabled if the openr2 library was compiled with -DOR2_TRACE_STACKS
1478 ; You can mix up values, like: loglevel=error,debug,mf to log just error, debug and
1479 ; multi frequency messages
1480 ; 'all' is a special value to log all the activity
1481 ; 'nothing' is a clean-up value, in case you want to not log any activity for
1482 ; a channel or group of channels
1483 ; BE AWARE that the level of output logged will ALSO depend on
1484 ; the value you have in logger.conf, if you disable output in logger.conf
1485 ; then it does not matter you specify 'all' here, nothing will be logged
1486 ; so logger.conf has the last word on what is going to be logged
1487 ; mfcr2_logging=all
1488
1489 ; MFC/R2 value in milliseconds for the MF timeout. Any negative value
1490 ; means 'default', smaller values than 500ms are not recommended
1491 ; and can cause malfunctioning. If you experience protocol error
1492 ; due to MF timeout try incrementing this value in 500ms steps
1493 ; mfcr2_mfback_timeout=-1
1494
1495 ; MFC/R2 value in milliseconds for the metering pulse timeout.
1496 ; Metering pulses are sent by some telcos for some R2 variants
1497 ; during a call presumably for billing purposes to indicate costs,
1498 ; however this pulses use the same signal that is used to indicate
1499 ; call hangup, therefore a timeout is sometimes required to distinguish
1500 ; between a *real* hangup and a billing pulse that should not
1501 ; last more than 500ms, If you experience call drops after some
1502 ; minutes of being stablished try setting a value of some ms here,
1503 ; values greater than 500ms are not recommended.
1504 ; BE AWARE that choosing the proper protocol mfcr2_variant parameter
1505 ; implicitly sets a good recommended value for this timer, use this
1506 ; parameter only when you *really* want to override the default, otherwise
1507 ; just comment out this value or put a -1
1508 ; Any negative value means 'default'.
1509 ; mfcr2_metering_pulse_timeout=-1
1510
1511 ; Brazil uses a special calling party category for collect calls (llamadas por cobrar)
1512 ; instead of using the operator (as in Mexico). The R2 spec in Brazil says a special GB tone
1513 ; should be used to reject collect calls. If you want to ALLOW collect calls specify 'yes',
1514 ; if you want to BLOCK collect calls then say 'no'. Default is to block collect calls.
1515 ; (see also 'mfcr2_double_answer')
1516 ; mfcr2_allow_collect_calls=no
1517
1518 ; This feature is related but independent of mfcr2_allow_collect_calls
1519 ; Some PBX's require a double-answer process to block collect calls, if
1520 ; you ever have problems blocking collect calls using Group B signals (mfcr2_allow_collect_calls=no)
1521 ; then you may want to try with mfcr2_double_answer=yes, this will cause that every answer signal
1522 ; is changed by answer->clear back->answer (sort of a flash)
1523 ; (see also 'mfcr2_allow_collect_calls')
1524 ; mfcr2_double_answer=no
1525
1526 ; This feature allows to skip the use of Group B/II signals and go directly
1527 ; to the accepted state for incoming calls
1528 ; mfcr2_immediate_accept=no
1529
1530 ; You most likely dont need this feature. Default is yes.
1531 ; When this is set to yes, all calls that are offered (incoming calls) which
1532 ; DNIS is valid (exists in extensions.conf) and pass collect call validation
1533 ; will be accepted with a Group B tone (either call with charge or not, depending on mfcr2_charge_calls)
1534 ; with this set to 'no' then the call will NOT be accepted on offered, and the call will start its
1535 ; execution in extensions.conf without being accepted until the channel is answered (either with Answer() or
1536 ; any other application resulting in the channel being answered).
1537 ; This can be set to 'no' if your telco or PBX needs the hangup cause to be set accurately
1538 ; when this option is set to no you must explicitly accept the call with DAHDIAcceptR2Call
1539 ; or implicitly through the Answer() application.
1540 ; mfcr2_accept_on_offer=yes
1541
1542 ; Skip request of calling party category and ANI
1543 ; you need openr2 >= 1.2.0 to use this feature
1544 ; mfcr2_skip_category=no
1545
1546 ; WARNING: advanced users only! I really mean it
1547 ; this parameter is commented by default because
1548 ; YOU DON'T NEED IT UNLESS YOU REALLY GROK MFC/R2
1549 ; READ COMMENTS on doc/r2proto.conf in openr2 package
1550 ; for more info
1551 ; mfcr2_advanced_protocol_file=/path/to/r2proto.conf
1552
1553 ; Brazil use a special signal to force the release of the line (hangup) from the
1554 ; backward perspective. When mfcr2_forced_release=no, the normal clear back signal
1555 ; will be sent on hangup, which is OK for all mfcr2 variants I know of, except for
1556 ; Brazilian variant, where the central will leave the line up for several seconds (30, 60)
1557 ; which sometimes is not what people really want. When mfcr2_forced_release=yes, a different
1558 ; signal will be sent to hangup the call indicating that the line should be released immediately
1559 ; mfcr2_forced_release=no
1560
1561 ; Whether or not report to the other end 'accept call with charge'
1562 ; This setting has no effect with most telecos, usually is safe
1563 ; leave the default (yes), but once in a while when interconnecting with
1564 ; old PBXs this may be useful.
1565 ; Concretely this affects the Group B signal used to accept calls
1566 ; The application DAHDIAcceptR2Call can also be used to decide this
1567 ; in the dial plan in a per-call basis instead of doing it here for all calls
1568 ; mfcr2_charge_calls=yes
1569
1570 ; ---------------- END of options to be used with signalling=mfcr2
1571
1572 ; Configuration Sections
1573 ; ~~~~~~~~~~~~~~~~~~~~~~
1574 ; You can also configure channels in a separate chan_dahdi.conf section. In
1575 ; this case the keyword 'channel' is not used. Instead the keyword
1576 ; 'dahdichan' is used (as in users.conf) - configuration is only processed
1577 ; in a section where the keyword dahdichan is used. It will only be
1578 ; processed in the end of the section. Thus the following section:
1579 ;
1580 ;[phones]
1581 ;echocancel = 64
1582 ;dahdichan = 1-8
1583 ;group = 1
1584 ;
1585 ; Is somewhat equivalent to the following snippet in the section
1586 ; [channels]:
1587 ;
1588 ;echocancel = 64
1589 ;group = 1
1590 ;channel => 1-8
1591 ;
1592 ; When starting a new section almost all of the configuration values are
1593 ; copied from their values at the end of the section [channels] in
1594 ; chan_dahdi.conf and [general] in users.conf - one section's configuration
1595 ; does not affect another one's.
1596 ;
1597 ; Instead of letting common configuration values "slide through" you can
1598 ; use configuration templates to easily keep the common part in one
1599 ; place and override where needed.
1600 ;
1601 ;[phones](!)
1602 ;echocancel = yes
1603 ;group = 0,4
1604 ;callgroup = 3
1605 ;pickupgroup = 3
1606 ;threewaycalling = yes
1607 ;transfer = yes
1608 ;context = phones
1609 ;faxdetect = incoming
1610 ;
1611 ;[phone-1](phones)
1612 ;dahdichan = 1
1613 ;callerid = My Name <501>
1614 ;mailbox = 501@mailboxes
1615 ;
1616 ;
1617 ;[fax](phones)
1618 ;dahdichan = 2
1619 ;faxdetect = no
1620 ;context = fax
1621 ;
1622 ;[phone-3](phones)
1623 ;dahdichan = 3
1624 ;pickupgroup = 3,4