PJSUA Python cannot open sound device

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

 



Hello,

I have been testing successfully PJSIP on an Orange Pi Zero card. All tests from pjsystest are successfull. I can use pjsua softphone without issue and make calls. The sound capture and line out are correctly handled.

However I have an issue with sound when using PJSUA Python bindings. Here is the output I get with the simplecall.py application:
...
17:37:07.151 sip_transport.  .Transport manager created.
17:37:07.152    pjsua_timer  .Mutex created
17:37:07.152   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
17:37:07.701   pjsua_core.c !.pjsua version 2.5.5 for Linux-3.4.113/armv7l/glibc-2.24 initialized
17:37:07.727    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:34629>}, operation=make_call(), error=Unknown error from audio driver (PJMEDIA_EAUD_SYSERR)

If I set log level to 6, here is what I get:
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@16000/1/20ms
17:50:51.643    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@44100/1/20ms
17:50:51.648    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@48000/1/20ms
17:50:51.652    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@32000/1/20ms
17:50:51.657    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@16000/1/20ms
17:50:51.661    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@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)

Using pjsua command line softphone, the device is opened without error. Here is the log:
17:07:03.797   pjsua_call.c !Making call with acc #1 to sip:0490572429@xxxxxxxxxxxxxx
17:07:03.798    pjsua_aud.c  .Set sound device: capture=-1, playback=-2
17:07:03.798    pjsua_app.c  ..Turning sound device ON
17:07:03.798    pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@16000/1/20ms
17:07:03.799     alsa_dev.c  ...open_playback: Open playback device 'default:CARD=audiocodec'
17:07:03.826     alsa_dev.c  ...Opened device alsa(default:CARD=audiocodec) for playing, sample rate=16000, ch=1, bits=16, period size=320 frames, latency=140 ms
17:07:03.826     alsa_dev.c  ...open_capture: Open capture device 'default:CARD=audiocodec'
17:07:04.046     alsa_dev.c  ...Opened device alsa(default:CARD=audiocodec) for capture, sample rate=16000, ch=1, bits=16, period size=320 frames, latency=100 ms

I noted that the message from pjsua_app.c ..Turning sound device ON is not found when running simplecall.py. Is there something I am missing?

I am using PJSIP 2.5.5 installed from Debian testing.

_______________________________________________
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