[asterisk-users] chan_bluetooth - one way audio

Danko Miocevic danko at santirso.com.ar
Sun Oct 15 22:54:00 MST 2006


I have compiled chan_bluetooth and I have used it many times before... but 
now I have a problem and I can´t find a solution. I have a bluetooth dongle 
(MSI) connected to my asterisk and I use a V3 phone to make calls to another 
cell phones... the thing is that I just get one way audio.. I can hear 
people from my IAX softphone but they can´t hear me... I don´t know what 
could be.. anyone had the same problem? Thanks for your time,
                                                                             
                                                                             
                Danko

This is my bluetooth.conf

[general]
; Channel we listen on as a HS (Headset)
rfchannel_ag = 7
; hci interface to use (number - e.g '0')
interface = 0


;; Some phone example

[00:14:9A:F8:EB:E7]
name        = V3        ; The name of the phone
channel     = 3                 ; The channel used by the HS audio gateway 
profi
le
autoconnect = yes       ; Tells chan_bluetooth to establish link at startup
type        = AG



~# sdptool search --bdaddr 00:14:9A:F8:EB:E7 0x111F
Class 0x111F
Searching for 0x111F on 00:14:9A:F8:EB:E7 ...
Service Name: Hands-Free voice gateway
Service Description: Hands-Free voice gateway
Service Provider: /a/mobile/system/cl.gif
Service RecHandle: 0x10007
Service Class ID List:
  "Handfree Audio Gateway" (0x111f)
  "Generic Audio" (0x1203)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 7
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
  code_ISO639: 0x6672
  encoding:    0x6a
 base_offset: 0xd800
  code_ISO639: 0x6573
  encoding:    0x6a
  base_offset: 0xd803
  code_ISO639: 0x7074
  encoding:    0x6a
  base_offset: 0xd806
Profile Descriptor List:
  "Handsfree" (0x111e)
    Version: 0x0101

It didn´t worked with channel 7.. I can´t make them pair..
Asterisk initialization:

NOTICE[3263]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:2227 
try_connect: Initialised bluetooth link to device V3
 [AG]         V3 < AT+BRSF=23
 [AG]         V3 > +MBAN: Copyright 2000-2002 Motorola, Inc.
 WARNING[3272]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:622 
sco_thread: SCO thread started on fd 21, pid 3249
 WARNING[3263]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:2585 
handle_rd_data: Device V3: Unhandled Unsolicited: +BRSF: 63
 [AG]         V3 > +BRSF: 63
 [AG]         V3 > OK
 [AG]         V3 < AT+CIND=?
 [AG]         V3 > +CIND: ("Voice 
Mail",(0,1)),("service",(0,1)),("call",(0,1)),("Roam",(0-2)),("signal",(0-5)),("callsetup",(0-3)),("smsfull",(0,1))
 [AG]         V3 > OK
 [AG]         V3 < AT+CIND?
NOTICE[3263]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:510 
set_cind: Audio Gateway V3 got signal
 [AG]         V3 > +CIND: 0,1,0,0,5,0,0
 [AG]         V3 > OK
 [AG]         V3 < AT+CMER=3,0,0,1
 [AG]         V3 > OK
 [AG]         V3 < AT+CLIP=1
 [AG]         V3 > OK
 [AG]         V3 < AT+CGMI
 [AG]         V3 > +CGMI: "Motorola CE, Copyright 2004"
 [AG]         V3 > OK
 [AG]         V3 < AT+CGMI
 [AG]         V3 > +CGMI: "Motorola CE, Copyright 2004"
 [AG]         V3 > OK
ERROR[3272]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:702 
sco_thread: SCO connection error: Connection reset by peer (errno 104)


Making a call

    -- Accepting AUTHENTICATED call from 192.168.0.102:
       > requested format = gsm,
       > requested prefs = (),
       > actual format = gsm,
       > host prefs = (),
       > priority = mine
    -- Executing Dial("IAX2/danko-2", "BLT/V3/1150246209") in new stack
 [AG]         V3 < ATD1150246209;
    -- Called V3
 [AG]         V3 > OK
 [AG]         V3 > +CIEV: 6,2
 [AG]         V3 > +CIEV: 5,4
WARNING[3290]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:622 
sco_thread: SCO thread started on fd 26, pid 3249
 [AG]         V3 > +CIEV: 6,3
    -- BLT/V3 is ringing
[AG]         V3 > +CIEV: 5,4
 [AG]         V3 > +CIEV: 5,5
 [AG]         V3 > +CIEV: 5,4
 [AG]         V3 > +CIEV: 5,5
 [AG]         V3 > +CIEV: 5,4
 [AG]         V3 > +CIEV: 5,5
 [AG]         V3 > D: VOICE
 [AG]         V3 > +CIEV: 6,0
 [AG]         V3 > +CIEV: 5,4
....
....
....
WARNING[3290]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:686 
sco_thread: Wrote <48 to sco
....
....
WARNING[3290]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:686 
sco_thread: Wrote <48 to sco
....
....
WARNING[3290]: 
/usr/src/asterisk-test/bluetooth/chan_bluetooth/chan_bluetooth.c:686 
sco_thread: Wrote <48 to sco

and lots and lots of the same... 



More information about the asterisk-users mailing list