[Asterisk-Users] AVM Fritz! + chan_capi + mISDN + PTP

Kib Eki kibeki at gmx.net
Mon Oct 10 01:14:15 MST 2005


I think you can't use a Fritz Card for PTP. You need an active card. We use the 
the beronet ISDN Cards with misdn.

Lionel Riem wrote:
> Hello everyone,
> 
> I have been using an AVM Fritz! card with chan_capi and mISDN for  quite 
> a while in PTM mode and it was working finely.
> 
> Now, I needed more DID/MSN, so I switched to PTP. But now nothing  works 
> anymore :(
> 
> I am using Asterisk on Debian Sarge stable and installed Asterisk  along 
> with chan_capi from apt-get. I installed mISDN from the CVS of  
> isdn4linux.de.
> 
> It is :
> - Asterisk 1.0.7 with bristuff
> - chan_capi 0.3.5
> 
> When I load the whole modules lot, I get the following in dmesg:
> 
> Modular ISDN Stack core $Revision: 1.25 $
> mISDNd: kernel daemon started
> ISAC module $Revision: 1.16 $
> mISDNd: test event done
> CAPI Subsystem Rev 1.1.2.8
> capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs)
> ISDN L1 driver version 1.11
> ISDN L2 driver version 1.20
> mISDN: DSS1 Rev. 1.30
> mISDN Capi 2.0 driver file version 1.14
> X25 DTE modul version 1.8
> AVM Fritz PCI/PnP driver Rev. 1.30
> ACPI: PCI interrupt 0000:00:14.0[A] -> GSI 10 (level, low) -> IRQ 10
> mISDN_fcpcipnp: found adapter Fritz!Card PCI v2 at 0000:00:14.0
> fritz card cd09a000 dch cd09a094 bch1 cd09a214 bch2 cd09a3a0
> AVM PCI V2: stat 0x240020e
> AVM PCI V2: Class E Rev 2
> AVM PnP: HDLC version 2
> mISDN: AVM Fritz!PCIv2 config irq:10 base:0xEC00
> spin_lock_adr=cd09a024 now(d015b867)
> busy_lock_adr=cd09a024 now(d015b867)
> AVM PCI/PnP: reset
> AVM PCI/PnP: S0/S1 40/2
> Fritz1 ISAC STAR 40
> Fritz1 ISAC MODE c0
> Fritz1 ISAC ADF2 ff
> Fritz1 ISAC ISTA 0
> Fritz1 ISAC CIR0 7
> mISDN_isac_init: ISACSX
> Fritz1 HDLC 1 STA 82000000
> Fritz1 HDLC 2 STA 82000000
> AVM Fritz!PCI: IRQ 10 count 4
> fritz 1 cards installed
> 
> 
> 
> Here is my /etc/asterisk/capi.conf:
> 
> ;
> ; CAPI config
> ;
> ;
> [general]
> nationalprefix=0
> internationalprefix=00
> rxgain=0.8
> txgain=0.8
> 
> [interfaces]
> mode=immediate
> isdnmode=ptp
> msn=*
> incomingmsn=*
> controller=1
> softdtmf=1
> context=dispatcher
> accountcode=
> devices=2
> 
> 
> Here is my /etc/modprobe.d/capi conf file:
> 
> alias /dev/capi20 avmfritz
> alias char-major-68-0 avmfritz
> 
> install avmfritz /sbin/modprobe capi; \
> /sbin/modprobe mISDN_core; \
> /sbin/modprobe mISDN_l1; \
> /sbin/modprobe mISDN_l2; \
> /sbin/modprobe l3udss1; \
> /sbin/modprobe mISDN_capi; \
> /sbin/modprobe mISDN_x25dte; \
> /sbin/modprobe --ignore-install avmfritz protocol=0x22
> 
> remove avmfritz /sbin/modprobe -r --ignore-remove avmfritz; \
> /sbin/modprobe -r mISDN_x25dte; \
> /sbin/modprobe -r mISDN_capi; \
> /sbin/modprobe -r l3udss1; \
> /sbin/modprobe -r mISDN_l2; \
> /sbin/modprobe -r mISDN_l1; \
> /sbin/modprobe -r mISDN_core; \
> /sbin/modprobe -r capi
> 
> 
> 
> "capiinfo" shows me:
> 
> asterisk:/etc/asterisk# capiinfo
> Number of Controllers : 1
> Controller 1:
> Manufacturer: mISDN CAPI controller Fritz1
> CAPI Version: 2.0
> Manufacturer Version: 1.0
> Serial Number: 0002
> BChannels: 2
> Global Options: 0x00000018
>    DTMF supported
>    Supplementary Services supported
> B1 protocols support: 0x00000003
>    64 kbit/s with HDLC framing
>    64 kbit/s bit-transparent operation
> B2 protocols support: 0x00000043
>    ISO 7776 (X.75 SLP)
>    Transparent
>    Transparent (ignoring framing errors of B1 protocol)
> B3 protocols support: 0x00000005
>    Transparent
>    ISO 8208 (X.25 DTE-DTE)
> 
>   0100
>   0200
>   18000000
>   03000000
>   43000000
>   05000000
>   00000000 00000000 00000000 00000000 00000000 00000000
>   00000000 00000000 00000000 00000000 00000000
> 
> Supplementary services support: 0x00000012
>    Terminal Portability
>    Call Forwarding
> 
> 
> 
> In Asterisk, when an incoming call arrives, it shows me the following:
> 
> Asterisk Ready.
> *CLI> capi info
> Contr1: 2 B channels total, 2 B channels free.
> *CLI> capi debug
> CAPI Debugging Enabled
> *CLI>
> *CLI>
> *CLI>     -- INFO_IND ID=001 #0x0001 LEN=0016
>   Controller/PLCI/NCCI            = 0x101
>   InfoNumber                      = 0x18
>   InfoElement                     = <89>
> 
>     -- INFO_IND ID=001 #0x0001 LEN=0016
>   Controller/PLCI/NCCI            = 0x101
>   InfoNumber                      = 0x18
>   InfoElement                     = <89>
> 
> Oct 10 09:17:16 NOTICE[5948]: chan_capi.c:1184 find_pipe: PLCI doesnt  
> match last pipe (PLCI = 0x101)
> Oct 10 09:17:16 NOTICE[5948]: chan_capi.c:1301 pipe_msg: INFO_IND  
> ID=001 #0x0001 LEN=0016
>   Controller/PLCI/NCCI            = 0x101
>   InfoNumber                      = 0x18
>   InfoElement                     = <89>
>     -- CONNECT_IND ID=001 #0x0002 LEN=0044
>   Controller/PLCI/NCCI            = 0x101
>   CIPValue                        = 0x1
>   CalledPartyNumber               = <81>20
>   CallingPartyNumber              = <01 83>0123456789
>   CalledPartySubaddress           = default
>   CallingPartySubaddress          = default
>   BC                              = <80 90 a3>
>   LLC                             = default
>   HLC                             = default
>   AdditionalInfo
>    BChannelinformation            = default
>    Keypadfacility                 = default
>    Useruserdata                   = default
>    Facilitydataarray              = default
> 
> Oct 10 09:17:16 NOTICE[5948]: chan_capi.c:1931 capi_handle_msg:  
> CONNECT_IND ID=001 #0x0002 LEN=0044
>   Controller/PLCI/NCCI            = 0x101
>   CIPValue                        = 0x1
>   CalledPartyNumber               = <81>20
>   CallingPartyNumber              = <01 83>0123456789
>   CalledPartySubaddress           = default
>   CallingPartySubaddress          = default
>   BC                              = <80 90 a3>
>   LLC                             = default
>   HLC                             = default
>   AdditionalInfo
>    BChannelinformation            = default
>    Keypadfacility                 = default
>    Useruserdata                   = default
>    Facilitydataarray              = default
> 
>   == CONNECT_IND  (PLCI=0x101,DID=20,CID=0123456789,CIP=0x1,CONTROLLER=0x1)
>     -- creating pipe for PLCI=0x101 msn = *
> 
> 
> 
> And it just hangs here. After a little while (10 seconds or so), the  
> other party gets a message from the teclo telling him that "this  number 
> cannot receive calls at the moment".
> 
> I really hope that someone may be able to help me. I am really stuck  
> here and I need to be able to receive calls quite quickly now, as  it's 
> my business line.
> 
> If you need anything else, just let me know.
> 
> Thanks,
> 
> L. Riem
> lriem at mac.com
> 
> 
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
> 
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> 
> 




More information about the asterisk-users mailing list