<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Tom,</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">first: I hope that you noticed that in
my latest email, I reported that I am still not able to make use
of mod_portaudio; so the instructions I provided on Aug 26 helped
to have some progress on my side, but they have not been
sufficient...<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Now, you said: you "just need to be in
the proper group"; I would just add the importance of the proper
user to this statement, as well.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The page
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks">https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks</a>
suggests a systemd unit file for FS that includes the directive
"User=root". But, there is also the comment saying that FS starts
"as root, so Freeswitch can set its priority, create some
directories if needed, etc. Then it <u><b>will drop privileges to
continue running as user and group Freeswitch</b></u>."</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Are you using that same unit file? If
so, then the following part of my instructions will be essential
for the success:</div>
<div class="moz-cite-prefix"><b><font size="+1"><tt>sudo adduser
freeswitch audio<br>
sudo adduser </tt></font></b><b><font size="+1"><tt><b><font
size="+1"><tt>freeswitch </tt></font></b>bluetooth</tt></font></b></div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Otherwise, you must find out as which
user the FS is eventually running in your system and then run the
above two commands for that user.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I gave up using the jack because it is
only for output, but in my application I need both input and
output. In the beginning that I didn't know this and was hoping to
use the jack for my application, I used the amixer command few
times, but I am not very familiar with this command, nor with
alsamixer.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">From what I have understood so far: <br>
</div>
<div class="moz-cite-prefix">
<ul>
<li>aplay -l and arecord -l will show only your audio devices on
sound cards of type hardware (I think that
/usr/share/alsa/alsa.conf is somehow involved in this)</li>
<li>aplay -L and arecord -L will also show additional devices
defined in /etc/asound.conf and the current user's ~/.asoundrc
(such as virtual devices and real devices on virtual sound
cards)</li>
<li>mod_portaudio has been only able to see my real devices via
bluealsa which acts as a kind of virtual sound card, nothing
else!!! This is very strange to me and I haven't found any
explanation for that....<br>
</li>
</ul>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Kind regards,<br>
<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">-- Saied</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users-request@lists.freeswitch.org">freeswitch-users-request@lists.freeswitch.org</a>
wrote on 07-Sep-20 18:07:<br>
</div>
<blockquote type="cite"
cite="mid:mailman.1147.1599494833.1288.freeswitch-users@lists.freeswitch.org"><br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">ForwardedMessage.eml</legend></fieldset>
<table class="header-part1" width="100%" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline;">Subject:
</div>
Re: [Freeswitch-users] mod_portaudio on Raspberry Pi
currently broken?</td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline;">From:
</div>
Tom Lynn <a class="moz-txt-link-rfc2396E" href="mailto:tom@tomlynn.com"><tom@tomlynn.com></a></td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline;">Date:
</div>
07-Sep-20, 18:06</td>
</tr>
</tbody>
</table>
<table class="header-part2" width="100%" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline;">To:
</div>
FreeSWITCH Users Help
<a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org"><freeswitch-users@lists.freeswitch.org></a></td>
</tr>
</tbody>
</table>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="moz-text-html" lang="x-unicode">
<div dir="ltr">Saied,
<div>You are a very determined man! I followed your
instructions and yes, this works when I run it from the
command line as root. Again, when launched by systemd I
come up with no reply when I run pa devlist in fs_cli.</div>
<div><br>
</div>
<div>When free time is more plentiful, I will investigate
trying to run this as a different user. I think I just need
to be in the proper group. I will also need to adapt this
to use the 3.5mm output of the pi. Where do you see the
device names, in the alsa mixer?<br>
</div>
</div>
</div>
</blockquote>
</body>
</html>