On Jul 16, 2013, at 7:14 AM, Matthew Cordes wrote: > Hello, > > I'm new to the list (and pjsip) so please bear with me. > > I'm having an issue with pjsip (running via the python wrapper) hanging when shutting down when run on a raspberry pi. I'm using the 2.1 release and the raspberry pi is running debian7.1 / alsa / pulseaudio with a usb sound audio device (set as default audio device). pjsip was compiled from source with default configuration. > > The same code is behaving better on my laptop (ubuntu 12.10 / alsa / pulse audio / embedded sound card), but periodically prints the following messages (although still seems to work): > > 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 > > Can anyone offer any words of wisdom getting this to reliably work on raspberry pi / arm device? > > I'd be happy to post the python source code if that would be useful to see. > Have you tried to use the native ALSA backend instead of PortAudio? Define PJMEDIA_AUDIO_DEV_HAS_ALSA in your config_site.h and recompile to give it a try. I got better results with the native backend on Linux on a x86 desktop system, I haven't tried the RaspberryPi myself though. -- Sa?l Ibarra Corretg? AG Projects