Capi_chan-cm 0.6 setup

Comment on Asterisk config capi.conf
Joined: Mon 19 of Sep, 2005

Capi_chan-cm 0.6 setup

Posted:Sun 23 of Oct, 2005 (03:37 UTC)
I have a single bri coming in onto two different definitions that are working well as follows:
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: if you have questions.


; CAPI config
; good on sep groups

; general section

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)
bridge=yes ;native bridging (CAPI line interconnect) if available

And in extensions.conf:

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)

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,,)