Bug#854188: python-pjproject: fail to open sound device

Eric Le Bras eric.lebras at gmail.com
Sat Feb 4 19:50:42 UTC 2017


Package: python-pjproject
Version: 2.5.5~dfsg-5
Severity: important

Dear Maintainer,

Having installed python-project from testing on a stable Debian, I observed that PJSIP could not open sound device.
Executing the simplecall.py script from pjsip documentation fails. Extracted from logged output (log level=6):
....
17:50:51.638   pjsua_call.c !Making call with acc #0 to sip:192.168.0.8:5060
17:50:51.638    pjsua_aud.c  .Set sound device: capture=-1, playback=-2
17:50:51.638    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 16000/1/20ms
17:50:51.643    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 44100/1/20ms
17:50:51.648    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 48000/1/20ms
17:50:51.652    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 32000/1/20ms
17:50:51.657    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 16000/1/20ms
17:50:51.661    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 8000/1/20ms
17:50:51.665    pjsua_aud.c  ..Unable to open sound device: Unknown error from audio driver (PJMEDIA_EAUD_SYSERR) [status=420002]
Exception: Object: {Account <sip:192.168.0.8:41201>}, operation=make_call(), error=Unknown error from audio driver (PJMEDIA_EAUD_SYSERR)
....

However, I have been able to test the sound device with arecord or aplay, and furthermore I was able to use PJSIP 2.5.5 by compiling the sources. pjsystest and pjsua showed no issue with sound device. I was able to pass all tests from pjsystest, and to make calls with pjsua. simplecall.py script gives this output:
....
20:47:45.260   pjsua_call.c !Making call with acc #0 to sip:192.168.0.3:5060
20:47:45.261    pjsua_aud.c  .Set sound device: capture=-1, playback=-2
20:47:45.261    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM at 16000/1/20ms
20:47:45.504    ec0x1f77798  ...AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=0 ms
20:47:45.507  pjsua_media.c  .Call 0: initializing media..
....

Installation and tests have been performed on an Orange Pi Zero card.


-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (90, 'testing')
Architecture: armhf (armv7l)

Kernel: Linux 3.4.113-sun8i (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pjproject depends on:
ii  libc6                 2.24-9
ii  libopus0              1.2~alpha2-1
ii  libpj2                2.5.5~dfsg-5
ii  libpjlib-util2        2.5.5~dfsg-5
ii  libpjmedia-audiodev2  2.5.5~dfsg-5
ii  libpjmedia-codec2     2.5.5~dfsg-5
ii  libpjmedia-videodev2  2.5.5~dfsg-5
ii  libpjmedia2           2.5.5~dfsg-5
ii  libpjnath2            2.5.5~dfsg-5
ii  libpjsip-simple2      2.5.5~dfsg-5
ii  libpjsip-ua2          2.5.5~dfsg-5
ii  libpjsip2             2.5.5~dfsg-5
ii  libpjsua2             2.5.5~dfsg-5
ii  libsrtp0              1.4.5~20130609~dfsg-1.3
ii  libvo-amrwbenc0       0.1.3-1

python-pjproject recommends no packages.

python-pjproject suggests no packages.

-- no debconf information



More information about the Pkg-voip-maintainers mailing list