CAPI.CONF - configuration of the Linux CAPI 2.0 channel
Example from the distribution:
;
; CAPI config
;
;
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
[interfaces]
incomingmsn=*
controller=1
softdtmf=1
accountcode=
context=demo
;echosquelch=1
;echocancel=yes
;echotail=64
deflect=12345678
devices=2
;PointToPoint (55512-0)
;for outgoing calls use example 5551212
;and in dialplan you can use callerid like
;exten => _0XXX.,1,StripMSD,1
;exten => _XXX.,2,Dial,CAPI/55512${CALLERIDNUM}:bBYEXTENSION
;============================================================
;mode=immediate
;isdnmode=ptp
;msn=55512
;controller=2
;devices=30
If you want to have a second controller, make sure you duplicate all of this section and adjust it to make sense for your second card.
incomingmsn=*
controller=2
softdtmf=1
accountcode=
context=demo
;echosquelch=1
;echocancel=yes
;echotail=64
devices=2
If you're using an E1 card, don't forget to change devices=2 to devices=30.
- Asterisk CAPI Channels: Overview
- Asterisk CAPI Readme: Readme file
- Asterisk channels
- Keywords: ISDN, BRI, PRI, CAPI, MSN
- Asterisk config files
- Asterisk | FAQ | Introduction | Tips & Tricks
Comments
Capi_chan-cm 0.6 setup
This is in North America, using SPID's set with the eicon utilitity as of Sept 2005.
If you have problems with making calls and you can receive, try setting 5ess-ni instead of custom.
This is an Eicon Diva Server card.
My email address is: gw@adcomcorp.com if you have questions.
CAPI.conf:
;
; CAPI config
;
; good on sep groups
; general section
[general]
nationalprefix=1
internationalprefix=011
rxgain=0.8
txgain=0.8
;rxgain=1.0
;txgain=1.0
ulaw=yes ;set this, if you live in u-law world instead of a-law
; interface sections ...
[ISDN1] ;this example interface gets name 'ISDN1' and may be any
;ntmode=yes ;if isdn card operates in nt mode, set this to yes
;when using NT-mode, ptp should be set in any case
incomingmsn=2781980 ;allow incoming calls to this list of MSNs/DIDs, * == any
controller=1 ;capi controller number to use
group=1 ;dialout group
;softdtmf=on ;enable/disable software dtmf detection, recommended for AVM cards
;relaxdtmf=on ;in addition to softdtmf, you can use relaxed dtmf detection
;accountcode= ;Asterisk accountcode to use in CDRs
context=incoming-isdn ;context for incoming calls
holdtype=hold ;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 ;_VERY_PRIMITIVE_ echo suppression
echocancel=yes ;EICON DIVA SERVER (CAPI) echo cancelation
;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
;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=1 ;number of concurrent calls on this controller
;(2 makes sense for single BRI, 30 for PRI)
[ISDN2]
isdnmode=msn
incomingmsn=2781984
controller=1
group=1
callgroup=1
bridge=yes ;native bridging (CAPI line interconnect) if available
context=incoming-isdn
echocancel=yes
devices=1
And in extensions.conf:
[incoming-isdn]
exten => 2781980,1,Set(IncomingLine=${EXTEN})
exten => 2781980,2,NoOp(${CALLERID})
exten => 2781980,3,Set(CALLERID(name)=Incoming Toll-Free)
exten => 2781980,4,Set(CALLERID(num)=${CALLERIDNUM:1})
exten => 2781980,5,Goto(incoming-isdn,s,1)
exten => 2781984,1,Set(IncomingLine=${EXTEN})
exten => 2781984,2,NoOp(${CALLERID})
exten => 2781984,3,Set(CALLERID(name)=Incoming Toll-Free2)
exten => 2781984,4,Set(CALLERID(num)=${CALLERIDNUM:1})
exten => 2781984,5,Goto(incoming-isdn,s,1)
exten => s,1,NoOp
exten => s,2,Wait(.5)
exten => s,3,Set(CALLFILENAME=/var/spool/asterisk/monitor/incoming/8452781980/In-${TIMESTAMP}_${CALLERIDNUM}_${CALLERIDNAME}_${$exten => s,4,Monitor(wav,${CALLFILENAME})
exten => s,5,GotoIfTime(17:31-6:59|mon-sun|*|*?2300in,s,13)
exten => s,6,Dial(Zap/31&${PUMS1980IP},20,t);Daytime
exten => s,7,Goto(2300in,s,7)
[isdn-out]
exten => _1NXXNXXXXXX,1,Set(CALLFILENAME=/var/spool/asterisk/monitor/outgoing/8452781980/Out-${TIMESTAMP}_${CALLERIDNUM})
exten => _1NXXNXXXXXX,2,Monitor(wav,${CALLFILENAME},)
exten => _1NXXNXXXXXX,3,Dial(CAPI/g1/${EXTEN}/B,,)
exten => _1845NXXXXXX,1,Set(CALLFILENAME=/var/spool/asterisk/monitor/outgoing/8452781980/Out-XXX)
exten => _1845NXXXXXX,2,Monitor(wav,${CALLFILENAME},)
exten => _1845NXXXXXX,3,Dial(CAPI/g1/${EXTEN:4}/B,,)
exten => _NXXXXXX,1,Set(CALLFILENAME=/var/spool/asterisk/monitor/outgoing/8452781980/Out-${TIMESTAMP}_${CALLERIDNUM}_${CALLERIDXXX)
exten => _NXXXXXX,2,Monitor(wav,${CALLFILENAME},)
exten => _NXXXXXX,3,Dial(CAPI/g1/1914${EXTEN}/B,,)
exten => _011.,1,Set(CALLFILENAME=/var/spool/asterisk/monitor/outgoing/8452781980/Out-${TIMESTAMP}_${CALLERIDNUM}_${CALLERIDNAMXXX)
exten => _011.,2,Monitor(wav,${CALLFILENAME},)
exten => _011.,3,Dial(CAPI/g1/${EXTEN}/B,,)
Capi_chan-cm 0.6 setup