<div dir="ltr">My unit file switches to user/group freeswitch. As such it does not return a result for "pa devlist." That only happens if I start freeswitch from the command line using sudo as root. Freeswitch user doesn't have a shell and even if it did, I suspect switching to that user would yield the same result. Swapping pi/pi in for the user and group in the unit file also results in the same no response. Only user=root context is successful in yielding a device list, as you say. <div><br></div><div>ON this raspberry pi, I have only the 3.5mm jack and the bluetooth devices. Following your instructions, the bluetooth works and is more convenient for testing than wired headphones in the jack.</div><div><br></div><div>I'm still hopeful that this can be figured out.</div><div><br></div><div>Tom<br><div><br></div><div><br><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 8, 2020 at 2:33 AM Tazari, Mohammad Reza <<a href="mailto:saied.tazari@gmail.com">saied.tazari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Tom,</div>
<div><br>
</div>
<div>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><br>
</div>
<div>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><br>
</div>
<div>The page
<a href="https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks" target="_blank">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><br>
</div>
<div>Are you using that same unit file? If
so, then the following part of my instructions will be essential
for the success:</div>
<div><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><br>
</div>
<div>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><br>
</div>
<div>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><br>
</div>
<div>From what I have understood so far: <br>
</div>
<div>
<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><br>
</div>
<div>Kind regards,<br>
<br>
</div>
<div><br>
</div>
<div>-- Saied</div>
<div><br>
</div>
<div><br>
</div>
<div><a href="mailto:freeswitch-users-request@lists.freeswitch.org" target="_blank">freeswitch-users-request@lists.freeswitch.org</a>
wrote on 07-Sep-20 18:07:<br>
</div>
<blockquote type="cite"><br>
<fieldset><legend>ForwardedMessage.eml</legend></fieldset>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<div style="display:inline">Subject:
</div>
Re: [Freeswitch-users] mod_portaudio on Raspberry Pi
currently broken?</td>
</tr>
<tr>
<td>
<div style="display:inline">From:
</div>
Tom Lynn <a href="mailto:tom@tomlynn.com" target="_blank"><tom@tomlynn.com></a></td>
</tr>
<tr>
<td>
<div style="display:inline">Date:
</div>
07-Sep-20, 18:06</td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<div style="display:inline">To:
</div>
FreeSWITCH Users Help
<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><freeswitch-users@lists.freeswitch.org></a></td>
</tr>
</tbody>
</table>
<br>
<div 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>
</div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>