All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khaled" <khaled@ipbill.com>
To: <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] bluez and asterisk
Date: Wed, 9 Nov 2005 14:09:59 -0000	[thread overview]
Message-ID: <HCEOIFALKKLBLJPENPNOGEEHCAAA.khaled@ipbill.com> (raw)

[-- 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 --]

             reply	other threads:[~2005-11-09 14:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-09 14:09 Khaled [this message]
2005-11-09 15:35 ` [Bluez-users] bluez and asterisk 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HCEOIFALKKLBLJPENPNOGEEHCAAA.khaled@ipbill.com \
    --to=khaled@ipbill.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.