2 ; DAHDI Telephony Configuration file
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).
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.
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.
22 ; Trunk groups are used for NFAS connections.
24 ; Group: Defines a trunk group.
25 ; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
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.
32 ;trunkgroup => 1,24,48
35 ; Spanmap: Associates a span with a trunk group
36 ; spanmap => <dahdispan>,<trunkgroup>[,<logicalspan>]
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.
54 ; Context for incoming calls. Defaults to 'default'
58 ; Switchtype: Only used for PRI.
60 ; national: National ISDN 2 (default)
61 ; dms100: Nortel DMS100
64 ; euroisdn: EuroISDN (common in Europe)
65 ; ni1: Old National ISDN 1
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.
78 ; Some switches (AT&T especially) require network specific facility IE.
79 ; Supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
81 ; nsf cannot be changed on a reload.
85 ;service_message_support=yes
86 ; Enable service message support for channel. Must be set after switchtype.
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.
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'.
100 ; private: Private ISDN
102 ; national: National ISDN
103 ; international: International ISDN
104 ; dynamic: Dynamically selects the appropriate dialplan using the
106 ; redundant: Same as dynamic, except that the underlying number is not
107 ; changed (not common)
109 ; pridialplan cannot be changed on reload.
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.
118 ; private: Private 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
125 ; redundant: Same as dynamic, except that the underlying number is not
126 ; changed (not common)
128 ; prilocaldialplan cannot be changed on reload.
129 ;prilocaldialplan=national
131 ; PRI Connected Line Dialplan: Sets the connected party number's numbering plan.
134 ; private: Private 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
141 ; redundant: Same as dynamic, except that the underlying number is not
142 ; changed (not common)
144 ; pricpndialplan cannot be changed on reload.
145 ;pricpndialplan=from_channel
147 ; pridialplan may be also set at dialtime, by prefixing the dialed number with
148 ; one of the following letters:
152 ; L - Local (Net Specific)
155 ; R - Reserved (should probably never be used but is included for completeness)
157 ; Additionally, you may also set the following NPI bits (also by prefixing the
158 ; dialed string with one of the following letters):
160 ; e - E.163/E.164 (ISDN/telephony)
165 ; r - Reserved (should probably never be used but is included for completeness)
167 ; You may also set the prilocaldialplan in the same way, but by prefixing the
168 ; Caller*ID Number rather than the dialed number.
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.
175 ; PRI caller ID prefixes based on the given TON/NPI (dialplan)
176 ; This is especially needed for EuroISDN E1-PRIs
178 ; None of the prefix settings can be changed on reload.
180 ; sample 1 for Germany
181 ;internationalprefix = 00
184 ;privateprefix = 07115678
187 ; sample 2 for Germany
188 ;internationalprefix = +
189 ;nationalprefix = +49
190 ;localprefix = +49711
191 ;privateprefix = +497115678
194 ; PRI resetinterval: sets the time in seconds between restart of unused
195 ; B channels; defaults to 'never'.
197 ;resetinterval = 3600
199 ; Overlap dialing mode (sending overlap digits)
200 ; Cannot be changed on a reload.
202 ; incoming: incoming direction only
203 ; outgoing: outgoing direction only
204 ; no: neither direction
205 ; yes or both: both directions
209 ; Send/receive ISDN display IE options. The display options are a comma separated
210 ; list of the following options:
212 ; block: Do not pass display text data.
213 ; Q.SIG: Default for send/receive.
214 ; ETSI CPE: Default for send.
215 ; name_initial: Use display text in SETUP/CONNECT messages as the party name.
216 ; Default for all other modes.
217 ; name_update: Use display text in other messages (NOTIFY/FACILITY) for COLP name
219 ; name: Combined name_initial and name_update options.
220 ; text: Pass any unused display text data as an arbitrary display message
221 ; during a call. Sent text goes out in an INFORMATION message.
223 ; * Default is an empty string for legacy behavior.
224 ; * The name options are not recommended for Q.SIG since Q.SIG already
226 ; * The send block is the only recommended setting for CPE mode since Q.931 uses
227 ; the display IE only in the network to user direction.
229 ; display_send and display_receive cannot be changed on reload.
234 ; Allow sending an ISDN Malicious Caller ID (MCID) request on this span.
239 ; Send ISDN date/time IE in CONNECT message option. Only valid on NT spans.
241 ; no: Do not send date/time IE in CONNECT message.
242 ; date: Send date only.
243 ; date_hh Send date and hour.
244 ; date_hhmm Send date, hour, and minute.
245 ; date_hhmmss Send date, hour, minute, and second.
247 ; Default is an empty string which lets libpri pick the default
248 ; date/time IE send policy.
252 ; Send ISDN conected line information.
254 ; block: Do not send any connected line information.
255 ; connect: Send connected line information on initial connect.
256 ; update: Same as connect but also send any updates during a call.
257 ; Updates happen if the call is transferred. (Default)
261 ; Allow inband audio (progress) when a call is DISCONNECTed by the far end of a PRI
263 ;inbanddisconnect=yes
265 ; Allow a held call to be transferred to the active call on disconnect.
266 ; This is useful on BRI PTMP NT lines where an ISDN phone can simulate the
267 ; transfer feature of an analog phone.
269 ;hold_disconnect_transfer=yes
271 ; BRI PTMP layer 2 persistence.
272 ; You should normally not need to set this option.
273 ; You may need to set this option if your telco brings layer 1 down when
275 ; <blank>: Use libpri default.
276 ; keep_up: Bring layer 2 back up if peer takes it down.
277 ; leave_down: Leave layer 2 down if peer takes it down. (Libpri default)
278 ; (Layer 2 will be brought back up for an outgoing call.)
280 ;layer2_persistence=leave_down
282 ; PRI Out of band indications.
283 ; Enable this to report Busy and Congestion on a PRI using out-of-band
284 ; notification. Inband indication, as used by Asterisk doesn't seem to work
287 ; outofband: Signal Busy/Congestion out of band with RELEASE/DISCONNECT
288 ; inband: Signal Busy/Congestion using in-band tones (default)
290 ; priindication cannot be changed on a reload.
292 ;priindication = outofband
294 ; If you need to override the existing channels selection routine and force all
295 ; PRI channels to be marked as exclusively selected, set this to yes.
297 ; priexclusive cannot be changed on a reload.
302 ; If you need to use the logical channel mapping with your Q.SIG PRI instead
303 ; of the physical mapping you must use the qsigchannelmapping option.
305 ; logical: Use the logical channel mapping
306 ; physical: Use physical channel mapping (default)
308 ;qsigchannelmapping=logical
310 ; If you wish to ignore remote hold indications (and use MOH that is supplied over
311 ; the B channel) enable this option.
313 ;discardremoteholdretrieval=yes
316 ; All of the ISDN timers and counters that are used are configurable. Specify
317 ; the timer name, and its value (in ms for timers).
318 ; K: Layer 2 max number of outstanding unacknowledged I frames (default 7)
319 ; N200: Layer 2 max number of retransmissions of a frame (default 3)
320 ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms)
321 ; T203: Layer 2 max time without frames being exchanged (default 10000 ms)
322 ; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
323 ; T308: Wait for RELEASE acknowledge (default 4000 ms)
324 ; T309: Maintain active calls on Layer 2 disconnection (default 6000 ms)
325 ; EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
326 ; May vary in other ISDN standards (Q.931 1993 : 90000 ms)
327 ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
329 ; T-RESPONSE: Maximum time to wait for a typical APDU response. (default 4000 ms)
330 ; This is an implementation timer when the standard does not specify one.
331 ; T-ACTIVATE: Request supervision timeout. (default 10000 ms)
332 ; T-RETENTION: Maximum time to wait for user A to activate call-completion. (default 30000 ms)
333 ; Used by ETSI PTP, ETSI PTMP, and Q.SIG as the cc_offer_timer.
334 ; T-CCBS1: T-STATUS timer equivalent for CC user A status. (default 4000 ms)
335 ; T-CCBS2: Maximum time the CCBS service will be active (default 45 min in ms)
336 ; T-CCBS3: Maximum time to wait for user A to respond to user B availability. (default 20000 ms)
337 ; T-CCBS5: Network B CCBS supervision timeout. (default 60 min in ms)
338 ; T-CCBS6: Network A CCBS supervision timeout. (default 60 min in ms)
339 ; T-CCNR2: Maximum time the CCNR service will be active (default 180 min in ms)
340 ; T-CCNR5: Network B CCNR supervision timeout. (default 195 min in ms)
341 ; T-CCNR6: Network A CCNR supervision timeout. (default 195 min in ms)
342 ; CC-T1: Q.SIG CC request supervision timeout. (default 30000 ms)
343 ; CCBS-T2: Q.SIG CCBS supervision timeout. (default 60 min in ms)
344 ; CCNR-T2: Q.SIG CCNR supervision timeout. (default 195 min in ms)
345 ; CC-T3: Q.SIG CC Maximum time to wait for user A to respond to user B availability. (default 30000 ms)
347 ;pritimer => t200,1000
348 ;pritimer => t313,4000
350 ; CC PTMP recall mode:
351 ; specific - Only the CC original party A can participate in the CC callback
352 ; global - Other compatible endpoints on the PTMP line can be party A in the CC callback
354 ; cc_ptmp_recall_mode cannot be changed on a reload.
356 ;cc_ptmp_recall_mode = specific
358 ; CC Q.SIG Party A (requester) retain signaling link option
359 ; retain Require that the signaling link be retained.
360 ; release Request that the signaling link be released.
361 ; do_not_care The responder is free to choose if the signaling link will be retained.
363 ;cc_qsig_signaling_link_req = retain
365 ; CC Q.SIG Party B (responder) retain signaling link option
366 ; retain Prefer that the signaling link be retained.
367 ; release Prefer that the signaling link be released.
369 ;cc_qsig_signaling_link_rsp = retain
371 ; See ccss.conf.sample for more options. The timers described by ccss.conf.sample
372 ; are not used by ISDN for the native protocol since they are defined by the
373 ; standards and set by pritimer above.
375 ; To enable transmission of facility-based ISDN supplementary services (such
376 ; as caller name from CPE over facility), enable this option.
377 ; Cannot be changed on a reload.
379 ;facilityenable = yes
382 ; This option enables Advice of Charge pass-through between the ISDN PRI and
383 ; Asterisk. This option can be set to any combination of 's', 'd', and 'e' which
384 ; represent the different variants of Advice of Charge, AOC-S, AOC-D, and AOC-E.
385 ; Advice of Charge pass-through is currently only supported for ETSI. Since most
386 ; AOC messages are sent on facility messages, the 'facilityenable' option must
387 ; also be enabled to fully support AOC pass-through.
391 ; When this option is enabled, a hangup initiated by the ISDN PRI side of the
392 ; asterisk channel will result in the channel delaying its hangup in an
393 ; attempt to receive the final AOC-E message from its bridge. The delay
394 ; period is configured as one half the T305 timer length. If the channel
395 ; is not bridged the hangup will occur immediatly without delay.
397 ;aoce_delayhangup=yes
399 ; pritimer cannot be changed on a reload.
401 ; Signalling method. The default is "auto". Valid values:
402 ; auto: Use the current value from DAHDI.
406 ; featd: Feature Group D (The fake, Adtran style, DTMF)
407 ; featdmf: Feature Group D (The real thing, MF (domestic, US))
408 ; featdmf_ta: Feature Group D (The real thing, MF (domestic, US)) through
409 ; a Tandem Access point
410 ; featb: Feature Group B (MF (domestic, US))
411 ; fgccama: Feature Group C-CAMA (DP DNIS, MF ANI)
412 ; fgccamamf: Feature Group C-CAMA MF (MF DNIS, MF ANI)
413 ; fxs_ls: FXS (Loop Start)
414 ; fxs_gs: FXS (Ground Start)
415 ; fxs_ks: FXS (Kewl Start)
416 ; fxo_ls: FXO (Loop Start)
417 ; fxo_gs: FXO (Ground Start)
418 ; fxo_ks: FXO (Kewl Start)
419 ; pri_cpe: PRI signalling, CPE side
420 ; pri_net: PRI signalling, Network side
421 ; bri_cpe: BRI PTP signalling, CPE side
422 ; bri_net: BRI PTP signalling, Network side
423 ; bri_cpe_ptmp: BRI PTMP signalling, CPE side
424 ; bri_net_ptmp: BRI PTMP signalling, Network side
425 ; sf: SF (Inband Tone) Signalling
427 ; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF)
428 ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US))
429 ; sf_featb: SF Feature Group B (MF (domestic, US))
430 ; e911: E911 (MF) style signalling
431 ; ss7: Signalling System 7
432 ; mfcr2: MFC/R2 Signalling. To specify the country variant see 'mfcr2_variant'
434 ; The following are used for Radio interfaces:
435 ; fxs_rx: Receive audio/COR on an FXS kewlstart interface (FXO at the
437 ; fxs_tx: Transmit audio/PTT on an FXS loopstart interface (FXO at the
439 ; fxo_rx: Receive audio/COR on an FXO loopstart interface (FXS at the
441 ; fxo_tx: Transmit audio/PTT on an FXO groundstart interface (FXS at
443 ; em_rx: Receive audio/COR on an E&M interface (1-way)
444 ; em_tx: Transmit audio/PTT on an E&M interface (1-way)
445 ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface
447 ; em_rxtx: Same as em_txrx (for our dyslexic friends)
448 ; sf_rx: Receive audio/COR on an SF interface (1-way)
449 ; sf_tx: Transmit audio/PTT on an SF interface (1-way)
450 ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface
452 ; sf_rxtx: Same as sf_txrx (for our dyslexic friends)
453 ; ss7: Signalling System 7
455 ; signalling of a channel can not be changed on a reload.
459 ; If you have an outbound signalling format that is different from format
460 ; specified above (but compatible), you can specify outbound signalling format,
461 ; (see below). The 'signalling' format specified will be the inbound signalling
462 ; format. If you only specify 'signalling', then it will be the format for
463 ; both inbound and outbound.
465 ; outsignalling can only be one of:
466 ; em, em_e1, em_w, sf, sf_w, sf_featd, sf_featdmf, sf_featb, featd,
467 ; featdmf, featdmf_ta, e911, fgccama, fgccamamf
469 ; outsignalling cannot be changed on a reload.
475 ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
476 ; parameters (Will not be updated on reload):
481 ; A variety of timing parameters can be specified as well
482 ; The default values for those are "-1", which is to use the
483 ; compile-time defaults of the DAHDI kernel modules. The timing
484 ; parameters, (with the standard default from DAHDI):
486 ; prewink: Pre-wink time (default 50ms)
487 ; preflash: Pre-flash time (default 50ms)
488 ; wink: Wink time (default 150ms)
489 ; flash: Flash time (default 750ms)
490 ; start: Start time (default 1500ms)
491 ; rxwink: Receiver wink time (default 300ms)
492 ; rxflash: Receiver flashtime (default 1250ms)
493 ; debounce: Debounce timing (default 600ms)
495 ; None of them will update on a reload.
497 ; How long generated tones (DTMF and MF) will be played on the channel
500 ; This is a global, rather than a per-channel setting. It will not be
501 ; updated on a reload.
505 ; Whether or not to do distinctive ring detection on FXO lines:
507 ;usedistinctiveringdetection=yes
509 ; enable dring detection after caller ID for those countries like Australia
510 ; where the ring cadence is changed *after* the caller ID spill:
512 ;distinctiveringaftercid=yes
514 ; Whether or not to use caller ID:
518 ; Type of caller ID signalling in use
519 ; bell = bell202 as used in US (default)
520 ; v23 = v23 as used in the UK
521 ; v23_jp = v23 as used in Japan
522 ; dtmf = DTMF as used in Denmark, Sweden and Netherlands
523 ; smdi = Use SMDI for caller ID. Requires SMDI to be enabled (usesmdi).
527 ; What signals the start of caller ID
528 ; ring = a ring signals the start (default)
529 ; polarity = polarity reversal signals the start
530 ; polarity_IN = polarity reversal signals the start, for India,
531 ; for dtmf dialtone detection; using DTMF.
532 ; (see https://wiki.asterisk.org/wiki/display/AST/Caller+ID+in+India)
533 ; dtmf = causes monitor loop to look for dtmf energy on the
534 ; incoming channel to initate cid acquisition
538 ; When cidstart=dtmf, the energy level on the line used to trigger dtmf cid
539 ; acquisition. This number is compared to the average over a packet of audio
540 ; of the absolute values of 16 bit signed linear samples. The default is set
541 ; to 256. The choice of 256 is arbitrary. The value you should select should
542 ; be high enough to prevent false detections while low enough to insure that
543 ; no dtmf spills are missed.
547 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
548 ; (If your dialplan doesn't catch it)
552 ; Enable if you need to hide just the name and not the number for legacy PBX use.
553 ; Only applies to PRI channels.
554 ;hidecalleridname=yes
556 ; On UK analog lines, the caller hanging up determines the end of calls. So
557 ; Asterisk hanging up the line may or may not end a call (DAHDI could just as
558 ; easily be re-attaching to a prior incoming call that was not yet hung up).
559 ; This option changes the hangup to wait for a dialtone on the line, before
560 ; marking the line as once again available for use with outgoing calls.
563 ; For analog lines, enables Asterisk to use dialtone detection per channel
564 ; if an incoming call was hung up before it was answered. If dialtone is
565 ; detected, the call is hung up.
566 ; no: Disabled. (Default)
567 ; yes: Look for dialtone for 10000 ms after answer.
568 ; <number>: Look for dialtone for the specified number of ms after answer.
569 ; always: Look for dialtone for the entire call. Dialtone may return
570 ; if the far end hangs up first.
574 ; The following option enables receiving MWI on FXO lines. The default
576 ; The mwimonitor can take the following values
577 ; no - No mwimonitoring occurs. (default)
578 ; yes - The same as specifying fsk
579 ; fsk - the FXO line is monitored for MWI FSK spills
580 ; fsk,rpas - the FXO line is monitored for MWI FSK spills preceded
581 ; by a ring pulse alert signal.
582 ; neon - The fxo line is monitored for the presence of NEON pulses
584 ; When detected, an internal Asterisk MWI event is generated so that any other
585 ; part of Asterisk that cares about MWI state changes is notified, just as if
586 ; the state change came from app_voicemail.
587 ; For FSK MWI Spills, the energy level that must be seen before starting the
588 ; MWI detection process can be set with 'mwilevel'.
593 ; This option is used in conjunction with mwimonitor. This will get executed
594 ; when incoming MWI state changes. The script is passed 2 arguments. The
595 ; first is the corresponding mailbox, and the second is 1 or 0, indicating if
596 ; there are messages waiting or not.
598 ;mwimonitornotify=/usr/local/bin/dahdinotify.sh
600 ; The following keyword 'mwisendtype' enables various VMWI methods on FXS lines (if supported).
601 ; The default is to send FSK only.
602 ; The following options are available;
603 ; 'rpas' Ring Pulse Alert Signal, alerts intelligent phones that a FSK message is about to be sent.
604 ; 'lrev' Line reversed to indicate messages waiting.
605 ; 'hvdc' 90Vdc OnHook DC voltage to indicate messages waiting.
606 ; 'hvac' or 'neon' 90Vac OnHook AC voltage to light Neon bulb.
607 ; 'nofsk' Disables FSK MWI spills from being sent out.
608 ; It is feasible that multiple options can be enabled.
609 ;mwisendtype=rpas,lrev
611 ; Whether or not to enable call waiting on internal extensions
612 ; With this set to 'yes', busy extensions will hear the call-waiting
613 ; tone, and can use hook-flash to switch between callers. The Dial()
614 ; app will not return the "BUSY" result for extensions.
618 ; Configure the number of outstanding call waiting calls for internal ISDN
619 ; endpoints before bouncing the calls as busy. This option is equivalent to
620 ; the callwaiting option for analog ports.
621 ; A call waiting call is a SETUP message with no B channel selected.
622 ; The default is zero to disable call waiting for ISDN endpoints.
623 ;max_call_waiting_calls=0
625 ; Allow incoming ISDN call waiting calls.
626 ; A call waiting call is a SETUP message with no B channel selected.
627 ;allow_call_waiting_calls=no
629 ; Configure the ISDN span to indicate MWI for the list of mailboxes.
630 ; You can give a comma separated list of up to 8 mailboxes per span.
631 ; An empty list disables MWI.
632 ; The default is an empty list.
633 ;mwi_mailboxes=mailbox_number[@context]{,mailbox_number[@context]}
635 ; Configure the ISDN span voicemail numbers for MWI mailboxes. What number
636 ; to call for a user to retrieve voicemail messages.
638 ; You can give a comma separated list of numbers. The position of the number
639 ; corresponds to the position in mwi_mailboxes. If a position is empty then
640 ; the last number is reused.
643 ; mwi_vm_numbers=700,,800,,900
645 ; mwi_vm_numbers=700,700,800,800,900
647 ; The default is no number.
650 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
651 ; available for the user)
652 ; Mostly use with FXS ports
653 ; Does nothing. Use hidecallerid instead.
657 ; Whether or not to use the caller ID presentation from the Asterisk channel
658 ; for outgoing calls.
659 ; See dialplan function CALLERID(pres) for more information.
660 ; Only applies to PRI and SS7 channels.
664 ; Some countries (UK) have ring tones with different ring tones (ring-ring),
665 ; which means the caller ID needs to be set later on, and not just after
666 ; the first ring, as per the default (1).
668 ;sendcalleridafter = 2
671 ; Support caller ID on Call Waiting
673 callwaitingcallerid=yes
675 ; Support three-way calling
679 ; For FXS ports (either direct analog or over T1/E1):
680 ; Support flash-hook call transfer (requires three way calling)
681 ; Also enables call parking (overrides the 'canpark' parameter)
683 ; For digital ports using ISDN PRI protocols:
684 ; Support switch-side transfer (called 2BCT, RLT or other names)
685 ; This setting must be enabled on both ports involved, and the
686 ; 'facilityenable' setting must also be enabled to allow sending
687 ; the transfer to the ISDN switch, since it sent in a FACILITY
689 ; NOTE: This should be disabled for NT PTMP mode. Phones cannot
690 ; have tromboned calls pushed down to them.
695 ; ('canpark=no' is overridden by 'transfer=yes')
699 ; Sets the default parking lot for call parking.
700 ; This is setable per channel.
701 ; Parkinglots are configured in features.conf
706 ; Support call forward variable
710 ; Whether or not to support Call Return (*69, if your dialplan doesn't
715 ; Stutter dialtone support: If a mailbox is specified without a voicemail
716 ; context, then when voicemail is received in a mailbox in the default
717 ; voicemail context in voicemail.conf, taking the phone off hook will cause a
718 ; stutter dialtone instead of a normal one.
720 ; If a mailbox is specified *with* a voicemail context, the same will result
721 ; if voicemail received in mailbox in the specified voicemail context.
723 ; for default voicemail context, the example below is fine:
727 ; for any other voicemail context, the following will produce the stutter tone:
729 ;mailbox=1234@context
731 ; Enable echo cancellation
732 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
733 ; actually set the number of taps of cancellation.
735 ; Note that when setting the number of taps, the number 256 does not translate
736 ; to 256 ms of echo cancellation. echocancel=256 means 256 / 8 = 32 ms.
738 ; Note that if any of your DAHDI cards have hardware echo cancellers,
739 ; then this setting only turns them on and off; numeric settings will
740 ; be treated as "yes". There are no special settings required for
741 ; hardware echo cancellers; when present and enabled in their kernel
742 ; modules, they take precedence over the software echo canceller compiled
743 ; into DAHDI automatically.
748 ; Some DAHDI echo cancellers (software and hardware) support adjustable
749 ; parameters; these parameters can be supplied as additional options to
750 ; the 'echocancel' setting. Note that Asterisk does not attempt to
751 ; validate the parameters or their values, so if you supply an invalid
752 ; parameter you will not know the specific reason it failed without
753 ; checking the kernel message log for the error(s) put there by DAHDI.
755 ;echocancel=128,param1=32,param2=0,param3=14
757 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
758 ; the circuit path is entirely TDM. You may, however, change this behavior
759 ; by enabling the echo canceller during pure TDM bridging below.
761 echocancelwhenbridged=yes
763 ; In some cases, the echo canceller doesn't train quickly enough and there
764 ; is echo at the beginning of the call. Enabling echo training will cause
765 ; DAHDI to briefly mute the channel, send an impulse, and use the impulse
766 ; response to pre-train the echo canceller so it can start out with a much
767 ; closer idea of the actual echo. Value may be "yes", "no", or a number of
768 ; milliseconds to delay before training (default = 400)
770 ; WARNING: In some cases this option can make echo worse! If you are
771 ; trying to debug an echo problem, it is worth checking to see if your echo
772 ; is better with the option set to yes or no. Use whatever setting gives
775 ; Note that these parameters do not apply to hardware echo cancellers.
780 ; If you are having trouble with DTMF detection, you can relax the DTMF
781 ; detection parameters. Relaxing them may make the DTMF detector more likely
782 ; to have "talkoff" where DTMF is detected when it shouldn't be.
786 ; You may also set the default receive and transmit gains (in dB)
788 ; Gain Settings: increasing / decreasing the volume level on a channel.
789 ; The values are in db (decibells). A positive number
790 ; increases the volume level on a channel, and a
791 ; negavive value decreases volume level.
793 ; Dynamic Range Compression: you can also enable dynamic range compression
794 ; on a channel. This will amplify quiet sounds while leaving
795 ; louder sounds untouched. This is useful in situations where
796 ; a linear gain setting would cause clipping. Acceptable values
797 ; are in the range of 0.0 to around 6.0 with higher values
798 ; causing more compression to be done.
800 ; There are several independent gain settings:
801 ; rxgain: gain for the rx (receive - into Asterisk) channel. Default: 0.0
802 ; txgain: gain for the tx (transmit - out of Asterisk Asterisk) channel.
804 ; cid_rxgain: set the gain just for the caller ID sounds Asterisk
805 ; emits. Default: 5.0 .
806 ; rxdrc: dynamic range compression for the rx channel. Default: 0.0
807 ; txdrc: dynamic range compression for the tx channel. Default: 0.0
815 ; Logical groups can be assigned to allow outgoing roll-over. Groups range
816 ; from 0 to 63, and multiple groups can be specified. By default the
817 ; channel is not a member of any group.
819 ; Note that an explicit empty value for 'group' is invalid, and will not
820 ; override a previous non-empty one. The same applies to callgroup and
821 ; pickupgroup as well.
825 ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing
826 ; and it is a member of a group which is one of your pickup groups, then
827 ; you can answer it by picking up and dialing *8#. For simple offices, just
828 ; make these both the same. Groups range from 0 to 63.
833 ; Channel variable to be set for all calls from this channel
835 ;setvar=ATTENDED_TRANSFER_COMPLETE_SOUND=beep ; This channel variable will
836 ; cause the given audio file to
837 ; be played upon completion of
838 ; an attended transfer.
841 ; Specify whether the channel should be answered immediately or if the simple
842 ; switch should provide dialtone, read digits, etc.
843 ; Note: If immediate=yes the dialplan execution will always start at extension
844 ; 's' priority 1 regardless of the dialed number!
848 ; Specify whether flash-hook transfers to 'busy' channels should complete or
849 ; return to the caller performing the transfer (default is yes).
853 ; Calls will have the party id user tag set to this string value.
857 ; With this set, you can automatically append the MSN of a party
858 ; to the cid_tag. An '_' is used to separate the tag from the MSN.
859 ; Applies to ISDN spans.
862 ; Table of what number is appended:
867 ;append_msn_to_cid_tag=no
869 ; caller ID can be set to "asreceived" or a specific number if you want to
870 ; override it. Note that "asreceived" only applies to trunk interfaces.
871 ; fullname sets just the
873 ; fullname: sets just the name part.
874 ; cid_number: sets just the number part:
878 ;callerid = My Name <2564286000>
879 ; Which can also be written as:
880 ;cid_number = 2564286000
883 ;callerid = asreceived
885 ; should we use the caller ID from incoming call on DAHDI transfer?
887 ;useincomingcalleridondahditransfer = yes
889 ; Add a description for the channel which can be shown through the Asterisk
890 ; console when executing the 'dahdi show channels' command is run.
892 ;description=Phone located in lobby
894 ; AMA flags affects the recording of Call Detail Records. If specified
895 ; it may be 'default', 'omit', 'billing', or 'documentation'.
899 ; Channels may be associated with an account code to ease
904 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
905 ; basis if you have (or may have) ADSI compatible CPE equipment
909 ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel
910 ; basis if you would like that channel to behave like an SMDI message desk.
911 ; The SMDI port specified should have already been defined in smdi.conf. The
912 ; default port is /dev/ttyS0.
917 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
918 ; etc, it can be useful to perform busy detection either in an effort to
919 ; detect hangup or for detecting busies. This enables listening for
920 ; the beep-beep busy pattern.
924 ; If busydetect is enabled, it is also possible to specify how many busy tones
925 ; to wait for before hanging up. The default is 3, but it might be
926 ; safer to set to 6 or even 8. Mind that the higher the number, the more
927 ; time that will be needed to hangup a channel, but lowers the probability
928 ; that you will get random hangups.
932 ; If busydetect is enabled, it is also possible to specify the cadence of your
933 ; busy signal. In many countries, it is 500msec on, 500msec off. Without
934 ; busypattern specified, we'll accept any regular sound-silence pattern that
935 ; repeats <busycount> times as a busy signal. If you specify busypattern,
936 ; then we'll further check the length of the sound (tone) and silence, which
937 ; will further reduce the chance of a false positive.
941 ; NOTE: In make menuselect, you'll find further options to tweak the busy
942 ; detector. If your country has a busy tone with the same length tone and
943 ; silence (as many countries do), consider enabling the
944 ; BUSYDETECT_COMPARE_TONE_AND_SILENCE option.
946 ; To further detect which hangup tone your telco provider is sending, it is
947 ; useful to use the dahdi_monitor utility to record the audio that main/dsp.c
948 ; is receiving after the caller hangs up.
950 ; For FXS (FXO signalled) ports
951 ; switch the line polarity to signal the connected PBX that an outgoing
952 ; call was answered by the remote party.
953 ; For FXO (FXS signalled) ports
954 ; watch for a polarity reversal to mark when a outgoing call is
955 ; answered by the remote party.
957 ;answeronpolarityswitch=yes
959 ; For FXS (FXO signalled) ports
960 ; switch the line polarity to signal the connected PBX that the current
961 ; call was "hung up" by the remote party
962 ; For FXO (FXS signalled) ports
963 ; In some countries, a polarity reversal is used to signal the disconnect of a
964 ; phone line. If the hanguponpolarityswitch option is selected, the call will
965 ; be considered "hung up" on a polarity reversal.
967 ;hanguponpolarityswitch=yes
969 ; polarityonanswerdelay: minimal time period (ms) between the answer
970 ; polarity switch and hangup polarity switch.
973 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
974 ; of a call through RINGING, BUSY, and ANSWERING. If turned on, call
975 ; progress attempts to determine answer, busy, and ringing on phone lines.
976 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
977 ; so don't count on it being very accurate.
979 ; Few zones are supported at the time of this writing, but may be selected
982 ; progzone also affects the pattern used for buzydetect (unless
983 ; busypattern is set explicitly). The possible values are:
985 ; ca (alias for 'us')
987 ; br (Brazil, alias for 'cr')
990 ; This feature can also easily detect false hangups. The symptoms of this is
991 ; being disconnected in the middle of a call for no reason.
996 ; Set the tonezone. Equivalent of the defaultzone settings in
997 ; /etc/dahdi/system.conf. This sets the tone zone by number.
998 ; Note that you'd still need to load tonezones (loadzone in
999 ; /etc/dahdi/system.conf).
1000 ; The default is -1: not to set anything.
1001 ;tonezone = 0 ; 0 is US
1003 ; FXO (FXS signalled) devices must have a timeout to determine if there was a
1004 ; hangup before the line was answered. This value can be tweaked to shorten
1005 ; how long it takes before DAHDI considers a non-ringing line to have hungup.
1007 ; ringtimeout will not update on a reload.
1011 ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
1012 ; Pulse digits from phones (FXS devices, FXO signalling) are always
1017 ; For fax detection, uncomment one of the following lines. The default is *OFF*
1024 ; When 'faxdetect' is used, one could use 'faxbuffers' to configure the DAHDI
1025 ; transmit buffer policy. The default is *OFF*. When this configuration
1026 ; option is used, the faxbuffer policy will be used for the life of the call
1027 ; after a fax tone is detected. The faxbuffer policy is reverted after the
1028 ; call is torn down. The sample below will result in 6 buffers and a full
1033 ; This option specifies what to do when the channel's bridged peer puts the
1034 ; ISDN channel on hold. Settable per logical ISDN span.
1035 ; moh: Generate music-on-hold to the remote party.
1036 ; notify: Send hold notification signaling to the remote party.
1037 ; For ETSI PTP and ETSI PTMP NT links.
1038 ; (The notify setting deprecates the mohinterpret=passthrough setting.)
1039 ; hold: Use HOLD/RETRIEVE signaling to release the B channel while on hold.
1040 ; For ETSI PTMP TE links.
1044 ; This option specifies a preference for which music on hold class this channel
1045 ; should listen to when put on hold if the music class has not been set on the
1046 ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
1047 ; channel putting this one on hold did not suggest a music class.
1049 ; This option may be set globally or on a per-channel basis.
1051 ;mohinterpret=default
1053 ; This option specifies which music on hold class to suggest to the peer channel
1054 ; when this channel places the peer on hold. This option may be set globally,
1055 ; or on a per-channel basis.
1059 ; PRI channels can have an idle extension and a minunused number. So long as
1060 ; at least "minunused" channels are idle, chan_dahdi will try to call "idledial"
1061 ; on them, and then dump them into the PBX in the "idleext" extension (which
1062 ; is of the form exten@context). When channels are needed the "idle" calls
1063 ; are disconnected (so long as there are at least "minidle" calls still
1064 ; running, of course) to make more channels available. The primary use of
1065 ; this is to create a dynamic service, where idle channels are bundled through
1066 ; multilink PPP, thus more efficiently utilizing combined voice/data services
1067 ; than conventional fixed mappings/muxings.
1069 ; Those settings cannot be changed on reload.
1072 ;idleext=6999@dialout
1077 ; ignore_failed_channels: Continue even if some channels failed to configure.
1078 ; False by default, as if even a single channel failed to configure, it might
1079 ; mean other channels are misplaced and having them work may not be a good
1080 ; idea. If enabled (set to true), chan_dahdi will nevertheless attempt to
1081 ; configure other channels rather than giving up. This normally makes sense
1082 ; only if you use names (<subdir>!<number>) for DAHDI channels.
1083 ;ignore_failed_channels = true
1085 ; Configure jitter buffers in DAHDI (each one is 20ms, default is 4)
1086 ; This is set globally, rather than per-channel.
1090 ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
1091 ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
1092 ; DAHDI channel. Defaults to "no". An enabled jitterbuffer will
1093 ; be used only if the sending side can create and the receiving
1094 ; side can not accept jitter. The DAHDI channel can't accept jitter,
1095 ; thus an enabled jitterbuffer on the receive DAHDI side will always
1096 ; be used if the sending side can create jitter.
1098 ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
1100 ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
1101 ; resynchronized. Useful to improve the quality of the voice, with
1102 ; big jumps in/broken timestamps, usually sent from exotic devices
1103 ; and programs. Defaults to 1000.
1105 ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a DAHDI
1106 ; channel. Two implementations are currently available - "fixed"
1107 ; (with size always equals to jbmax-size) and "adaptive" (with
1108 ; variable size, actually the new jb of IAX2). Defaults to fixed.
1110 ; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
1111 ; The option represents the number of milliseconds by which the new
1112 ; jitter buffer will pad its size. the default is 40, so without
1113 ; modification, the new jitter buffer will set its size to the jitter
1114 ; value plus 40 milliseconds. increasing this value may help if your
1115 ; network normally has low jitter, but occasionally has spikes.
1117 ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
1118 ;-----------------------------------------------------------------------------------
1120 ; You can define your own custom ring cadences here. You can define up to 8
1121 ; pairs. If the silence is negative, it indicates where the caller ID spill is
1122 ; to be placed. Also, if you define any custom cadences, the default cadences
1123 ; will be turned off.
1125 ; This setting is global, rather than per-channel. It will not update on
1128 ; Syntax is: cadence=ring,silence[,ring,silence[...]]
1130 ; These are the default cadences:
1132 ;cadence=125,125,2000,-4000
1133 ;cadence=250,250,500,1000,250,250,500,-4000
1134 ;cadence=125,125,125,125,125,-4000
1135 ;cadence=1000,500,2500,-5000
1137 ; Each channel consists of the channel number or range. It inherits the
1138 ; parameters that were specified above its declaration.
1141 ;callerid="Green Phone"<(256) 428-6121>
1142 ;description=Reception Phone ; add a description for 'dahdi show channels'
1144 ;callerid="Black Phone"<(256) 428-6122>
1145 ;description=Courtesy Phone
1147 ;callerid="CallerID Phone" <(630) 372-1564>
1148 ;description= ; reset the description for following channels
1150 ;callerid="Pac Tel Phone" <(256) 428-6124>
1152 ;callerid="Uniden Dead" <(256) 428-6125>
1154 ;callerid="Cortelco 2500" <(256) 428-6126>
1156 ;callerid="Main TA 750" <(256) 428-6127>
1159 ; For example, maybe we have some other channels which start out in a
1160 ; different context and use E & M signalling instead.
1169 ; All those in group 0 I'll use for outgoing calls
1171 ; Strip most significant digit (9) before sending
1174 ;callerid=asreceived
1181 ;callerid="Joe Schmoe" <(256) 428-6131>
1183 ;callerid="Megan May" <(256) 428-6132>
1185 ;callerid="Suzy Queue" <(256) 428-6233>
1187 ;callerid="Larry Moe" <(256) 428-6234>
1190 ; Sample PRI (CPE) config: Specify the switchtype, the signalling as either
1191 ; pri_cpe or pri_net for CPE or Network termination, and generally you will
1192 ; want to create a single "group" for all channels of the PRI.
1194 ; switchtype cannot be changed on a reload.
1196 ; switchtype = national
1197 ; signalling = pri_cpe
1201 ; Alternatively, the number of the channel may be replaced with a relative
1202 ; path to a device file under /dev/dahdi . The final element of that file
1203 ; must be a number, though. The directory separator is '!', as we can't
1204 ; use '/' in a dial string. So if we have
1206 ; /dev/dahdi/span-name/pstn/00/1
1207 ; /dev/dahdi/span-name/pstn/00/2
1208 ; /dev/dahdi/span-name/pstn/00/3
1209 ; /dev/dahdi/span-name/pstn/00/4
1212 ;channel => span-name!pstn!00!1-4
1215 ;channel => span-name!pstn!00!1,2,3,4
1217 ; See also ignore_failed_channels above.
1219 ; Used for distinctive ring support for x100p.
1220 ; You can see the dringX patterns is to set any one of the dringXcontext fields
1221 ; and they will be printed on the console when an inbound call comes in.
1223 ; dringXrange is used to change the acceptable ranges for "tone offsets". Defaults to 10.
1224 ; Note: a range of 0 is NOT what you might expect - it instead forces it to the default.
1225 ; A range of -1 will force it to always match.
1226 ; Anything lower than -1 would presumably cause it to never match.
1229 ;dring1context=internal1
1232 ;dring2context=internal2
1234 ; If no pattern is matched here is where we go.
1238 ; AMI alarm event reporting
1239 ;reportalarms=channels
1240 ;Possible values are:
1241 ;channels - report each channel alarms (current behavior, default for backward compatibility)
1242 ;spans - report an "SpanAlarm" event when the span of any configured channel is alarmed
1243 ;all - report channel and span alarms (aggregated behavior)
1244 ;none - do not report any alarms.
1246 ; ---------------- Options for use with signalling=ss7 -----------------
1247 ; None of them can be changed by a reload.
1249 ; Variant of SS7 signalling:
1250 ; Options are itu and ansi
1253 ; SS7 Called Nature of Address Indicator
1256 ; subscriber: Subscriber
1257 ; national: National
1258 ; international: International
1259 ; dynamic: Dynamically selects the appropriate dialplan
1261 ;ss7_called_nai=dynamic
1263 ; SS7 Calling Nature of Address Indicator
1266 ; subscriber: Subscriber
1267 ; national: National
1268 ; international: International
1269 ; dynamic: Dynamically selects the appropriate dialplan
1271 ;ss7_calling_nai=dynamic
1274 ; sample 1 for Germany
1275 ;ss7_internationalprefix = 00
1276 ;ss7_nationalprefix = 0
1277 ;ss7_subscriberprefix =
1278 ;ss7_unknownprefix =
1281 ; This option is used to disable automatic sending of ACM when the call is started
1282 ; in the dialplan. If you do use this option, you will need to use the Proceeding()
1283 ; application in the dialplan to send ACM.
1286 ; All settings apply to linkset 1
1289 ; Point code of the linkset. For ITU, this is the decimal number
1290 ; format of the point code. For ANSI, this can either be in decimal
1291 ; number format or in the xxx-xxx-xxx format
1294 ; Point code of node adjacent to this signalling link (Possibly the STP between you and
1295 ; your destination). Point code format follows the same rules as above.
1298 ; Default point code that you would like to assign to outgoing messages (in case of
1299 ; routing through STPs, or using A links). Point code format follows the same rules
1303 ; Begin CIC (Circuit indication codes) count with this number
1306 ; What the MTP3 network indicator bits should be set to. Choices are
1307 ; national, national_spare, international, international_spare
1308 ;networkindicator=international
1310 ; First signalling channel
1313 ; Additional signalling channel for this linkset (So you can have a linkset
1314 ; with two signalling links in it). It seems like a silly way to do it, but
1315 ; for linksets with multiple signalling links, you add an additional sigchan
1316 ; line for every additional signalling link on the linkset.
1319 ; Channels to associate with CICs on this linkset
1322 ; For more information on setting up SS7, see the README file in libss7 or
1323 ; https://wiki.asterisk.org/wiki/display/AST/Signaling+System+Number+7
1324 ; ----------------- SS7 Options ----------------------------------------
1326 ; ---------------- Options for use with signalling=mfcr2 --------------
1328 ; MFC-R2 signaling has lots of variants from country to country and even sometimes
1329 ; minor variants inside the same country. The only mandatory parameters here are:
1330 ; mfcr2_variant, mfcr2_max_ani and mfcr2_max_dnis.
1331 ; IT IS RECOMMENDED that you leave the default values (leaving it commented) for the
1332 ; other parameters unless you have problems or you have been instructed to change some
1333 ; parameter. OpenR2 library uses the mfcr2_variant parameter to try to determine the
1334 ; best defaults for your country, also refer to the OpenR2 package directory
1335 ; doc/asterisk/ where you can find sample configurations for some countries. If you
1336 ; want to contribute your configs for a particular country send them to the e-mail
1337 ; of the primary OpenR2 developer that you can find in the AUTHORS file of the OpenR2 package
1339 ; MFC/R2 variant. This depends on the OpenR2 supported variants
1340 ; A list of values can be found by executing the openr2 command r2test -l
1341 ; some valid values are:
1346 ; itu (per ITU spec)
1349 ; Max amount of ANI to ask for
1352 ; Max amount of DNIS to ask for
1355 ; whether or not to get the ANI before getting DNIS.
1356 ; some telcos require ANI first some others do not care
1357 ; if this go wrong, change this value
1358 ; mfcr2_get_ani_first=no
1360 ; Caller Category to send
1361 ; national_subscriber
1362 ; national_priority_subscriber
1363 ; international_subscriber
1364 ; international_priority_subscriber
1366 ; usually national_subscriber works just fine
1367 ; you can change this setting from the dialplan
1368 ; by setting the variable MFCR2_CATEGORY
1369 ; (remember to set _MFCR2_CATEGORY from originating channels)
1370 ; MFCR2_CATEGORY will also be a variable available in your context
1371 ; on incoming calls set to the value received from the far end
1372 ; mfcr2_category=national_subscriber
1374 ; Call logging is stored at the Asterisk
1375 ; logging directory specified in asterisk.conf
1376 ; plus mfcr2/<whatever you put here>
1377 ; if you specify 'span1' here and asterisk.conf has
1378 ; as logging directory /var/log/asterisk then the full
1379 ; path to your MFC/R2 call logs will be /var/log/asterisk/mfcr2/span1
1380 ; (the directory will be automatically created if not present already)
1381 ; remember to set mfcr2_call_files=yes
1382 ; mfcr2_logdir=span1
1384 ; whether or not to drop call files into mfcr2_logdir
1385 ; mfcr2_call_files=yes|no
1387 ; MFC/R2 valid logging values are: all,error,warning,debug,notice,cas,mf,stack,nothing
1388 ; error,warning,debug and notice are self-descriptive
1389 ; 'cas' is for logging ABCD CAS tx and rx
1390 ; 'mf' is for logging of the Multi Frequency tones
1391 ; 'stack' is for very verbose output of the channel and context call stack, only useful
1392 ; if you are debugging a crash or want to learn how the library works. The stack logging
1393 ; will be only enabled if the openr2 library was compiled with -DOR2_TRACE_STACKS
1394 ; You can mix up values, like: loglevel=error,debug,mf to log just error, debug and
1395 ; multi frequency messages
1396 ; 'all' is a special value to log all the activity
1397 ; 'nothing' is a clean-up value, in case you want to not log any activity for
1398 ; a channel or group of channels
1399 ; BE AWARE that the level of output logged will ALSO depend on
1400 ; the value you have in logger.conf, if you disable output in logger.conf
1401 ; then it does not matter you specify 'all' here, nothing will be logged
1402 ; so logger.conf has the last word on what is going to be logged
1405 ; MFC/R2 value in milliseconds for the MF timeout. Any negative value
1406 ; means 'default', smaller values than 500ms are not recommended
1407 ; and can cause malfunctioning. If you experience protocol error
1408 ; due to MF timeout try incrementing this value in 500ms steps
1409 ; mfcr2_mfback_timeout=-1
1411 ; MFC/R2 value in milliseconds for the metering pulse timeout.
1412 ; Metering pulses are sent by some telcos for some R2 variants
1413 ; during a call presumably for billing purposes to indicate costs,
1414 ; however this pulses use the same signal that is used to indicate
1415 ; call hangup, therefore a timeout is sometimes required to distinguish
1416 ; between a *real* hangup and a billing pulse that should not
1417 ; last more than 500ms, If you experience call drops after some
1418 ; minutes of being stablished try setting a value of some ms here,
1419 ; values greater than 500ms are not recommended.
1420 ; BE AWARE that choosing the proper protocol mfcr2_variant parameter
1421 ; implicitly sets a good recommended value for this timer, use this
1422 ; parameter only when you *really* want to override the default, otherwise
1423 ; just comment out this value or put a -1
1424 ; Any negative value means 'default'.
1425 ; mfcr2_metering_pulse_timeout=-1
1427 ; Brazil uses a special calling party category for collect calls (llamadas por cobrar)
1428 ; instead of using the operator (as in Mexico). The R2 spec in Brazil says a special GB tone
1429 ; should be used to reject collect calls. If you want to ALLOW collect calls specify 'yes',
1430 ; if you want to BLOCK collect calls then say 'no'. Default is to block collect calls.
1431 ; (see also 'mfcr2_double_answer')
1432 ; mfcr2_allow_collect_calls=no
1434 ; This feature is related but independent of mfcr2_allow_collect_calls
1435 ; Some PBX's require a double-answer process to block collect calls, if
1436 ; you ever have problems blocking collect calls using Group B signals (mfcr2_allow_collect_calls=no)
1437 ; then you may want to try with mfcr2_double_answer=yes, this will cause that every answer signal
1438 ; is changed by answer->clear back->answer (sort of a flash)
1439 ; (see also 'mfcr2_allow_collect_calls')
1440 ; mfcr2_double_answer=no
1442 ; This feature allows to skip the use of Group B/II signals and go directly
1443 ; to the accepted state for incoming calls
1444 ; mfcr2_immediate_accept=no
1446 ; You most likely dont need this feature. Default is yes.
1447 ; When this is set to yes, all calls that are offered (incoming calls) which
1448 ; DNIS is valid (exists in extensions.conf) and pass collect call validation
1449 ; will be accepted with a Group B tone (either call with charge or not, depending on mfcr2_charge_calls)
1450 ; with this set to 'no' then the call will NOT be accepted on offered, and the call will start its
1451 ; execution in extensions.conf without being accepted until the channel is answered (either with Answer() or
1452 ; any other application resulting in the channel being answered).
1453 ; This can be set to 'no' if your telco or PBX needs the hangup cause to be set accurately
1454 ; when this option is set to no you must explicitly accept the call with DAHDIAcceptR2Call
1455 ; or implicitly through the Answer() application.
1456 ; mfcr2_accept_on_offer=yes
1458 ; Skip request of calling party category and ANI
1459 ; you need openr2 >= 1.2.0 to use this feature
1460 ; mfcr2_skip_category=no
1462 ; WARNING: advanced users only! I really mean it
1463 ; this parameter is commented by default because
1464 ; YOU DON'T NEED IT UNLESS YOU REALLY GROK MFC/R2
1465 ; READ COMMENTS on doc/r2proto.conf in openr2 package
1467 ; mfcr2_advanced_protocol_file=/path/to/r2proto.conf
1469 ; Brazil use a special signal to force the release of the line (hangup) from the
1470 ; backward perspective. When mfcr2_forced_release=no, the normal clear back signal
1471 ; will be sent on hangup, which is OK for all mfcr2 variants I know of, except for
1472 ; Brazilian variant, where the central will leave the line up for several seconds (30, 60)
1473 ; which sometimes is not what people really want. When mfcr2_forced_release=yes, a different
1474 ; signal will be sent to hangup the call indicating that the line should be released immediately
1475 ; mfcr2_forced_release=no
1477 ; Whether or not report to the other end 'accept call with charge'
1478 ; This setting has no effect with most telecos, usually is safe
1479 ; leave the default (yes), but once in a while when interconnecting with
1480 ; old PBXs this may be useful.
1481 ; Concretely this affects the Group B signal used to accept calls
1482 ; The application DAHDIAcceptR2Call can also be used to decide this
1483 ; in the dial plan in a per-call basis instead of doing it here for all calls
1484 ; mfcr2_charge_calls=yes
1486 ; ---------------- END of options to be used with signalling=mfcr2
1488 ; Configuration Sections
1489 ; ~~~~~~~~~~~~~~~~~~~~~~
1490 ; You can also configure channels in a separate chan_dahdi.conf section. In
1491 ; this case the keyword 'channel' is not used. Instead the keyword
1492 ; 'dahdichan' is used (as in users.conf) - configuration is only processed
1493 ; in a section where the keyword dahdichan is used. It will only be
1494 ; processed in the end of the section. Thus the following section:
1501 ; Is somewhat equivalent to the following snippet in the section
1508 ; When starting a new section almost all of the configuration values are
1509 ; copied from their values at the end of the section [channels] in
1510 ; chan_dahdi.conf and [general] in users.conf - one section's configuration
1511 ; does not affect another one's.
1513 ; Instead of letting common configuration values "slide through" you can
1514 ; use configuration templates to easily keep the common part in one
1515 ; place and override where needed.
1522 ;threewaycalling = yes
1525 ;faxdetect = incoming
1529 ;callerid = My Name <501>
1530 ;mailbox = 501@mailboxes