Issues with audio running pjsua on a Raspberry Pi

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

 



Hi,

 

We are trying to get a really simple dumb SIP client running on the
Raspberry Pi that essential auto answers an inbound call. For the
moment, we are only concerned with 1 way audio, so essentially using
PJSIP to output audio via the inbuilt analogue audio device on the Pi.
Yet we are running in issue from the get go.

 

Although we can play a WAV file for the correct type using the playfile
sample app (in accordance with the FAQ at
http://trac.pjsip.org/repos/wiki/audio-check-play) with no issues, the
pjsua app fails. Indeed, the pjsystest app throws up a similar issue
when play and audio file:

 

Audio Tone Playback Test

This test will play simple ringback tone to the speaker. Please listen
carefully for audio impairments such as stutter. You may need to let
this test running for a while to make sure that everything is okay.
Press OK to start, CANCEL to skip

1:OK  9:Cancel

1

16:08:29.913      systest.c  Running Audio Tone Playback Test

16:08:29.914    pjsua_aud.c  Conf connect: 1 --> 0

16:08:29.914    pjsua_aud.c  .Set sound device: capture=-1, playback=-2

16:08:29.914    pjsua_aud.c  ..Opening sound device PCM at 8000/1/20ms

16:08:30.090   conference.c  .Port 1 (ringback) transmitting to port 0
(pulse)

Audio Tone Playback Test

Ringback tone should be playing now in the speaker. Press OK to stop.

1:OK

16:08:30.278 os_core_unix.c  Info: possibly re-registering existing
thread

 

 

At this point, the app hangs and we need to Ctrl+C to quit the process.
If we run through the instruction in the above FAQ to play audio using
pjsua, and after we try and play the audio, we see a similar error, yet
pressing RETURN continues the pjsua app. However, when we quit, we see
the following:

 

>>> q

16:31:42.696   pjsua_core.c !Shutting down, flags=0...

16:31:42.697   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING

16:31:42.709   pjsua_call.c  .Hangup all calls..

16:31:42.710   pjsua_pres.c  .Shutting down presence..

16:31:42.712  pjsua_media.c  .Shutting down media..

16:31:42.713    pjsua_app.c  ...Turning sound device OFF

16:31:42.714    pjsua_aud.c  ...Closing pulse sound playback device and
pulse sound capture device

 

At which point pjsua hangs and again we need to Ctrl+C to terminate.

 

Any guidance would be welcome.

 

For reference, we have downloaded and compiled the latest PJSIP (2.1)
build, running on Raspbian "wheezy" (2013-02-09), with updated OS,
packages and firmware, and the libasound2-dev package installed.

 

Regards,

 

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130523/bf276d67/attachment-0001.html>


[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