libcapi20_fb ist eine modifizierte Version der libcapi20 aus dem isdn4linux Paket.
Mit dieser Library hat man die Möglichkeit, auf den Capi-Over-TCP Server der Fritz!Box zuzugreifen. Alles ohne Modifikation.
Es reicht aus, die Anwendungen gegen -lcapi20 zu linken und den Capi-Over-TCP der Fritz!Box zu aktivieren (#96*3*).
libcapi20_fb kann unter Linux, wie auch Windows kompiliert werden.
./configure make make install
Projektmappe "libcapi20_fb.sln" unter Visual C++ 2005 öffnen und kompilieren. Das MS-SDK wird benötigt!
export FB_REMOTE_CAPI_IP=192.168.178.1 export FB_REMOTE_CAPI_PORT=5031Weitere Einstellungen:
export FB_REMOTE_CAPI_DEBUG=X (Debug-Ausgabe. 0=nichts, 3=alles) export FB_REMOTE_CAPI_TCP=1 (Remote-CAPI an=1, aus=0) export FB_REMOTE_CAPI_DEV=1 (Device-CAPI an=1, aus=0)Unter Windows würde man anstelle des 'export', 'SET' verwenden oder die Umgebungsvariablen direkt unter "Systemsteuerung\System" hinterlegen. Mithilfe von capiinfo kann man nun prüfen, ob alles funktioniert. capiinfo befindet sich ebenfalls im libcapi20_fb Paket.
Number of Controllers : 5 Controller 1: Manufacturer: AVM Berlin CAPI Version: 2.0 Manufacturer Version: 0.0-05 (0.5) Serial Number: 0004711 BChannels: 2 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x80003c0b 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 synconous operation with HDLC framing B2 protocols support: 0x00000003 ISO 7776 (X.75 SLP) Transparent B3 protocols support: 0x00000001 Transparent 0500 0200 39000000 0b3c0080 03000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 01000001 00020000 00000000 00000000 00000000 Controller 2: Manufacturer: AVM Berlin CAPI Version: 2.0 Manufacturer Version: 0.0-05 (0.5) Serial Number: 0004711 BChannels: 2 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x80003c0b 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 synconous operation with HDLC framing B2 protocols support: 0x00000003 ISO 7776 (X.75 SLP) Transparent B3 protocols support: 0x00000001 Transparent 0500 0200 39000000 0b3c0080 03000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 01000001 00020000 00000000 00000000 00000000 Controller 3: Manufacturer: AVM Berlin CAPI Version: 2.0 Manufacturer Version: 0.0-05 (0.5) Serial Number: 0004711 BChannels: 2 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x80003c0b 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 synconous operation with HDLC framing B2 protocols support: 0x00000003 ISO 7776 (X.75 SLP) Transparent B3 protocols support: 0x00000001 Transparent 0500 0200 39000000 0b3c0080 03000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 20020000 00000000 00000000 00000000 Controller 4: Manufacturer: AVM Berlin CAPI Version: 2.0 Manufacturer Version: 0.0-05 (0.5) Serial Number: 0004711 BChannels: 1 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x80003c0b 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 synconous operation with HDLC framing B2 protocols support: 0x00000003 ISO 7776 (X.75 SLP) Transparent B3 protocols support: 0x00000001 Transparent 0500 0100 39000000 0b3c0080 03000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 40020000 00000000 00000000 00000000 Controller 5: Manufacturer: AVM Berlin CAPI Version: 2.0 Manufacturer Version: 0.0-05 (0.5) Serial Number: 0004711 BChannels: 3 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x80003c0b 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 synconous operation with HDLC framing B2 protocols support: 0x00000003 ISO 7776 (X.75 SLP) Transparent B3 protocols support: 0x00000001 Transparent 0500 0300 39000000 0b3c0080 03000000 01000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 80020000 00000000 00000000 00000000
# ./capiinfo Number of Controllers : 0 could not register - (0x1009)