[Solved in 50%] Fritz AVM A1 and incoming calls

Hello,

Yesterday i’ve finished long battle with FritzCard and linux :smile:
Everything works fine with one exception.
I have problem with incoming calls.

When i’m calling to ISDN number (from outside), asterisk isn’t respond.

Destination number is not specified:

== ISDN#02: Incoming call '647' -> ''

and (maybe) useful information (while calling to ISDN)

capi show channels
CAPI B-channel information:
Line-Name       NTmode state i/o bproto isdnstate   ton  number
----------------------------------------------------------------
ISDN#02          yes   DIDin  I  trans  P           0x01 '647'->''
ISDN#01          yes   -----  -  trans              0x00 ''->''
  == ISDN#02: CAPI Hangingup for PLCI=0x101 in state 4

When i’m trying to make call from SIP via ISDN, everything works fine:

 -- Executing [666@default:1] Dial("SIP/648-081eb788", "CAPI/ISDN/666|60|tr") in new stack
    -- Called ISDN/666
    -- CAPI/ISDN#02/666-5 is proceeding passing it to SIP/648-081eb788
    -- CAPI/ISDN#02/666-5 is making progress passing it to SIP/648-081eb788
    -- CAPI/ISDN#02/666-5 is ringing
  == ISDN#02: CAPI Hangingup for PLCI=0x101 in state 5
  == Spawn extension (default, 666, 1) exited non-zero on 'SIP/647-081eb788'
 capi show channels
CAPI B-channel information:
Line-Name       NTmode state i/o bproto isdnstate   ton  number
----------------------------------------------------------------
ISDN#02          yes   Dial   O  trans  *P          0x00 '647'->'666'
ISDN#01          yes   -----  -  trans              0x00 ''->''
  == ISDN#02: CAPI Hangingup for PLCI=0x101 in state 5

My capi.conf:

[general]


nationalprefix=0
internationalprefix=00
rxgain=1.0
txgain=1.0
;ulaw=yes      
debug=yes      

[ISDN]

ntmode=yes      
isdnmode=did    
incomingmsn=*   
controller=1
group=1        
softdtmf=off
relaxdtmf=off    
accountcode=     
context=isdn-in 
holdtype=local  
;immediate=yes  

             
echosquelch=1    
; echo_offset=8  
echocancel=no   
;echocancelold=yes 
devices=2  
digit_timeout=5  

I tried to set immediate to yes, with good results but in logs i see:

conf_error 0x2001 PLCI=0x101 Command=SELECT_B_PROTOCOL_CONF,0x8495

Many thanks for help

Regards