Claudio Beffa
2006-Jan-20 05:51 UTC
[Asterisk-Users] AVM C4, asterisk-1.0.8, /etc/asterisk/capi.conf
Has anyone a working /etc/asterisk/capi.conf example for Germany or Switzerland using the AVM C4 - ISDN Card. I try to connect asterisk to 3 wires BRI-ISDN (Swisscom). I appreciate your help and it would save me a lot of time, figuring it out by myself. regards, Claudio
Peer Oliver Schmidt
2006-Jan-20 06:15 UTC
[Asterisk-Users] AVM C4, asterisk-1.0.8, /etc/asterisk/capi.conf
Claudio Beffa schrieb:> Has anyone a working /etc/asterisk/capi.conf example for Germany or > Switzerland using the AVM C4 - ISDN Card. > > I try to connect asterisk to 3 wires BRI-ISDN (Swisscom). > > I appreciate your help and it would save me a lot of time, figuring it > out by myself.This is my /etc/asterisk/capi.conf [general] nationalprefix=0 internationalprefix=00 rxgain=0.7 txgain=0.6 ;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 ;name not starting with 'g' or 'contr'. isdnmode=msn ;ptmp (point-to-multipoint) or ptp (point-to-point) ;when using NT-mode, ptp should be set in any case incomingmsn=* ;807440,807441 ;allow incoming calls to this list of MSNs, * == any controller=2 ;capi controller number to use group=1 ;dialout group ;prefix=0 ;set a prefix to calling number on incoming calls 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=default ;context for incoming calls hold=no ;when Asterisk put on hold, ISDN HOLD shall be used ;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 ;echotail=64 ;echo cancel tail setting callgroup=3 ;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) [ISDN3] ;this example interface gets name 'ISDN1' and may be any ;name not starting with 'g' or 'contr'. isdnmode=msn ;ptmp (point-to-multipoint) or ptp (point-to-point) ;when using NT-mode, ptp should be set in any case incomingmsn=* ;allow incoming calls to this list of MSNs, * == any controller=1 ;capi controller number to use group=3 ;dialout group ;prefix=0 ;set a prefix to calling number on incoming calls 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=default ;context for incoming calls hold=no ;when Asterisk put on hold, ISDN HOLD shall be used ;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 ;echotail=64 ;echo cancel tail setting 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) And the corresponding /etc/isdn/capil.conf # card file proto io irq mem cardnr options c4 /usr/lib/c4.bin DSS1 - - - - c4 - DSS1 - - - - c4 - DSS1 - - - - c4 - DSS1 - - - - The file /usr/lib/c4.bin had been extracted from the SuSE drivers on the AVM download page. I am using the just 2 of the 4 ports on the card right now. HTH and if you have questions, feel free. BTW: I am using chan_capi-cm of sourceforge. - Mit freundlichen Gr??en Peer Oliver Schmidt the internet company PGP Key ID: 0x83E1C2EA -- Best regards Peer Oliver Schmidt PGP Key ID: 0x83E1C2EA
Felix Deierlein
2006-Jan-22 09:01 UTC
[Asterisk-Users] AVM C4, asterisk-1.0.8, /etc/asterisk/capi.conf
Hi,> Has anyone a working /etc/asterisk/capi.conf example for Germany or > Switzerland using the AVM C4 - ISDN Card. > > I try to connect asterisk to 3 wires BRI-ISDN (Swisscom). > > I appreciate your help and it would save me a lot of time, figuring > it out by myself. >We are using 4 BRI channels in Germany connected to a AVM C4. We are using PTP (Anlagenanschluss). You will need another config for PTMP (Mehrger?teanschluss). I hope this will help you a bit. Regards Felix /etc/asterisk/capi.conf ; ; CAPI config ; ; [general] nationalprefix=0 internationalprefix=00 rxgain=0.8 txgain=0.8 [AMT8993] ;mode=immediate isdnmode=ptp msn=8993 incomingmsn=* controller=1,2,3,4 softdtmf=1 accountcodecontext=Amt8993xx-In ;echosquelch=1 ;echocancel=yes ;echotail=64 callgroup=1 ;deflect=12345678 devices=8 /etc/capi.conf #SuSEconfig.isdn generated # card file proto io irq mem cardnr options c4 c4.bin DSS1 - - - 1 p2p c4 - DSS1 - - - 2 p2p c4 - DSS1 - - - 3 p2p c4 - DSS1 - - - 4 p2p