Alsa errors: is this pjsip bug?

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

 



On Thu, Jul 31, 2014 at 12:26 PM, Warpme <warpme at o2.pl> wrote:
> Hi *
>
> I'm wonder: are below errors an pjsip bug or rather issue is on my side?
>
> Error is triggered by python app using libpjsip 2.2.1 with kernel 3.15.7 and
> alsalib/util 1.0.28.
> Hardware is ION1 with analog audio IN/OUT.
>
> My app is working OK except I can't get working local->remote audio.
> Remote->local works OK.
> Mic is working  - as I can hear Mic in speakers (in fact this audio loop is
> constant - no mater what libpjsip is doing).

It looks like the audio backend is unable to set the appropriate bit
rate,  try building pjsip disabling PortAudio and enabling Alsa
backend instead.

>
> Hope somebody answers this post as my previous 3 posts were without any
> replay...

Maybe your previous posts and also this one are easy to solve by
googleing or reading through the mailing list archives.

>
>
> Log for remote calling to local (me)---------------
>
> Media now are opened...
> You can talk!
> 19:04:00.430    pjsua_aud.c  ...Set sound device: capture=0, playback=0
> 19:04:00.430    pjsua_aud.c  ....Opening sound device PCM at 16000/1/20ms
> Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
> inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> Expression 'PaAlsaStream_Configure( stream, inputParameters,
> outputParameters, sampleRate, framesPerBuffer, &inputLatency,
> &outputLatency, &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
> inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> Expression 'PaAlsaStream_Configure( stream, inputParameters,
> outputParameters, sampleRate, framesPerBuffer, &inputLatency,
> &outputLatency, &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> 19:04:00.431    pjsua_aud.c  ....Opening sound device PCM at 44100/1/20ms
> 19:04:00.504    ec0x1d22f80  .....AEC created, clock_rate=44100, channel=1,
> samples per frame=882, tail length=200 ms, latency=0 ms
> 19:04:00.509    pjsua_aud.c  ...Conf connect: 1 --> 0
> 19:04:00.509   conference.c  ....Port 1 (sip:508047160 at 192.168.1.254)
> transmitting to port 0 (HDA NVidia: ALC889A Analog (hw:0,0) (44KHz))
> 19:04:00.509    pjsua_aud.c  ...Conf connect: 0 --> 1
> 19:04:00.509   conference.c  ....Port 0 (HDA NVidia: ALC889A Analog (hw:0,0)
> (44KHz)) transmitting to port 1 (sip:508047160 at 192.168.1.254)
> 19:04:00.510   pjsua_core.c  ....TX 838 bytes Response msg
> 200/INVITE/cseq=102 (tdta0x1d0ef80) to UDP 192.168.1.254:5060:
>
> ---------------------------
>
>
>
> local (me) calling to remote--------
>
> Call with sip:508047160 at 192.168.1.254 is EARLY last code = 183 (Session
> Progress)
> 19:16:58.134  pjsua_media.c  .....Call 1: updating media..
> 19:16:58.134    pjsua_aud.c  ......Audio channel update..
> 19:16:58.134  strm0x1d0da98  .......VAD temporarily disabled
> 19:16:58.134  strm0x1d0da98  .......Encoder stream started
> 19:16:58.134  strm0x1d0da98  .......Decoder stream started
> 19:16:58.134  pjsua_media.c  ......Audio updated, stream #0: PCMA (sendrecv)
> Media now are opened...
> You can talk!
> 19:16:58.135    pjsua_aud.c  .....Set sound device: capture=0, playback=0
> 19:16:58.135    pjsua_aud.c  .......Closing null sound device..
> 19:16:58.136    pjsua_aud.c  ......Opening sound device PCM at 16000/1/20ms
> Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
> inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> Expression 'PaAlsaStream_Configure( stream, inputParameters,
> outputParameters, sampleRate, framesPerBuffer, &inputLatency,
> &outputLatency, &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture,
> inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1870
> Expression 'PaAlsaStream_Configure( stream, inputParameters,
> outputParameters, sampleRate, framesPerBuffer, &inputLatency,
> &outputLatency, &hostBufferSizeMode )' failed in
> 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1994
> 19:16:58.137    pjsua_aud.c  ......Opening sound device PCM at 44100/1/20ms
> 19:16:58.144    ec0x1d121b0  .......AEC created, clock_rate=44100,
> channel=1, samples per frame=882, tail length=200 ms, latency=0 ms
> 19:16:58.149    pjsua_aud.c  .....Conf connect: 1 --> 0
> 19:16:58.149   conference.c  ......Port 1 (sip:508047160 at 192.168.1.254)
> transmitting to port 0 (HDA NVidia: ALC889A Analog (hw:0,0) (44KHz))
> 19:16:58.149    pjsua_aud.c  .....Conf connect: 0 --> 1
> 19:16:58.149   conference.c  ......Port 0 (HDA NVidia: ALC889A Analog
> (hw:0,0) (44KHz)) transmitting to port 1 (sip:508047160 at 192.168.1.254)
> 19:17:00.416   pjsua_core.c  .RX 908 bytes Response msg 200/INVITE/cseq=1716
> (rdata0x1cf9428) from UDP 192.168.1.254:5060:
> SIP/2.0 200 OK
>
> ----------------------------------------
>
> _______________________________________________
> 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



-- 
Saludos

Ernesto Celis de la Fuente
http://expressit.celisdelafuente.net



[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