linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] bluez and asterisk
@ 2005-11-09 14:09 Khaled
  2005-11-09 15:35 ` Marcel Holtmann
  0 siblings, 1 reply; 14+ messages in thread
From: Khaled @ 2005-11-09 14:09 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 3490 bytes --]

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
______________________________________________________________________

[-- Attachment #2: Type: text/html, Size: 10929 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-11-11 11:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-09 14:09 [Bluez-users] bluez and asterisk Khaled
2005-11-09 15:35 ` Marcel Holtmann
2005-11-09 16:06   ` Khaled
2005-11-09 22:58     ` Marcel Holtmann
2005-11-10 13:07       ` Khaled
2005-11-10 13:55         ` Marcel Holtmann
2005-11-10 14:30           ` Khaled
2005-11-10 14:41             ` Marcel Holtmann
2005-11-10 14:45               ` Khaled
2005-11-10 14:56                 ` Marcel Holtmann
2005-11-10 16:58                   ` Khaled
2005-11-10 17:24                     ` Marcel Holtmann
2005-11-11 11:26                       ` [Bluez-users] bluez and asterisk - new problem Khaled
2005-11-11 11:31                         ` Khaled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).