[Asterisk-Users] chan_capi configuration with AVM C2 card

John Daragon john at argv.co.uk
Thu Oct 6 15:37:58 MST 2005


Hi;

I've been asked to take a (remote) look at an Asterisk at home system 
running asterisk 1.0.9 on Centos 3.5. It's running chan_capi-0.3.5

It has an AVM c2 ISDN card which is plugged into what I believe to be a 
couple of BT ISDN2e "System Access" (i.e. point to point) connections. 
We've placed a support call to BT to find out how these lines are 
actually provisioned, but had no response so far.

I'd be grateful if anyone could shed some light on what we're seeing :

We've loaded the C2 firmware, and the /etc/capi.conf reads

C2 c2.bin DSS1 - - - - P2P
C2 - DSS1 - - - - P2P

We see no traffic if P2P is not set in /etc/capi.conf.

Surprisingly (to me, at least) if I set isdnmode=ptp in 
/etc/asterisk/capi.conf asterisk will not pick up incoming calls. 
Incoming ISDN calls *are* answered when isdnmode=ptm is set.

We have not yet been able to negotiate an outgoing call. Each attempt is 
rejected by the telco with a reason code of 0x3302.  Here's the dial 
command :

exten => s,1,Dial(CAPI/xxxxxx:b$OUTNUM$)

and the capi.conf :

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8

[interfaces]

msn=xxxxxx
isdnmode=ptm
incomingmsn=*
controller=1
softdtmf=1
accountcode=
context=from-pstn
echosquelch=0
echocancel=yes
echotail=64
devices=2

msn=xxxxxx
isdnmode=ptm
incomingmsn=*
controller=2
softdtmf=1
accountcode=
context=from-pstn
echosquelch=0
echocancel=yes
echotail=64
devices=2

Here's the CAPI trace of the outgoing call :

Oct  6 20:04:17 VERBOSE[12454]:   == found capi with omsn = xxxxxx
Oct  6 20:04:17 VERBOSE[12454]:   == CAPI Call CAPI[contr2/xxxxxx]/1 
with B3Oct
  6 20:04:17 VERBOSE[12454]:   == CAPI Call CAPI[contr2/xxxxxx]/1 with 
B3    -- c
reating pipe for PLCI=-1
Oct  6 20:04:17 VERBOSE[12454]:        > sent CONNECT_REQ MN =0x6
Oct  6 20:04:17 VERBOSE[12454]:     -- Called xxxxxx:byyyyyyyyyy
Oct  6 20:04:17 VERBOSE[12454]:     -- CONNECT_CONF ID=001 #0x0006 LEN=0014
   Controller/PLCI/NCCI            = 0x202
   Info                            = 0x0

Oct  6 20:04:17 VERBOSE[12454]:     -- CONNECT_CONF ID=001 #0x0006 LEN=0014
   Controller/PLCI/NCCI            = 0x202
   Info                            = 0x0

Oct  6 20:04:17 VERBOSE[12454]:   == received CONNECT_CONF PLCI = 0x202 
INFO = 0
Oct  6 20:04:23 VERBOSE[12454]:     -- DISCONNECT_IND ID=001 #0x0003 
LEN=0014
   Controller/PLCI/NCCI            = 0x202
   Reason                          = 0x3302

Oct  6 20:04:23 VERBOSE[12454]:   == DISCONNECT_IND PLCI=0x202 REASON=0x3302
Oct  6 20:04:23 VERBOSE[12454]:        > sent DISCONNECT_RESP PLCI=0x202
Oct  6 20:04:23 VERBOSE[12454]:     -- CAPI Hangingup

TIA

jd

-- 

John Daragon                                          john at argv.co.uk
argv[0] limited
Lambs Lawn Cottage,  Staple Fitzpaine,  Taunton,  TA3 5SL,  UK
v +44 (0) 1460 234068   f +44 (0) 1460 234069   m +44 (0) 7836 576127





More information about the asterisk-users mailing list