pjsua on Raspberry Pi

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

 



Hey people,

I hope I'm in the right place bothering all of you, but I need some help with getting a little project going. Background:
I'm trying to connect my apartments door intercom to a USB soundcard and then be able to connect to it when someone rings the door.

I've hit a somewhat significant issue tho: I was able to compile pjproject 2.1.0 without a hiccup, but there are several issues interfacing with the soundcard.

First of all, there's zero audio. You can tell there is a change in status when pjsua is started because of slight noise setting in, but in-call there's nothing but silence, the call being ended because of inactivity after a bit. Testing it with the onboard audio output, there actually is (Very quiet and bad) audio being transmitted.

When a call is ended, I always get this and the program seems to hang somewhat:
23:16:10.115    pjsua_aud.c  .Closing USB Audio Device: USB Audio (hw:1,0) sound playback device and USB Audio Device: USB Audio (hw:1,0) sound capture device

I can play wav's fine through aplay. pjsystest's "Play Tone" also works, with the hang I described above occuring. When I use the "Device Test" I get the following:

1
23:22:54.598      systest.c  Running Audio Device Test
_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
Unable to open device: Invalid sample rate (err=469996)
Error
Sorry we encountered error with the testInvalid sample rate

If anyone can help me out here, I'd really appreciate it greatly!

Best regards,
John

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
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