PJThread register fails when I unplug/plugin head phones

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

 



On Sat, Nov 6, 2010 at 8:50 PM, Mr. Gecko <grmrgecko at gmail.com> wrote:
> Is it crashing for you too?

Not always and I can't reproduce it right now.

What even more strange is that everything's okay when I'm using
pjsua-lib in my app. In that case when I'm plugging or unplugging
headphones, pjsip goes silent, generates some underflows and then
sound re-appears and underflow messages are not generated any more.
But when I'm using pjsua tool from exactly the same build, the sound
stops and underflow messages never end, as I wrote before.

Alexei


> On Nov 6, 2010, at 12:34 PM, Alexei Kuznetsov wrote:
>
>> Here's what happens when I plug or unplug headphones:
>>
>> 20:26:18.140 ? ?pjsua_app.c ?Call 1 state changed to CONFIRMED
>> 20:26:18.452 ? ? ? stream.c ?G722 codec used, remote samples per
>> frame detected = 160
>> 20:26:18.769 strm0x1008f154 ?VAD re-enabled
>> 20:26:19.175 ? sound_port.c ?EC activated
>> 20:26:22.223 ? Master/sound ?Buffer size adjusted from 1175 to 696
>> (eff_cnt=559)
>> 20:26:23.162 ?ec0x100314310 ?Underflow, buf_cnt=0, will generate 1 frame
>> 20:26:23.205 ? Master/sound ?Buffer size adjusted from 1016 to 581
>> (eff_cnt=559)
>> 20:26:24.004 ?ec0x100314310 ?Underflow, buf_cnt=0, will generate 1 frame
>> 20:26:24.965 ?ec0x100314310 ?Underflow, buf_cnt=0, will generate 1 frame
>>
>> And so on. And the sound stops.
>>
>> I configured pjsproject 1.8.5 with the following settings in config_site.h:
>> #define PJSIP_DONT_SWITCH_TO_TCP 1
>> #define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 1
>>
>> I built it on the 64-bit iMac with Mac OS X 10.6.4 and used pjsua
>> tool. Here's file output:
>> $ file pjsua-i386-apple-darwin10.4.0
>> pjsua-i386-apple-darwin10.4.0: Mach-O 64-bit executable x86_64
>>
>> 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