DLeese at LStelcom.com
2010-Mar-01 15:39 UTC
[asterisk-users] AVM Fritz! mISDN with Kernel 2.6.32 - Any experiences? - Email found in subject
Hi again!> I have excellent success with the tiny "fcpci" and chan_capi, which is > also working great with capi4hylafax. See > net-dialup/fcpci-0.1-r1 in gentoo (should not be difficult to use this > on other distros, but I have never done so). Do not confuse this with > the "fritzcapi"!I managed to install fcpci and it seems to run fine (capiinfo output). Unfortunately i cant compile chan_capi against my Asterisk trunk r240716. Neither the trunk/head nor the 1.1.4 Version compiles. All fail with the following output: srvpbx:/usr/src/chan-capi-HEAD# make [CC] chan_capi.c -> chan_capi.o In file included from chan_capi.c:32: chan_capi.h:34:26: error: asterisk/rtp.h: Datei oder Verzeichnis nicht gefunden chan_capi.c: In function ?local_queue_frame?: chan_capi.c:803: error: invalid operands to binary == (have ?union <anonymous>? and ?int?) chan_capi.c: In function ?interface_cleanup?: chan_capi.c:1071: warning: implicit declaration of function ?ast_rtp_destroy? chan_capi.c: In function ?send_progress?: chan_capi.c:1165: error: incompatible types in assignment chan_capi.c: In function ?clear_channel_fax_loop?: chan_capi.c:2884: error: invalid operands to binary == (have ?union <anonymous>? and ?int?) chan_capi.c: In function ?capidev_handle_did_digits?: chan_capi.c:3548: error: incompatible types in assignment chan_capi.c: In function ?capi_queue_cause_control?: chan_capi.c:3564: warning: missing braces around initializer chan_capi.c:3564: warning: (near initialization for ?fr.subclass?) chan_capi.c:3569: error: incompatible types in assignment chan_capi.c:3573: error: incompatible types in assignment chan_capi.c: In function ?capidev_handle_info_indication?: chan_capi.c:3876: error: incompatible types in assignment chan_capi.c:3886: error: incompatible types in assignment chan_capi.c: In function ?handle_facility_indication_dtmf?: chan_capi.c:4138: error: incompatible types in assignment chan_capi.c:4149: error: incompatible types in assignment chan_capi.c: In function ?capidev_handle_data_b3_indication?: chan_capi.c:4292: error: incompatible types in assignment chan_capi.c:4294: error: incompatible types in assignment chan_capi.c: In function ?capi_signal_answer?: chan_capi.c:4316: warning: missing braces around initializer chan_capi.c:4316: warning: (near initialization for ?fr.subclass?) chan_capi.c: In function ?capidev_handle_disconnect_indication?: chan_capi.c:4605: warning: missing braces around initializer chan_capi.c:4605: warning: (near initialization for ?fr.subclass?) chan_capi.c:4654: error: incompatible types in assignment chan_capi.c: In function ?capidev_handle_connection_conf?: chan_capi.c:5025: warning: missing braces around initializer chan_capi.c:5025: warning: (near initialization for ?fr.subclass?) chan_capi.c: At top level: chan_capi.c:7746: warning: initialization from incompatible pointer type chan_capi.c: In function ?conf_interface?: chan_capi.c:8153: warning: passing argument 2 of ?ast_parse_allow_disallow? from incompatible pointer type chan_capi.c:8156: warning: passing argument 2 of ?ast_parse_allow_disallow? from incompatible pointer type make: *** [chan_capi.o] Fehler 1 Please excuse the messed up german output, i have yet to discover how to set a debian box to "german keyboard, everything else english". I am limited to Asterisk trunk r240716 because i want to evaluate the T.38 <-> T.30 gateway function, which can only be patched into this revision. In my opinion there are the following alternatives in order to get the Fritz card running with Asterisk: A) Get chan-capi to compile: Unfortunately my C knowledge seems insufficent for this. I have found out that there is noch rtp.h in the asterisk source dir, only a file named rtp_engine.h. Changing the include accordingly unfortunately only fixes the very first error. I can't make any sense out of the second error (error: invalid operands to binary == (have "union <anonymous>" and "int")), as, in line 803, the left-hand operand of the == is no union, let alone a anonymous union. I have already posted this at the chan-capi-users ML, but with no answer so far. B) Use a binary chan_capi.so from elsewhere?! I run Debian 5.0.2 Kernel 2.6.26-2-686. Could i take a compiled chan_capi.so from a machine with a different Asterisk 1.6 Version? C) Find another way to use fcpci eith Asterisk. Is this even possible? With mISDN? ...? Comments or any other Ideas are very appreciated. Sincerly Daniel Leese P.s.: Philipp, many thanks fo your answers so far ;)
Armin Schindler
2010-Mar-01 15:53 UTC
[asterisk-users] AVM Fritz! mISDN with Kernel 2.6.32 - Any experiences? - Email found in subject
Hi, it seems that the asterisk API here was changed again and chan_capi must be adapted to this. I will have a look. Armin On Mon, 1 Mar 2010, DLeese at LStelcom.com wrote:> Hi again! > >> I have excellent success with the tiny "fcpci" and chan_capi, which is >> also working great with capi4hylafax. See >> net-dialup/fcpci-0.1-r1 in gentoo (should not be difficult to use this >> on other distros, but I have never done so). Do not confuse this with >> the "fritzcapi"! > > I managed to install fcpci and it seems to run fine (capiinfo output). Unfortunately i cant compile chan_capi against my Asterisk trunk r240716. Neither the trunk/head nor the 1.1.4 Version compiles. All fail with the following output: > > srvpbx:/usr/src/chan-capi-HEAD# make > [CC] chan_capi.c -> chan_capi.o > In file included from chan_capi.c:32: > chan_capi.h:34:26: error: asterisk/rtp.h: Datei oder Verzeichnis nicht gefunden > chan_capi.c: In function ?local_queue_frame?: > chan_capi.c:803: error: invalid operands to binary == (have ?union <anonymous>? and ?int?) > chan_capi.c: In function ?interface_cleanup?: > chan_capi.c:1071: warning: implicit declaration of function ?ast_rtp_destroy? > chan_capi.c: In function ?send_progress?: > chan_capi.c:1165: error: incompatible types in assignment > chan_capi.c: In function ?clear_channel_fax_loop?: > chan_capi.c:2884: error: invalid operands to binary == (have ?union <anonymous>? and ?int?) > chan_capi.c: In function ?capidev_handle_did_digits?: > chan_capi.c:3548: error: incompatible types in assignment > chan_capi.c: In function ?capi_queue_cause_control?: > chan_capi.c:3564: warning: missing braces around initializer > chan_capi.c:3564: warning: (near initialization for ?fr.subclass?) > chan_capi.c:3569: error: incompatible types in assignment > chan_capi.c:3573: error: incompatible types in assignment > chan_capi.c: In function ?capidev_handle_info_indication?: > chan_capi.c:3876: error: incompatible types in assignment > chan_capi.c:3886: error: incompatible types in assignment > chan_capi.c: In function ?handle_facility_indication_dtmf?: > chan_capi.c:4138: error: incompatible types in assignment > chan_capi.c:4149: error: incompatible types in assignment > chan_capi.c: In function ?capidev_handle_data_b3_indication?: > chan_capi.c:4292: error: incompatible types in assignment > chan_capi.c:4294: error: incompatible types in assignment > chan_capi.c: In function ?capi_signal_answer?: > chan_capi.c:4316: warning: missing braces around initializer > chan_capi.c:4316: warning: (near initialization for ?fr.subclass?) > chan_capi.c: In function ?capidev_handle_disconnect_indication?: > chan_capi.c:4605: warning: missing braces around initializer > chan_capi.c:4605: warning: (near initialization for ?fr.subclass?) > chan_capi.c:4654: error: incompatible types in assignment > chan_capi.c: In function ?capidev_handle_connection_conf?: > chan_capi.c:5025: warning: missing braces around initializer > chan_capi.c:5025: warning: (near initialization for ?fr.subclass?) > chan_capi.c: At top level: > chan_capi.c:7746: warning: initialization from incompatible pointer type > chan_capi.c: In function ?conf_interface?: > chan_capi.c:8153: warning: passing argument 2 of ?ast_parse_allow_disallow? from incompatible pointer type > chan_capi.c:8156: warning: passing argument 2 of ?ast_parse_allow_disallow? from incompatible pointer type > make: *** [chan_capi.o] Fehler 1 > > Please excuse the messed up german output, i have yet to discover how to set a debian box to "german keyboard, everything else english". > > I am limited to Asterisk trunk r240716 because i want to evaluate the T.38 <-> T.30 gateway function, which can only be patched into this revision. > In my opinion there are the following alternatives in order to get the Fritz card running with Asterisk: > > A) > Get chan-capi to compile: > Unfortunately my C knowledge seems insufficent for this. I have found out that there is noch rtp.h in the asterisk source dir, only a file named rtp_engine.h. Changing the include accordingly unfortunately only fixes the very first error. > I can't make any sense out of the second error (error: invalid operands to binary == (have "union <anonymous>" and "int")), as, in line 803, the left-hand operand of the == is no union, let alone a anonymous union. > I have already posted this at the chan-capi-users ML, but with no answer so far. > > B) > Use a binary chan_capi.so from elsewhere?! > I run Debian 5.0.2 Kernel 2.6.26-2-686. Could i take a compiled chan_capi.so from a machine with a different Asterisk 1.6 Version? > > C) > Find another way to use fcpci eith Asterisk. > Is this even possible? With mISDN? ...? > > Comments or any other Ideas are very appreciated. > > Sincerly > > Daniel Leese > > > P.s.: Philipp, many thanks fo your answers so far ;) > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >