sqrt3
Posts: 9
Joined: Thu Jan 17, 2013 2:52 pm

SoundBlaster Play & PJSIP/PortAudio

Mon Jul 15, 2013 1:12 pm

I'm trying to do allmost the same as this: doorberry but got stuck in using pjsip. I have installed asterisk via apt-get and compiled pjproject-2.1.0 without any trouble and modifications. The next step was to modify simpleua.c according to my network and asterisk setup and try to make a call. The call is received by phoner on windows but as soon as i accept the call pjsip stops giving the following messages:

Code: Select all

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
call: ../src/pjmedia/sound_port.c:695: pjmedia_snd_port_connect: Assertion `snd_port && port' failed.
Abgebrochen
I can however record and play successfully using pjsystest at which a quite similar message is displayed at some point but without aborting the process.
Any ideas would be appreciated.

jrsharp
Posts: 1
Joined: Mon Aug 26, 2013 4:57 pm

Re: SoundBlaster Play & PJSIP/PortAudio

Mon Aug 26, 2013 4:59 pm

Any progress on this one? I have a similar error output when using espeak. I'm curious if a solution was ever found to this one.

mpodroid
Posts: 6
Joined: Sun Jan 13, 2013 10:48 am
Location: Milan, Italy
Contact: Website

Re: SoundBlaster Play & PJSIP/PortAudio

Mon Sep 09, 2013 12:59 am

My SD failed and I realized that my build instructions were incomplete.
I rebuild everything from scratch and I here are a step by step guide.

I faced the very same error reported here, while compiling pjsip without support for ALSA. Check script doorberry.install-dep for details on working pjsip configuration.

Return to “General discussion”