[Asterisk-Dev] chan_bluetooth not compiling on current 1.0 cvs

Dave Cotton dcotton at linuxautrement.com
Wed Aug 31 10:18:14 MST 2005


On Wed, 2005-08-31 at 18:58 +0200, Leandro wrote:
> Hi,
> I try to compile David Woodhouse cvs version of chan_bluetooth inside 
> latest 1.0 cvs version and I get the following errors:
> 
> gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
> -D_GNU_SOURCE  -O6 -march=i686   -DZAPTEL_OPTIMIZATIONS  
> -DASTERISK_VERSION=\"CVS-v1-0-08/31/05-16:45:07\" -DINSTALL_PREFIX=\"\" 
> -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
> -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
> -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
> -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
> -DASTMODDIR=\"/usr/lib/asterisk/modules\" 
> -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN       
> -Wno-missing-prototypes -Wno-missing-declarations   -DZAPATA_PRI   
> -DIAX_TRUNKING   -DCRYPTO -fPIC  -o chan_bluetooth.o chan_bluetooth.c
> chan_bluetooth.c:530:2: #error fish
> chan_bluetooth.c: In function `blt_read':
> chan_bluetooth.c:859: error: `loopback' undeclared (first use in this 
> function)
> chan_bluetooth.c:859: error: (Each undeclared identifier is reported 
> only once
> chan_bluetooth.c:859: error: for each function it appears in.)
> chan_bluetooth.c: In function `blt_new':
> chan_bluetooth.c:1140: error: structure has no member named `rawreadformat'
> chan_bluetooth.c:1141: error: structure has no member named `rawwriteformat'
> make[1]: *** [chan_bluetooth.o] Error 1
> make[1]: Leaving directory 
> `/usr/local/src/cvs-asterisk-1.0/asterisk/channels'
> make: *** [subdirs] Error 1
> 
> I try also on latest 1.2 cvs version and I get different following errors:
> 
> gcc -c -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
> -D_GNU_SOURCE  -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS         
> -fomit-frame-pointer  -Wno-missing-prototypes -Wno-missing-declarations 
> -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC  -o chan_bluetooth.o 
> chan_bluetooth.c
> chan_bluetooth.c: In function `blt_read':
> chan_bluetooth.c:859: error: `loopback' undeclared (first use in this 
> function)
> chan_bluetooth.c:859: error: (Each undeclared identifier is reported 
> only once
> chan_bluetooth.c:859: error: for each function it appears in.)
> chan_bluetooth.c: In function `ring_hs':
> chan_bluetooth.c:925: error: structure has no member named `callerid'
> chan_bluetooth.c:928: error: structure has no member named `callerid'
> chan_bluetooth.c:928: error: structure has no member named `callerid'
> chan_bluetooth.c:928: error: structure has no member named `callerid'
> chan_bluetooth.c:928: error: structure has no member named `callerid'
> chan_bluetooth.c:928: error: structure has no member named `callerid'
> chan_bluetooth.c: In function `blt_parse_config':
> chan_bluetooth.c:2805: warning: implicit declaration of function `ast_load'
> chan_bluetooth.c:2805: warning: assignment makes pointer from integer 
> without a cast
> chan_bluetooth.c: In function `__unload_module':
> chan_bluetooth.c:3094: warning: passing arg 1 of 
> `ast_channel_unregister' from incompatible pointer type
> chan_bluetooth.c: In function `load_module':
> chan_bluetooth.c:3196: warning: passing arg 1 of `ast_channel_register' 
> from incompatible pointer type
> chan_bluetooth.c:3196: error: too many arguments to function 
> `ast_channel_register'
> make[1]: *** [chan_bluetooth.o] Error 1
> make[1]: Leaving directory `/usr/local/src/cvs-asterisk/asterisk/channels'
> make: *** [subdirs] Error 1
> 

For me these errors came from the if clauses trying to sort out
differant asterisk versions. I went into the code and removed the
clauses so it compiled for me on HEAD.


> Not -dev related, is there anyone who wrote an "howto" on configuring 
> chan_bluetooth? Using Theo Zourzouvillys version (a bit outdated for 
> what I read on the list) with 1.0 asterisk, I manage to get a call using 
> a SonyEricsson T630, but no audio in either way. Maybe I use wrong 
> parameters in the bluetooth.conf... anyone using the same phone (or 
> whatever phone) can send me (or on -user list) a "sdptool browse" output 
> and a bluetooth.conf file?

If had the same my Nokia 6680 dials out and * picks up when a call comes
in but no audio.

My Logitech headset rings but pressing the answer button does not pickup
the call.


When I have time I'll do some more work on it.
-- 
Dave Cotton <dcotton at linuxautrement.com>




More information about the asterisk-dev mailing list