BUG: iPhone and bluetooth

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



have you ever tried iphonesound.c rewritten by Samvel, author of Siphon project.
Maybe it would work well?
 
 
------------------ Original ------------------
From:  "rukshanf"<rukshanf@xxxxxxxxxxxxxxx>;
Date:  Thu, Jun 10, 2010 01:40 PM
To:  "pjsip"<pjsip at lists.pjsip.org>; 

Subject:  BUG: iPhone and bluetooth

 
 After experimenting with these for few days, I have come to the conclusion that there is possible bug in PJSIP coreaudio_dev.c

When I try to route input to the bluetooth using

  pjmedia_aud_dev_route route = PJMEDIA_AUD_DEV_ROUTE_BLUETOOTH;
  pjsua_snd_set_setting(PJMEDIA_AUD_DEV_CAP_INPUT_ROUTE, 
                        &route, PJ_FALSE);

I can hear static for 1 - 2 seconds on the bluetooth headset and then nothing, the audio is then continued to be played via the iPhone earpiece.

Here is the log of when this occurs, from the log it looks like it successfully changed route to bluetooth but for some reason it automatically changes back to the earpiece. Any idea?

 15:39:31.797   strm0xab5974  Discarding frame #21605142: eff=43 disc=6 orig:21605093 seq_delta:7
 15:39:31.920   strm0xab5974  Discarding frame #21605149: eff=43 disc=7 orig:21605099 seq_delta:7
<RF> success setting
 15:39:33.388 coreaudio_dev.  audio route changed
 15:39:33.502 coreaudio_dev.  core audio stream stopped
 15:39:34.355 coreaudio_dev.  core audio stream started
 15:39:34.355 coreaudio_dev.  core audio unit successfully reinstantiated
 15:39:34.358 coreaudio_dev.  audio route changed
 15:39:34.403 coreaudio_dev.  core audio stream stopped
 15:39:34.449 coreaudio_dev.  core audio stream started
 15:39:34.449 coreaudio_dev.  core audio unit successfully reinstantiated
 15:39:34.489 coreaudio_dev.  Recorder thread started
 15:39:34.490 os_core_unix.c  Info: possibly re-registering existing thread
 15:39:34.490 coreaudio_dev.  Player thread started
 15:39:34.490   strm0xab5974  jb updated(2), lvl=40 pre=0, size=49
 15:39:34.493   Master/sound  Underflow, buf_cnt=0, will generate 1 frame
 15:39:34.498   strm0xab5974  Discarding frame #21605411: eff=46 disc=0 orig:21605365 seq_delta:262
 15:39:34.565   strm0xab5974  Discarding frame #21605418: eff=46 disc=1 orig:21605371 seq_delta:7
 15:39:34.637   strm0xab5974  Discarding frame #21605425: eff=44 disc=2 orig:21605379 seq_delta:7
 15:39:34.697   strm0xab5974  Discarding frame #21605432: eff=46 disc=3 orig:21605383 seq_delta:7

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip at lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100610/65828a3d/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux