pjsua is trying to open inactive bluetooth headset

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

 



Hi Alexei,

Could you attach us the complete log (if possible, before and after the patch)?

Thanks,
Ming

On Sun, Jan 16, 2011 at 9:23 PM, Alexei Kuznetsov <eofster at gmail.com> wrote:
> Applied the patch to the latest release (1.8.10), but the problem still exists.
>
> Make call: sip:localhost
> ?15:40:18.300 ?pjsua_media.c ?Opening sound device PCM at 16000/1/20ms
> ?15:40:18.310 ?ec0x10033c290 ?AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=23 ms
> ?15:40:33.768 ?pjsua_media.c ?Opening sound device PCM at 44100/1/20ms
> ?15:40:33.777 ?ec0x10033c9f0 ?AEC created, clock_rate=44100, channel=1, samples per frame=882, tail length=200 ms, latency=20 ms
> ?15:40:46.331 ?pjsua_media.c ?Opening sound device PCM at 48000/1/20ms
> ?15:40:46.334 ?ec0x10180eae0 ?AEC created, clock_rate=48000, channel=1, samples per frame=960, tail length=200 ms, latency=20 ms
> ?15:40:58.945 ?pjsua_media.c ?Opening sound device PCM at 32000/1/20ms
> ?15:40:58.949 ?ec0x10180c900 ?AEC created, clock_rate=32000, channel=1, samples per frame=640, tail length=200 ms, latency=20 ms
> ?15:41:11.401 ?pjsua_media.c ?Opening sound device PCM at 16000/1/20ms
> ?15:41:11.404 ?ec0x10180d9e0 ?AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=23 ms
> ?15:41:24.091 ?pjsua_media.c ?Opening sound device PCM at 8000/1/20ms
> ?15:41:24.092 ?ec0x10033c080 ?AEC created, clock_rate=8000, channel=1, samples per frame=160, tail length=200 ms, latency=49 ms
> ?15:41:36.564 ?pjsua_media.c ?Unable to open sound device: Unknown error 537310186 [status=537310186]
>
> I'm getting this when the headset is paired but not connected, and the bluetooth is turned on in the OS when pjsua launches. If bluetooth isn't turned on on pjsua launch, everything's fine.
>
>
> And there is another thing. If bluetooth is turned on and the headset is paired and connected, pjsua exits with asserion, but my Cocoa app linked against the same binaries doesn't do so. Turns out that's because I'm setting sound IO explicitly, even to the default, built-in, devices. And if, when on the call, I'm switching to the headset from my app, it exits with the same assertion.
>
> [Made a call to sip:localhost]
> From: <sip:192.168.1.3>
> To: <sip:localhost>
> Press a to answer or h to reject call
> ?16:05:06.292 ? pjsua_core.c ?RX 302 bytes Response msg 100/INVITE/cseq=25860 (rdata0x10085be28) from UDP 127.0.0.1:5060:
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 192.168.1.3:5060;rport=5060;received=127.0.0.1;branch=z9hG4bKPj5VWwNGymDBwZDGDrNpbde-KWog829yoa
> Call-ID: 2xwY0kLV0RV2goQbQe2N8QfjEJUAWtMH
> From: <sip:192.168.1.3>;tag=mqjPHOUACJZkROKY3yhsItBRxEYBnzAL
> To: <sip:localhost>
> CSeq: 25860 INVITE
> Content-Length: ?0
>
>
> --end msg--
> ?16:05:06.365 os_core_unix.c ?Info: possibly re-registering existing thread
> Assertion failed: (nsamples < strm->resample_buf_size), function resample_callback, file ../src/pjmedia-audiodev/coreaudio_dev.c, line 747.
> Abort trap
>
> Alexei
>
>
> On 13 Jan, 2011, at 19:47, Ming wrote:
>
>> Hi Alexei,
>>
>> Currently, Mac's CoreAudio backend will use the first audio
>> input/output device. I just committed the change for it to use the
>> system's default audio input/output device instead in ticket #1196
>> (http://trac.pjsip.org/repos/ticket/1196). Please let us know if there
>> is any problem. Thanks.
>>
>> Regards,
>> Ming
>>
>> On Thu, Jan 13, 2011 at 7:33 AM, Alexei Kuznetsov <eofster at gmail.com> wrote:
>>> Hi,
>>>
>>> I'm on a Mac using pjsua 1.8.10. I have a bluetooth headset which is paired with the Mac, but is not being used. When I make a call pjsua tries to open an audio device. Nothing happens and pjsua retries to open the device again and again. Then standard dialog box from the OS appears that says that bluetooth audio failed and there is a button "Stop using headset". After pressing the button pjsua prints out the last two lines, and returns to its default state with no active calls. During all this, default sound IO in the OS are Internal Speakers and Internal Microphone.
>>>
>>> Make call: sip:1 at localhost
>>> ?02:17:10.833 ?pjsua_media.c ?Opening sound device PCM at 16000/1/20ms
>>> ?02:17:12.912 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:12.913 ?pjsua_media.c ?Opening sound device PCM at 44100/1/20ms
>>> ?02:17:14.923 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:14.923 ?pjsua_media.c ?Opening sound device PCM at 48000/1/20ms
>>> ?02:17:16.936 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:16.936 ?pjsua_media.c ?Opening sound device PCM at 32000/1/20ms
>>> ?02:17:18.949 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:18.949 ?pjsua_media.c ?Opening sound device PCM at 16000/1/20ms
>>> ?02:17:20.978 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:20.978 ?pjsua_media.c ?Opening sound device PCM at 8000/1/20ms
>>> ?02:17:20.980 ?ec0x10180f5c0 ?AEC created, clock_rate=8000, channel=1, samples per frame=160, tail length=200 ms, latency=49 ms
>>>
>>> ?02:17:41.588 coreaudio_dev. ?core audio stream stopped
>>> ?02:17:41.588 ?pjsua_media.c ?Unable to open sound device: Unknown error 537310186 [status=537310186]
>>>
>>>
>>> Why could pjsua try to open currently unused bluetooth audio device that is also not the default device? Any help is very appreciated. Many Telephone.app users suffer from this behavior.
>>>
>>> Alexei
>
>
> _______________________________________________
> 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
>



[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