Debian Codegraph @

configs/samples/chan_dahdi.conf.sample

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