[Asterisk-Users] Re: libbluetooth
José Luis Gómez
jgomez at qualis.com.ar
Wed Nov 9 07:14:30 MST 2005
Hello Victor.
Do you start the bluetooth service?
what does the command hciconfig show?
In extensions.conf you have to put:
exten => _03,1,Dial(Blt/XXX)
where XXX is the phone name configured in bluetooth.conf
Regards.
--
José Luis Gómez
Qualis Information Technology
Av. Rivadavia 2553, PB Of. 43 EP
0342-4565684 int 102
Bs. As. 011-51990896
www.qualis.com.ar
Soporte 0810-8880022
Santa Fe - Argentina
El mié, 09-11-2005 a las 12:01 +0000, Victor Alvarez escribió:
> 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.
>
>
>
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list