pjsip new-call error … Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV)

我与影子孤独终老i 提交于 2019-12-03 20:07:33

This happens when the development packages are not installed. From your error message i can tell that libasound-development-package is not installed. Do as following:

sudo apt-get install libasound2-dev

Pay attention that pjsip would still fail to set the default audio device since you have done the make as this package was missing. So you need to build Pjsip once again

at pjsip directory do the following respectively :

./configure
make dep 
make clean
make
make install

that'd do it.

From an additional post I found you might want to also check that you have these packages and do a rebuild. Let me know how that goes for you.

  1. install the required development packages! like pulseaudio-dev, alsa-dev, portaudio-dev or whatever you desire (in dubio all!)
  2. restart configuration and building again! (aconfigure, make...)
  3. go again to pjsip-apps/src/python and do make / make all, same in ../py_pjsua

the pa_dev.c ..Sound device count should now spit out a few more devices...

Well, just a guess (I cannot try it on my PC right now), but don't you actually need to set your sound device to the value obtained by get_snd_dev? That seems to be reasonable at least. So instead of

lib.set_snd_dev(0,0)

try to call it with (-1, -2) tuple:

lib.set_snd_dev(-1,-2)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!