[Asterisk-Users] Re: libbluetooth

Victor Alvarez victor at sentidocomun.es
Wed Nov 9 05:01:25 MST 2005


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


More information about the asterisk-users mailing list