Hallo!
Dann starte ich mal meinen ersten Post, habe schon ein paar Tage im Internet gesucht aber nichts gefunden was mich weiter gebracht hat. Ich bin nicht mehr sooo der Neuling was Linux angeht, aber mit CAPI kenne ich mich nun wirklich nicht aus.
Systemkonfiguration:
Asterisk 1.2.0
RedHad Enterprise Server mit dem 2.4er Kernel
ISDN: Diva Server BRI-2M PCI
Ich möchte die neuste chan_capi_cm Version (0.6.3) installieren. Leider kommt direkt beim "make"-Befehl eine riesen lange Fehlermeldung. Und da habe ich keinen Plan was es bedeutet.
Klar, er kann die Sourcen nicht finden. Die Datei "capi20.h" und die "capiutils.h" gibt es auf meinem System überhaupt nicht , wo sollen die denn herkommen?
Vom lesen der anderen Posts hier im Forum glaube ich das die System-Infos hier evtl. hilfreich sein könnten:
Bei "capiinfo" hört er da auf, ich kann nur mit "STRG-C" abbrechen.
Mit dem Diva-Testtool kann ich mit der ISDN-Karte rauswählen und bekomme auch reinkommende Anrufe angezeigt.
Irgendwie denke ich mal, nach allem was ich so gelesen habe könnte es an der Kernelunterstützung liegen. Aber die Karte funktioniert ja mit dem Testtool ....
Asterisk an sich selbst funktioniert auch recht gut wenn man damit übers LAN telefoniert.
Hat irgend jemand von euch eine Idee woran es liegen könnte? Bin für alle Denkanstöße dankbar
Vielen Dank!
MfG Snowie
Dann starte ich mal meinen ersten Post, habe schon ein paar Tage im Internet gesucht aber nichts gefunden was mich weiter gebracht hat. Ich bin nicht mehr sooo der Neuling was Linux angeht, aber mit CAPI kenne ich mich nun wirklich nicht aus.
Systemkonfiguration:
Asterisk 1.2.0
RedHad Enterprise Server mit dem 2.4er Kernel
ISDN: Diva Server BRI-2M PCI
Ich möchte die neuste chan_capi_cm Version (0.6.3) installieren. Leider kommt direkt beim "make"-Befehl eine riesen lange Fehlermeldung. Und da habe ich keinen Plan was es bedeutet.
Code:
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
In file included from chan_capi.c:51:
chan_capi20.h:7:20: capi20.h: Datei oder Verzeichnis nicht gefunden
chan_capi20.h:29:23: capiutils.h: Datei oder Verzeichnis nicht gefunden
In file included from chan_capi.c:51:
chan_capi20.h: In function `CAPI_COMMAND_PACK':
chan_capi20.h:105: `CAPI_REQ' undeclared (first use in this function)
chan_capi20.h:105: (Each undeclared identifier is reported only once
chan_capi20.h:105: for each function it appears in.)
chan_capi20.h:106: `CAPI_CONF' undeclared (first use in this function)
chan_capi20.h:107: `CAPI_IND' undeclared (first use in this function)
chan_capi20.h:108: `CAPI_RESP' undeclared (first use in this function)
In file included from chan_capi.c:52:
chan_capi.h: At top level:
chan_capi.h:218: syntax error before "_cword"
chan_capi.h:218: warning: no semicolon at end of struct or union
chan_capi.h:332: syntax error before '}' token
chan_capi.c:62: syntax error before "capi_MessageNumber"
chan_capi.c:62: warning: type defaults to `int' in declaration of `capi_MessageNumber'
chan_capi.c:62: warning: data definition has no type or storage class
chan_capi.c:66: conflicting types for `channeltype'
chan_capi.h:294: previous declaration of `channeltype'
chan_capi.c:159: syntax error before "info"
chan_capi.c: In function `show_capi_info':
chan_capi.c:163: `info' undeclared (first use in this function)
chan_capi.c: At top level:
chan_capi.c:181: syntax error before "get_capi_MessageNumber"
chan_capi.c:182: warning: return type defaults to `int'
chan_capi.c: In function `get_capi_MessageNumber':
chan_capi.c:183: `_cword' undeclared (first use in this function)
chan_capi.c:183: syntax error before "mn"
chan_capi.c:186: `mn' undeclared (first use in this function)
chan_capi.c: At top level:
chan_capi.c:196: syntax error before "_capi_put_cmsg"
chan_capi.c:196: syntax error before '*' token
chan_capi.c:197: warning: return type defaults to `int'
chan_capi.c: In function `_capi_put_cmsg':
chan_capi.c:198: `MESSAGE_EXCHANGE_ERROR' undeclared (first use in this function)
chan_capi.c:198: syntax error before "error"
chan_capi.c:205: `error' undeclared (first use in this function)
chan_capi.c:205: warning: implicit declaration of function `capi20_put_cmsg'
chan_capi.c:205: `CMSG' undeclared (first use in this function)
chan_capi.c:214: warning: implicit declaration of function `capi_cmsg2str'
chan_capi.c:214: warning: format argument is not a pointer (arg 6)
chan_capi.c:219: warning: format argument is not a pointer (arg 2)
chan_capi.c:221: warning: format argument is not a pointer (arg 2)
chan_capi.c: At top level:
chan_capi.c:231: syntax error before "check_wait_get_cmsg"
chan_capi.c:231: syntax error before '*' token
chan_capi.c:232: warning: return type defaults to `int'
chan_capi.c: In function `check_wait_get_cmsg':
chan_capi.c:233: `MESSAGE_EXCHANGE_ERROR' undeclared (first use in this function)
chan_capi.c:233: syntax error before "Info"
chan_capi.c:239: `Info' undeclared (first use in this function)
chan_capi.c:239: warning: implicit declaration of function `capi20_waitformessage'
chan_capi.c:248: warning: implicit declaration of function `capi_get_cmsg'
chan_capi.c:248: `CMSG' undeclared (first use in this function)
chan_capi.c: In function `ListenOnController':
chan_capi.c:267: `MESSAGE_EXCHANGE_ERROR' undeclared (first use in this function)
chan_capi.c:267: syntax error before "error"
chan_capi.c:268: `_cmsg' undeclared (first use in this function)
chan_capi.c:270: warning: implicit declaration of function `LISTEN_REQ_HEADER'
chan_capi.c:270: `CMSG' undeclared (first use in this function)
chan_capi.c:272: warning: implicit declaration of function `LISTEN_REQ_INFOMASK'
chan_capi.c:272: invalid lvalue in assignment
chan_capi.c:275: warning: implicit declaration of function `LISTEN_REQ_CIPMASK'
chan_capi.c:275: invalid lvalue in assignment
chan_capi.c:276: `error' undeclared (first use in this function)
chan_capi.c:279: warning: implicit declaration of function `IS_LISTEN_CONF'
chan_capi.c:279: `CMSG2' undeclared (first use in this function)
chan_capi.c: In function `capi_echo_canceller':
chan_capi.c:395: `_cmsg' undeclared (first use in this function)
chan_capi.c:395: syntax error before "CMSG"
chan_capi.c:398: dereferencing pointer to incomplete type
chan_capi.c:403: dereferencing pointer to incomplete type
chan_capi.c:403: dereferencing pointer to incomplete type
chan_capi.c:410: dereferencing pointer to incomplete type
chan_capi.c:410: dereferencing pointer to incomplete type
chan_capi.c:410: dereferencing pointer to incomplete type
chan_capi.c:410: dereferencing pointer to incomplete type
chan_capi.c:412: warning: implicit declaration of function `FACILITY_REQ_HEADER'
chan_capi.c:412: `CMSG' undeclared (first use in this function)
chan_capi.c:413: warning: implicit declaration of function `FACILITY_REQ_PLCI'
chan_capi.c:413: dereferencing pointer to incomplete type
chan_capi.c:414: warning: implicit declaration of function `FACILITY_REQ_FACILITYSELECTOR'
chan_capi.c:414: dereferencing pointer to incomplete type
chan_capi.c:421: dereferencing pointer to incomplete type
chan_capi.c:422: dereferencing pointer to incomplete type
chan_capi.c:426: warning: implicit declaration of function `FACILITY_REQ_FACILITYREQUESTPARAMETER'
chan_capi.c:426: `_cstruct' undeclared (first use in this function)
chan_capi.c:426: syntax error before "buf"
chan_capi.c: In function `capi_detect_dtmf':
chan_capi.c:441: `MESSAGE_EXCHANGE_ERROR' undeclared (first use in this function)
chan_capi.c:441: syntax error before "error"
chan_capi.c:442: `_cmsg' undeclared (first use in this function)
chan_capi.c:445: dereferencing pointer to incomplete type
chan_capi.c:454: dereferencing pointer to incomplete type
chan_capi.c:454: dereferencing pointer to incomplete type
chan_capi.c:457: dereferencing pointer to incomplete type
chan_capi.c:457: dereferencing pointer to incomplete type
chan_capi.c:458: `CMSG' undeclared (first use in this function)
chan_capi.c:459: dereferencing pointer to incomplete type
chan_capi.c:460: invalid lvalue in assignment
chan_capi.c:469: `_cstruct' undeclared (first use in this function)
chan_capi.c:469: syntax error before "buf"
chan_capi.c:471: `error' undeclared (first use in this function)
chan_capi.c:477: dereferencing pointer to incomplete type
chan_capi.c:478: dereferencing pointer to incomplete type
chan_capi.c: In function `update_channel_name':
chan_capi.c:492: dereferencing pointer to incomplete type
chan_capi.c:492: dereferencing pointer to incomplete type
chan_capi.c:493: dereferencing pointer to incomplete type
chan_capi.c:495: dereferencing pointer to incomplete type
.
. # hier geht's noch ne ganze Ecke so weiter ....
.
.
chan_capi.c: In function `cc_init_capi':
chan_capi.c:4495: warning: implicit declaration of function `capi20_isinstalled'
chan_capi.c:4500: warning: implicit declaration of function `capi20_register'
chan_capi.c:4512: warning: implicit declaration of function `capi20_get_profile'
chan_capi.c: In function `unload_module':
chan_capi.c:4983: warning: implicit declaration of function `capi20_release'
chan_capi.c:4996: dereferencing pointer to incomplete type
chan_capi.c:4999: dereferencing pointer to incomplete type
make: *** [chan_capi.o] Fehler 1
Klar, er kann die Sourcen nicht finden. Die Datei "capi20.h" und die "capiutils.h" gibt es auf meinem System überhaupt nicht , wo sollen die denn herkommen?
Vom lesen der anderen Posts hier im Forum glaube ich das die System-Infos hier evtl. hilfreich sein könnten:
Code:
# lspci -v
00:0f.0 Network controller: Eicon Networks Corporation Diva Server BRI-2M PCI (rev 01)
Subsystem: Eicon Networks Corporation Diva Server BRI-2M PCI
Flags: medium devsel, IRQ 3
Memory at e0009000 (32-bit, non-prefetchable) [size=128]
I/O ports at 1080 [size=128]
I/O ports at 1040 [size=32]
Code:
# cat /proc/capi/controller
1 divacapi running MTPX101 4018
Code:
# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
Code:
capiinfo
Controller 1:
Manufacturer: Eicon Networks
CAPI Version: 2.0
Manufacturer Version: 1.0
Serial Number: 4018
BChannels: 2
Global Options: 0x000003f9
internal controller supported
DTMF supported
Supplementary Services supported
channel allocation supported (leased lines)
B1 protocols support: 0x000003df
64 kbit/s with HDLC framing
64 kbit/s bit-transparent operation
V.110 asynconous operation with start/stop byte framing
V.110 synconous operation with HDLC framing
T.30 modem for fax group 3
56 kbit/s bit-transparent operation
Modem with all negotiations
Modem asyncronous operation with start/stop byte framing
Modem syncronous operation with HDLC framing
B2 protocols support: 0x00001fdb
ISO 7776 (X.75 SLP)
Transparent
LAPD with Q.921 for D channel X.25 (SAPI 16)
T.30 fro fax group 3
Tranparent (ignoring framing errors of B1 protocol)
Modem error correction and compression (V.42bis or MNP5)
ISO 7776 (X.75 SLP) with V.42bis compression
V.120 asyncronous mode
V.120 asyncronous mode with V.42bis compression
V.120 bit-transparent mode
LAPD with Q.921 including free SAPI selection
B3 protocols support: 0x000000b7
Transparent
T.90NL, T.70NL, T.90
ISO 8208 (X.25 DTE-DTE)
X.25 DCE
T.30 for fax group 3
reserved
0000
0200
f9030000
df030000
db1f0000
b7000000
00000000 00000000 00000000 00000000 00000000 00000000
f9030000 00000000 00000000 00000000 00000000
Bei "capiinfo" hört er da auf, ich kann nur mit "STRG-C" abbrechen.
Mit dem Diva-Testtool kann ich mit der ISDN-Karte rauswählen und bekomme auch reinkommende Anrufe angezeigt.
Irgendwie denke ich mal, nach allem was ich so gelesen habe könnte es an der Kernelunterstützung liegen. Aber die Karte funktioniert ja mit dem Testtool ....
Asterisk an sich selbst funktioniert auch recht gut wenn man damit übers LAN telefoniert.
Hat irgend jemand von euch eine Idee woran es liegen könnte? Bin für alle Denkanstöße dankbar
Vielen Dank!
MfG Snowie