Answer State not detected with chan_capi and AVM C2 Card


#1

I have successfully configured the Avm C2 Board on Asterisk, and i can call everywhere.
The problem is that when i call analog pstn lines in B3 early mode asterisk doesn’t understand that my call is answered:
Here my config files:

######/etc/isdn/capi.conf
c2 c2.bin DSS1 - - - - P2P

######/etc/asterisk/capi.conf
language=it
ntmode=no
incomingmsn=*
defaultcid=0xxxxxxxx
controller=2
group=1
;softdtmf=on
relaxdtmf=on
accountcode=
context=incoming
immediate=yes

echosquelch=1

Here the Dial Command

exten => 0,1,Dial(CAPI/g1//bo)
exten => 0,2,Hangup

Here the Asterisk console Debug on successfull call with answer detection:

-- Starting simple switch on 'Zap/1-1'
-- Executing Dial("Zap/1-1", "CAPI/g1//bo") in new stack
   > data = g1//bo
   > capi request group = 2

== ISDN2: Call CAPI/ISDN2/-50 with B3 overlap (pres=0x00, ton=0x00)
– Called g1//bo
– ISDN2: received CONNECT_CONF PLCI = 0x102
– CAPI/ISDN2/-50 is making progress passing it to Zap/1-1
– CAPI/ISDN2/xxxxxxxxx-59 is proceeding passing it to Zap/1-1
– CAPI/ISDN2/xxxxxxxxx-59 answered Zap/1-1

Here the Asterisk console Debug on successfull call without answer detection:

ISDN2: Interface cleanup PLCI=0x102
– Starting simple switch on ‘Zap/1-1’
– Executing Dial(“Zap/1-1”, “CAPI/g1//bo”) in new stack
> data = g1//bo
> capi request group = 2
== ISDN2: Call CAPI/ISDN2/-5a with B3 overlap (pres=0x00, ton=0x00)
– Called g1//bo
– ISDN2: received CONNECT_CONF PLCI = 0x102
– CAPI/ISDN2/-5a is making progress passing it to Zap/1-1
– CAPI/ISDN2/xxxxxxxxxx-63 is proceeding passing it to Zap/1-1
After 60 seconds ( i thing the default timeout )
== ISDN2: Interface cleanup PLCI=0x102
== No one is available to answer at this time (1:0/0/0)

The answer is… Why asterisk doesn’t detect the answer state?
Also if asterisk doesn’t detect this state i can talk to the called line, but after the timeout of 60 seconds it hangup me, because it thinks that nobody answer the call.

In the call progress ( but i think the problem is that asterisk doesn’t see the call like active call ) until 60 seconds timeout event i can’t send dtmf tone

here the channel status of the call

(THE NO-ANSWER CALL when call in progress)
CAPI/ISDN2/xxxxxxxx (None) Dialing AppDial((Outgoing Line))
Zap/1-1 9@internal:1 Ring Dial(CAPI/g1//bo)

(THE ANSWERED CALL when call in progress)
CAPI/ISDN2/xxxxxxxx (None) Up Bridged Call(Zap/1-2)
Zap/1-2 9@internal:1 Up Dial(CAPI/g1//bo)

I use Asterisk 1.2.1
Chan_Capi 0.6.2 ( i have tried also 0.6.1 )
Debian Sarge 3.1

Thanks, and sorry for my bad english