Hi, I found a problem when trying to install the module chan_bluetooth from 'the crazy greek'. Most of installation seems fine, chan_bluetooth.so is created and located in /usr/src/asterisk/channels/. But when I try to start up asterisk, I get the following message: [chan_bluetooth.so]Jan 8 16:55:07 WARNING[18861]: loader.c:258 ast_load_resource: libbluetooth.so.1: cannot open shared object file: No such file or directory Jan 8 16:55:07 WARNING[18861]: loader.c:440 load_modules: Loading module chan_bluetooth.so failed! That file (libbluetooth.so.1) is in /usr/local/lib/. Should I copy it somewhere else? Where is it trying to find the file? Thanks, Victor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051108/4e62613b/attachment.htm
The /etc/asterisk/asterisk.conf file should indicate the current modules folder. I believe the default is /usr/lib/asterisk/modules for a Red Hat-y install hth -----Original Message----- From: Victor Alvarez [mailto:victor@sentidocomun.es] Sent: Tuesday, November 08, 2005 10:00 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] libbluetooth Hi, I found a problem when trying to install the module chan_bluetooth from 'the crazy greek'. Most of installation seems fine, chan_bluetooth.so is created and located in /usr/src/asterisk/channels/. But when I try to start up asterisk, I get the following message: [chan_bluetooth.so]Jan 8 16:55:07 WARNING[18861]: loader.c:258 ast_load_resource: libbluetooth.so.1: cannot open shared object file: No such file or directory Jan 8 16:55:07 WARNING[18861]: loader.c:440 load_modules: Loading module chan_bluetooth.so failed! That file (libbluetooth.so.1) is in /usr/local/lib/. Should I copy it somewhere else? Where is it trying to find the file? Thanks, Victor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051108/1d4fa7a6/attachment.htm
Victor Alvarez wrote:> Hi, > > I found a problem when trying to install the module chan_bluetooth > from 'the crazy greek'. Most of installation seems fine, > chan_bluetooth.so is created and located in > /usr/src/asterisk/channels/. But when I try to start up asterisk, I > get the following message: > > [chan_bluetooth.so]Jan 8 16:55:07 WARNING[18861]: loader.c:258 > ast_load_resource: libbluetooth.so.1: cannot open shared object file: > No such file or directory > Jan 8 16:55:07 WARNING[18861]: loader.c:440 load_modules: Loading > module chan_bluetooth.so failed! > > That file (libbluetooth.so.1) is in /usr/local/lib/. Should I copy it > somewhere else? Where is it trying to find the file? > > Thanks, > Victor. >First, check your /etc/ld.so.conf file and make sure "/usr/local/lib" is in there. When your are certain it's there, run "ldconfig -v" and all the .so objects should scroll by and you'll see your new bluetooth shared object file! Asterisk should start after that. Mark
Thanks Colin and Mark for your answers. I finally manage to start up asterisk by copying libbluetooth to /usr/lib/. Now the final step comes, make this bluetooth thing works. These are my configuration files: /etc/bluetooth/rfcomm.conf: rfcomm0 { bind yes; device 00:0E:6D:34:BD:B1; channel 3; comment "Bluetooth device"; } /etc/asterisk/bluetooth.conf: [general] rfchannel_ag = 3 interface = 0 ;; A Nokia 6310i [00:0E:6D:34:BD:B1] name = Nokia type = AG channel = 3 autoconnect = yes /etc/asterisk/extensions.conf: [general] static=yes writeprotect=yes autofallthrough=yes [globals] DEFAULT_RINGING_TIME=20 [default] exten => _01,1,Dial(SIP/${EXTEN}) exten => _02,1,Dial(SIP/${EXTEN}) exten => _03,1,Dial(BLT/test/XXX) (where XXX is the mobile phone number) And the result starting up asterisk: [chan_bluetooth.so] => (Bluetooth Channel Driver) == Parsing '/etc/asterisk/bluetooth.conf': Found Jan 9 11:44:14 NOTICE[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1825 rfcomm_listen: Listening for RFCOMM channel 3 connections on FD 11 Jan 9 11:44:14 NOTICE[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1825 rfcomm_listen: Listening for RFCOMM channel 6 connections on FD 12 Jan 9 11:44:14 ERROR[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1841 sco_listen: Can't create SCO socket: No such file or directory (errno: 2) Jan 9 11:44:14 WARNING[3401]: loader.c:345 ast_load_resource: chan_bluetooth.so: load_module failed, returning -1 == Unregistered channel type 'BLT' Jan 9 11:44:14 WARNING[3401]: loader.c:440 load_modules: Loading module chan_bluetooth.so failed! More: - There is a bug reported regarding SCO links on Theo's site (http://www.crazygreek.co.uk/content/chan_bluetooth) - rfcomm, l2cap,hci_usb and bluez are sucesfully loaded into the system. - If I start up asterisk without bluetooth.conf, I don't have bluetooth command from the console. - Theo doesn't mention rfcomm in his documentation. Does rfcomm.conf file have to be configured and the module loaded? Does anybody know anything about this bug or just how to sort this out? Thank you very much, Victor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051109/1ebe3bc5/attachment.htm
Hi, Thanks Dave, gracias Jose Luis ;-). Once everything is configured, the mobile phone connected via bluetooth.. I've got a segmentation fault when trying to dial from sip to bluetooth: CLI> Nov 11 16:53:34 NOTICE[2222]: /usr/src/chan_bluetooth/chan_bluetooth.c:2041 try_connect: Initialised bluetooth link to device Nokia [AG] Nokia < AT+BRSF=23 [AG] Nokia > AT+BRSF=23 Nov 11 16:53:34 WARNING[2222]: /usr/src/chan_bluetooth/chan_bluetooth.c:2399 handle_rd_data: Device Nokia: Unhandled Unsolicited: +BRSF: 47 [AG] Nokia > +BRSF: 47 [AG] Nokia > OK [AG] Nokia < AT+CIND=? [AG] Nokia > AT+CIND=? [AG] Nokia > +CIND: ("call",(0,1)),("service",(0,1)),("call_setup",(0-3)),("callsetup",(0-3)) [AG] Nokia > OK [AG] Nokia < AT+CIND? [AG] Nokia > AT+CIND? Nov 11 16:53:34 NOTICE[2222]: /usr/src/chan_bluetooth/chan_bluetooth.c:417 set_cind: Audio Gateway Nokia got signal [AG] Nokia > +CIND: 0,1,0,0 [AG] Nokia > OK [AG] Nokia < AT+CMER=3,0,0,1 [AG] Nokia > AT+CMER=3,0,0,1 [AG] Nokia > OK [AG] Nokia < AT+CLIP=1 [AG] Nokia > AT+CLIP=1 [AG] Nokia > OK [AG] Nokia < AT+CGMI=? [AG] Nokia > AT+CGMI=? [AG] Nokia > OK [AG] Nokia < AT+CGMI [AG] Nokia > AT+CGMI [AG] Nokia > Nokia [AG] Nokia > OK bluetooth show peers BDAddr Name Role Status A/C SCOCon/Fd/Th Sig ----------------- ---------- ---- ----------- --- ------------ --- 00:12:62:E1:E5:45 Nokia AG Ready Yes -1/-1/0 Yes -- Executing Dial("SIP/01-25d3", "BLT/Nokia") in new stack Segmentation fault Version of asterisk: CVS-v1-0-01/08/05-16:05:25 . There is something here I don't quite grasp. If I use the command cvs checkout -r v1-0 zaptel libpri asterisk asterisk-addons with the purpose of download the last stable version, why do I get a version dated january 2005?? (because that's an american date format 8th January 2005, right?). If I try last CVS HEAD the result is even worse. Can't start up asterisk: [chan_bluetooth.so]Nov 11 20:43:28 WARNING[15987]: loader.c:325 __load_resource: /usr/lib/asterisk/modules/chan_bluetooth.so: undefined symbol: ast_pthread_create Nov 11 20:43:28 WARNING[15987]: loader.c:554 load_modules: Loading module chan_bluetooth.so failed! line 654 of chan_bluetooth.c: if (ast_pthread_create(&(dev->sco_thread), NULL, sco_thread, dev) < 0) { I wonder if there is any patch or any other explanation for that segmentation fault. In any case, thanks for your attention and support. Victor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051111/e2f7a639/attachment.htm