-
Notifications
You must be signed in to change notification settings - Fork 3
/
capi.conf.sample
134 lines (122 loc) · 5.5 KB
/
capi.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
;
; example "capi.conf"
;
; FreeBSD: /usr/local/etc/asterisk/capi.conf
; NetBSD: /usr/pkg/etc/asterisk/capi.conf
; Linux: /etc/asterisk/capi.conf
;
[general]
;
; In countries like Norway, the nationalprefix should
; just be left empty.
;
nationalprefix=0
internationalprefix=00
rxgain=1.0 ;receive gain
txgain=1.0 ;transmit gain
;backend=capi20 ;set this, if you want to use /dev/capi20 (default)
;backend=capiclient ;set this, if you want to use the capiclient socket backend
;backend=bintec ;set this, if you want to use the bintec socket backend
;host=capi.myhost.com ;used with capiclient and bintec backends
;port=1234 ;used with capiclient and bintec backends
;username=user ;used with bintec
;password=pass ;used with bintec
;ulaw=yes ;set this, if you live in u-law world instead of a-law
;debug=yes ;set this, if capi debugging should be enabled by default
;alert_timeout=30 ;Alert timeout in seconds. Zero means use defaults.
;ton2digit=1 ;Prefix destination phone number with international and
;
; This is an example for an ISDN adapter
; configured for TE-mode:
;
[ISDN1] ;this example interface gets name 'ISDN1' and may be any
;name not starting with 'g' or 'contr'.
isdnmode=msn ;'MSN' (point-to-multipoint)
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * == any
;
; Format of "incomingmsn" is like this:
;
; 0) This will only allow any MSN:
;
; incomingmsn=*
;
; 1) This will only allow (MSN == "1"):
;
; incomingmsn=1
;
; 2) This will only allow (MSN == "1") or (MSN == "2") or (MSN == "3"):
;
; incomingmsn=1,2,3
;
; 3) This will only allow (MSN == "1XX..") or (MSN == "2") or (MSN == "3XX.."):
;
; incomingmsn=1*,2,3*
;
; NOTE: When a number matches "1*", everything preceeding the "*" is
; stripped away from the incoming number. For example if "incomingmsn=1*" and
; the MSN is 1234, only 234 is passed to Asterisk.
;
controller=0 ;ISDN4BSD default (first controller)
group=1 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming calls
softdtmf=off ;enable/disable software dtmf detection
relaxdtmf=off ;in addition to softdtmf, you can use
;relaxed dtmf detection, which implies softdtmf=yes
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_te ;context for incoming calls
holdtype=local ; If set to 'hold' Asterisk will forward the
; hold/retrieve to your telephone operator in
; TE-mode.
; If set to 'local' the line will be silent
; during hold.
; If set to 'local_moh' the line will play
; Music On Hold during hold.
;immediate=yes ;immediate start of pbx with extension 's' if no digits were
;received on incoming call (no destination number yet)
echocancel=no ;disable echo canceller
;echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64 ;echo cancel tail setting
;bridge=yes ;native bridging (CAPI line interconnect) if available
;callgroup=1 ;Asterisk call group
;deflect=1234567 ;deflect incoming calls to 1234567 if all B channels are busy
devices=2 ;number of concurrent calls on this controller
;(2 makes sense for single BRI, 30 for PRI)
;If you activly use HOLD/RETRIEVE features then
;you should double this number.
;wait_silence_samples=1000 ; wait for 1/8 second of silence before passing
; any audio (outgoing calls in te-mode only)
;dtmf_generate=yes ; set this if your [SIP] phone does not generate
; inband DTMF tones. It is not recommended to
; enable this. You should configure your [SIP] phone
; to generate both inband DTMF and SIP INFO.
;alert_timeout=30 ;Alert timeout in seconds. Zero means use defaults.
;
; This is an example for an ISDN adapter
; configured for NT-mode:
;
[ISDN2]
ntmode=yes ; note that this does NOT switch the card to NT-mode!
isdnmode=did ; note that NT-mode should use "did"
incomingmsn=* ; all numbers accepted
controller=1
group=1 ;dialout group
softdtmf=off
relaxdtmf=off ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode= ;Asterisk accountcode to use in CDRs
context=isdn_in_nt ;context for incoming calls
holdtype=local ;when Asterisk puts the call on hold, ISDN HOLD will be used. If
;set to 'local' (default value), no hold is done and Asterisk may
;play MOH.
;immediate=yes ;immediate start of pbx with extension 's' if no digits were
;received on incoming call (no destination number yet)
echosquelch=1 ; primitive echo suppression (it is recommended to use this)
; echo_offset=8 ; units of 32 milliseconds (default)
echocancel=no ; Possible values: 'no', 'yes', 'force', 'g164', 'g165'
;echocancelold=yes ;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
devices=2 ;number of concurrent calls on this controller
digit_timeout=5 ;number of seconds to wait for additional digits
;alert_timeout=30 ;Alert timeout in seconds. Zero means use defaults.
;late_callproc=1 ;Delay sending of call proceeding - wait for more digits
;This option is useful when bridging calls
;ton2digit=1 ;Prefix destination phone number with international and
;audio_timeout=30 ;Maximum number of seconds to wait for CAPI audio