Yes. I do (now). pjsua_set_snd_dev(0,0) was failing because the default pcm device was "pcm.chan0_play" This has no capture capability (which is of no interest to me anyhow). BUT: pjsua_aud.c -> alsa_dev.c must open both a capture and a playback device. SINCE my default device in asound.conf was pcm.!default { type plug plave.pcm "chan0_play" } which was all I needed, alsa_dev.c::open_capture FAILED because it couldn't open a capture channel. The correct fix (IMHO) is for Benny to alter pj so that open_play_dev() and open_capture_dev() can be called separately. As a work-around, asound.conf: "chan0_play" changed to "chan0" and things work. ________________________________ From: pjsip [pjsip-bounces@xxxxxxxxxxxxxxx] on behalf of Brunner, Brian T. [bbrunner at gai-tronics.com] Sent: Wednesday, April 15, 2015 2:28 PM To: pjsip list Subject: Re: PJ/Alsa uses 8 channels on sound device, but must use only 1 Does ANYBODY use ALSA with pjmumble, and take only 1 audio channel of the hw device? From: pjsip [pjsip-bounces@xxxxxxxxxxxxxxx] on behalf of Brunner, Brian T. [bbrunner at gai-tronics.com] Sent: Monday, April 13, 2015 2:03 PM To: pjsip list Subject: PJ/Alsa uses 8 channel on sound device, must use only 1 PJ/Alsa uses 8 channels on my sound device, but it must use only 1, as the other channels are dedicated to other programs and their operations. I'm still wondering if this "grab all 8 channels" is by design in pjsip. The other 7 programs share the other 7 channels without trouble. PJSIP insists on grabbing all 8. We (the 8 programs) use the same alsa library and the same /etc/asound.conf. Is there a known cause/remedy for this behavior? I thinking I wish set_snd_dev took a string instead of an integer, so dev/channel could be specified as set_snd_dev("0.0","0.0") instructing use of only the first channel on the first hardware device. Any ideas where to look? ---------------------------------------------------------------------------------------------------------------------------- Confidentiality Requirement: This communication, including any attachment(s), may contain confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, you are hereby notified that you have received this communication in error and any unauthorized review, use, disclosure, dissemination, distribution or copying of it or its contents is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or e-mail and destroy all copies of this communication and any attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150427/da30dc09/attachment.html>