Return-Path: From: "Khaled" To: Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0002_01C5E537.44FEABF0" Subject: [Bluez-users] bluez and asterisk Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 9 Nov 2005 14:09:59 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0002_01C5E537.44FEABF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello All, I have been trying to tackle Theo Zourzouvillys' project on setting up bluetooth support for Asterisk (http://crazygreek.co.uk/content/chan_bluetooth), but have run into problems and since his mailing list link does not work, I turn to you at bluez-users. My goal is to set up a voice->gsm gateway whereby I can send a call over SIP which routes that call out over a mobile connected via Bluetooth. Being able to send up to four simultaneous calls to be routed via four different mobiles would be even better :-). It seems that Theo's is the perfect project... I am sure there is someone out there who has done this and can help/hint me... I have successfully: 1. integrated chan_bluetooth into asterisk 2. installed bluez protocol stack: a.. bluez-libs-2.22.tar.gz b.. bluez-utils-2.22.tar.gz c.. bluez-pin-0.26.tar.gz d.. bluez-firmware-1.1.tar.gz e.. bluez-hcidump-1.27.tar.gz f.. bluez-hciemu-1.2.tar.gz from www.bluez.org At this point, on the bluetooth side, my bluetooth dongle can scan and recognise bluetooth enabled phones. However... At starting up Asterisk, I get the following error messages: [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! Below are my various config files. Theo did not mention anything about rfcomm so I am not sure if I am to use this, so I have been playing about a little and learning at the same time, so please be patient with me and any advice/info is much appreciated... 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) Also, there is a bug reported at Theo's site regarding SCO links which is similar to what I am doing here...any ideas on this? FYI: - I have loaded rfcomm, l2cap, hci_usb, bluez modules successfully to the system. - hciconfig shows the interface to be UP - hcitool scan recognises bluetooth phone Forgive me for the long entry. In anticipation of ALL replies, Khaled ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------=_NextPart_000_0002_01C5E537.44FEABF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello All,
 
I have been trying to tackle Theo = Zourzouvillys'=20 project on setting up bluetooth support for Asterisk (http://crazygreek= .co.uk/content/chan_bluetooth),=20 but have run into problems and since his mailing list link does not = work, I turn=20 to you at bluez-users.
 
My goal is to set up a voice->gsm gateway=20 whereby I can send a call = over SIP=20 which routes that call out over a mobile connected via Bluetooth. Being = able to=20 send up to four simultaneous calls to be routed via four different = mobiles would=20 be even better :-). It seems that Theo's is the perfect=20 project...
 
I am sure there is someone out there who has = done this=20 and can help/hint me...
 
I have = successfully:
1. integrated chan_bluetooth into=20 asterisk
2. installed bluez protocol=20 stack:
  • bluez-libs-2.22.tar.gz
  • bluez-utils-2.22.tar.gz
  • bluez-pin-0.26.tar.gz
  • bluez-firmware-1.1.tar.gz  
  • bluez-hcidump-1.27.tar.gz
  • bluez-hciemu-1.2.tar.gz 
    from www.bluez.org 
=
 
At=20 this point, on the bluetooth side, my bluetooth dongle can = scan and=20 recognise bluetooth enabled phones. However...
 
At starting up Asterisk, I get the following error=20 messages:
 
 [chan_bluetooth.so] =3D> (Bluetooth Channel = Driver)
  =3D=3D=20 Parsing '/etc/asterisk/bluetooth.conf': Found
Jan  9 11:44:14=20 NOTICE[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1825 = rfcomm_listen:=20 Listening for RFCOMM channel 3 connections on FD 11
Jan  9 = 11:44:14=20 NOTICE[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1825 = rfcomm_listen:=20 Listening for RFCOMM channel 6 connections on FD 12
Jan  9 = 11:44:14=20 ERROR[3401]: /usr/src/chan_bluetooth/chan_bluetooth.c:1841 sco_listen: = Can't=20 create SCO socket: No such file or directory (errno: 2)
Jan  9 = 11:44:14=20 WARNING[3401]: loader.c:345 ast_load_resource: chan_bluetooth.so: = load_module=20 failed, returning -1
  =3D=3D Unregistered channel type = 'BLT'
Jan  9=20 11:44:14 WARNING[3401]: loader.c:440 load_modules: Loading module=20 chan_bluetooth.so failed!
 
Below are my=20 various config files. Theo did not mention anything about rfcomm so I am = not=20 sure if I am to use this, so I have been playing about a little and = learning at=20 the same time, so please be patient with me and any advice/info is much=20 appreciated...
 
 
  These are my configuration = files:
 
/etc/bluetooth/rfcomm.conf:
 
rfcomm0=20 {
        bind yes;
        device=20 00:0E:6D:34:BD:B1;
        channel=20 3;
        comment=20 "Bluetooth device";
}
 
/etc/asterisk/bluetooth.conf: 
 
[general]
rfchannel_ag =3D = 3
interface =3D=20 0
 
;; A Nokia=20 6310i
[00:0E:6D:34:BD:B1]
name      &= nbsp; =3D=20 Nokia
type        =3D=20 AG
channel     =3D 3
autoconnect =3D = yes
 
/etc/asterisk/extensions.conf:
 
[general]
static=3Dyes
writeprotect=3Dyes
autofallthrou= gh=3Dyes
 
[globals]
DEFAULT_RINGING_TIME=3D20
 
[default]
exten =3D>=20 _01,1,Dial(SIP/${EXTEN})
exten =3D> = _02,1,Dial(SIP/${EXTEN})
exten =3D>=20 _03,1,Dial(BLT/test/XXX)
 (where XXX is the mobile phone = number)

Also, there is a bug reported at Theo's site = regarding=20 SCO links which is similar to what I am doing here...any ideas on=20 this?
 
FYI:
- I have loaded rfcomm, l2cap, hci_usb, bluez = modules=20 successfully to the system.
- hciconfig shows the interface to be = UP
- hcitool scan recognises bluetooth = phone
 
Forgive me for the long entry. In = anticipation of ALL=20 replies,
 
Khaled

 
  

___________________________________= ___________________________________
This=20 email has been scanned by the MessageLabs Email Security System.
For = more=20 information please visit http://www.messagelabs.com/email=20
_____________________________________________________________________= _
------=_NextPart_000_0002_01C5E537.44FEABF0-- ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users