Summary:ASTERISK-10075: One way totaly distorted audio, the other way is OK.
Reporter:Josef Liska (phokz)Labels:
Date Opened:2007-08-13 17:02:28Date Closed:2007-08-16 04:55:09
Versions:Frequency of
Environment:Attachments:( 0) log.txt
Description:My test setup is
Nokia6234---BT Dongle MSI BToes---openSUSE 10.2 w/Asterisk 1.4.10---Twinkle sip phone on same machine.

When I place call from SIP to mobile, it dials and with 70% probability everything goes just fine.

However, some calls are bad. The audio from phone do not get through to pbx. SIP phone plays back random memory content - loud noise. In syslog appears message

Aug 13 23:57:56 gromit kernel: hci_scodata_packet: hci0 SCO packet for unknown connection handle 73

just before call is bridged. It looks as if receiving thread died or somehow blocked. There must be a kind of race condition.

But sometimes the same messages appear in log and call is good.

First call after plugging in BT dongle is almost certainly good. Once there is a bad call, probability of next call being bad too is high. After unplugging/replugging BT dongle the next call is almost certainly good.

Comments:By: Dave Bowerman (dbowerman) 2007-08-13 18:18:16


could you please attach the console output when this happens.
be sure to 'core set debug 1' and make sure debug output goes to the console via /etc/asterisk/logger.conf

Also Note: chan_mobile is only developed and tested for trunk at the moment. it is not tested on 1.4.x releases.

By: Josef Liska (phokz) 2007-08-14 01:45:58

dbowerman: log is attached. I made 4 calls, first three calls were good, last call was bad.

I'd like to use chan_mobile in production environment with sip, iax2 and isdn channels. Thats why I'd prefer to make it working with 1.4.10.

I also tested svn version of asterisk a while ago, but as development version might be broken, once I tried it it just crashed, second time I got no sound at all. I should give it a try again.

By: Josef Liska (phokz) 2007-08-14 16:56:26

Tested again with asterisk, same behavior. Tested again with asterisk trunk r.79502 => no sound.

Then I tested asterisk with current chan_mobile on different computer, older HP machine with SuSE10.0, same BT dongle and same mobile phone.
Unfortunately it is the same.

Tried again with second mobile phone, N6230i, same result.

By: Josef Liska (phokz) 2007-08-16 03:50:51

I have tested my setup again with different BT dongle.
New BT dongle has this ID:
1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

Old BT dongle has this ID:
0db0:6970 Micro Star International

Now it seems to work correctly! I'll perform some more test, and post the results.

dbowerman: if you are interested in this issue, I can send you the "bad" BT dongle for your own testing.

I'd suggest making a blacklist of misbehaving dongles, at least in docs, but better in program itself. It could issue a big fat warning during initialization if BT dongle ID is in list of know bad dongles.

I also think this issue can be marked closed.

By: Dave Bowerman (dbowerman) 2007-08-16 04:51:56


ok, ill mark this one closed and make a note about the bus id of the adapter.
ill see if i can get one here locally to test with, otherwise ill contact you.