On 08/04/2017 07:48 AM, Kevin Rombach via pjsip wrote:
Yeah im setting the nullDevice for call tests because i can not make a call when the default audio device is not found :(
ep.audDevManager().setCaptureDev(-99);
ep.audDevManager().setPlaybackDev(-99);
when i set the audio device like this:
ep.audDevManager().setCaptureDev(0);
ep.audDevManager().setPlaybackDev(-99);
im getting the error:
"pjsua_call_make_call(acc.getId(), &pj_dst_uri, param.p_opt, this, param.p_msg_data, &id) error: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) (status=420006) [../src/pjsua2/call.cpp:490]”
the thing is, i have currently no capture device on my RPi. I first have to order a USB soundcard. Thats why i try to just enable the default playback device and set the capture device to null.
Hmm, I'm not familiar with the C++ API, but what you might try is
creating a "sound player" port explicitly and then connect your call to it:
You need to create a player port, using
pjmedia_snd_port_create_player(); this gives you a pjmedia_snd_port.
http://www.pjsip.org/docs/latest-2/pjmedia/docs/html/group__PJMED__SND__PORT.htm#gaa67792594c2b15e22f957f12e90cd206
Create a splitter/combiner port, using pjmedia_splitcomb_create();
register it to the conference bridge; this gives you a pjmedia_port:
http://www.pjsip.org/docs/latest-2/pjmedia/docs/html/group__PJMEDIA__SPLITCOMB.htm#ga4cc0abefb5b62ee8d88f875994e548dd
Now connect the sound player port to the splitter/combiner port using
pjmedia_snd_port_connect():
http://www.pjsip.org/docs/latest-2/pjmedia/docs/html/group__PJMED__SND__PORT.htm#ga046156b765a34e6c640b0534e6b21f9c
In your call confirmation callback, you should now be able to connect
the confport of the call to the splitter/combiner port which is
connected to your audio output.
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org