[pjsua] Failure using kernel 2.6.39

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

 



Hi,

I don't see the native ALSA device enabled in both of your logs, so
maybe it hasn't been tried? (setting #define
PJMEDIA_AUDIO_DEV_HAS_ALSA 1 is sufficient to enable native ALSA).

In my experience (I use 2.6.32-33), it's common to have audio stuck
especially during closing with PA backend, but it never happens with
the native ALSA backend.

Also you can change the default device used by pjsystest by modifying
systest.c:120-121. If you have problems with sound device, this *is*
the utility to use before jumping in with pjsua.

?Benny


On Fri, Oct 14, 2011 at 12:08 AM, ?lvaro L?pez L?pez
<lopezavila69 at hotmail.com> wrote:
> Hi,
>
> I tried to follow your instructions, so I built pjproject-1.10 (with and
> without
> #define PJMEDIA_AUDIO_DEV_HAS_ALSA 1).
>
> My first test was to run pjsystest under the old-kernel machine (Linux
> 2.6.16.16)
> and under Linux 2.6.39. I found that in both Linux the microphone wasn?t
> working in the recording test...
> so I found the problem was pjsua (both versions) was detecting 3 sound
> devices and assigning the wrong
> one to the microphone.
>
> The correct one was "default" as it opened:
>
> Port #00[ 8KHz/20ms/1] CS5535 Audio: CS5535 Audio (hw:0,0)  transmitting to:
> #3.
>
> and wasn?t working.
>
> Now, I launch pjsua (1.0.1 and 1.10.0) with this command:
>
> /mntDAT/VoIP/pjsua --ec-tail=256 --ec-opt=0 --add-codec pcma --clock-rate
> 8000 --no-vad --quality 10 \
> --app-log-level=0 --capture-dev=1 --playback-dev=1 --auto-answer=200
>
> Afterwards, I made some tests under Linux 2.6.16.16 and 2.6.39.
>
> The "client" is pjsua 1.0.1 running under Linux 2.6.16.16:
>
> /mntDAT/VoIP/pjsua --ec-tail=256 --ec-opt=0 --add-codec pcma --clock-rate
> 8000 --no-vad --quality 10 \
> --log-file=client.log --log-level=6 --app-log-level=0 --duration=300
> sip:172.22.195.24
>
> The "server" tested both pjsuas under both kernels:
>
> /mntDAT/VoIP/pjsua --ec-tail=256 --ec-opt=0 --add-codec pcma --clock-rate
> 8000 --no-vad --quality 10 \
> --log-file=server.log --log-level=6 --app-log-level=0 --capture-dev=1
> --playback-dev=1 --auto-answer=200
>
> The main results are:
>
> - Linux 2.6.16.16 -> pjsua working OK in both versions.
> - Linux 2.6.39 -> pjsua 1.0.1 more or less OK (sometimes the sound drops...)
>                   pjsua 1.10.0 not working. Also, gets blocked and cannot
> press 'q' in order to exit.
>
> I attach some logs. I hope you could help me by having a look at them:
>
> Test1: Client Linux 2.6.16.16, pjsua 1.0.1 - Server Linux 2.6.39, pjsua
> 1.0.1
> Test2: Client Linux 2.6.16.16, pjsua 1.0.1 - Server Linux 2.6.39, pjsua
> 1.10.0
> Test3: (the same as Test 2) Client Linux 2.6.16.16, pjsua 1.0.1 - Server
> Linux 2.6.39, pjsua 1.10.0
>
> Thanks in advance.
>
>
>
>
>
>
> _______________________________________________
> 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