<div dir="ltr">I followed your steps, and yes, pa commands function when freeswitch is run from the command line. Nice!<div><br></div><div>I tried running it as both root and as user tom. Both times I was able to use the pa commands with success. I tried running user tom group user from the systemd startup and was not successful using pa commands. </div><div><br></div><div>The question becomes, why does this not work using the freeswitch.service configuration file supplied with the packaged freeswitch? I installed freeswitch-meta-all.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2020 at 9:02 AM Tamer Higazi via FreeSWITCH-users <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</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"><br><br><br>---------- Forwarded message ----------<br>From: Tamer Higazi <<a href="mailto:th982a@googlemail.com" target="_blank">th982a@googlemail.com</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Cc: <br>Bcc: <br>Date: Sun, 2 Feb 2020 18:02:09 +0100<br>Subject: Re: [Freeswitch-users] Stumped by mod_portaudio permissions issue<br>Dear Tom,<br>
<br>
This is not true.<br>
I am running freeswitch as the user I am logged in.<br>
<br>
as root:<br>
chown -R tamer:users /opt/freeswitch<br>
<br>
as user:<br>
/opt/freeswitch/bin/freeswitch -nc<br>
<br>
as user:<br>
fs_cli -r<br>
<br>
and you will see portaudio runs without any problems.<br>
<br>
I have it in combination with pulseaudio running.<br>
<br>
<br>
best, Tamer<br>
<br>
On 2020-02-02 17:01, Tom Lynn wrote:<br>
> I do not have pulse audio installed.<br>
><br>
> I can access alsamixer and aplay from the shell while logged in as <br>
> either root or freeswitch without issues.<br>
><br>
> mod_portaudio only works WHEN I'm running freeswitch under group root, <br>
> which I will not be able to do in a production environment.<br>
><br>
> On Sun, Feb 2, 2020 at 7:24 AM Tamer Higazi via FreeSWITCH-users <br>
> <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a> <br>
> <mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>>> wrote:<br>
><br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Tamer Higazi <<a href="mailto:th982a@googlemail.com" target="_blank">th982a@googlemail.com</a><br>
> <mailto:<a href="mailto:th982a@googlemail.com" target="_blank">th982a@googlemail.com</a>>><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
> Cc:<br>
> Bcc:<br>
> Date: Sun, 2 Feb 2020 15:22:31 +0100<br>
> Subject: Re: [Freeswitch-users] Stumped by mod_portaudio<br>
> permissions issue<br>
> Dear Mark,<br>
><br>
> I tell you exactly why.<br>
><br>
> That is less a permission issue.<br>
><br>
> if you open the shell as "root" and type alsamixer you won't be<br>
> capable<br>
> to access the soundcard because "root" is not in the 1st) sound group<br>
> and 2nd) root ha no access to the pulseaudio server<br>
><br>
> This is why I MUST run freeswitch as the user that is currently<br>
> logged in.<br>
><br>
> mod_alsa doesn't work at all. I didn't get it running, only<br>
> mod_portaudio....<br>
><br>
><br>
> best, Tamer<br>
><br>
><br>
> On 2020-02-02 07:59, Tom Lynn wrote:<br>
> > For what it's worth, I'm running into this very same issue over 4<br>
> > years after the original poster. I suspect that leaving off the<br>
> group<br>
> > option is leaving the process running as group root, which would<br>
> mimic<br>
> > my attempt at having the service run as user freeswitch/group root,<br>
> > which allows mod_portaudio to function.<br>
> ><br>
> > I've posted here in the mail list, on IRC and in Slack, but the<br>
> only<br>
> > bite was someone hinting about freeswitch user needing to be in<br>
> group<br>
> > audio, which it is. This is broken. I've looked at submitting a<br>
> JIRA<br>
> > on this, but my login doesn't appear to allow it.<br>
> ><br>
> > On Fri, Sep 11, 2015 at 9:45 AM Mark Haun <<a href="mailto:haunma@keteu.org" target="_blank">haunma@keteu.org</a><br>
> <mailto:<a href="mailto:haunma@keteu.org" target="_blank">haunma@keteu.org</a>><br>
> > <mailto:<a href="mailto:haunma@keteu.org" target="_blank">haunma@keteu.org</a> <mailto:<a href="mailto:haunma@keteu.org" target="_blank">haunma@keteu.org</a>>>> wrote:<br>
> ><br>
> > <a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>><br>
> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>>><br>
> > [<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>><br>
> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a> <mailto:<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>>>] wrote:<br>
> > > If using alsa, did you check the permission of /dev/snd<br>
> and its<br>
> > > children?<br>
> ><br>
> > Yes. In fact, both alsa operations (aplay) and portaudio<br>
> > enumeration work<br>
> > correctly when running as the freeswitch user. All of this is<br>
> > detailed in<br>
> > my initial post, two or three weeks ago.<br>
> ><br>
> > Mark<br>
> ><br>
> ><br>
> _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
> > <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>><br>
> <mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>>><br>
> > <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> > <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> > <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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>
> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>><br>
> > <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <mailto:<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>
> > <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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> ><br>
> ><br>
> _________________________________________________________________________<br>
> ><br>
> > The FreeSWITCH project is sponsored by SignalWire<br>
> <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> > Enhance your FreeSWITCH install with disruptive priced SMS and<br>
> PSTN services.<br>
> > Build your next product on our scalable cloud platform.<br>
> ><br>
> > Join our online community to chat in real time<br>
> <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> <mailto:<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>
> <mailto:<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>
> ><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><br>
><br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Tamer Higazi via FreeSWITCH-users<br>
> <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>>><br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
> <mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
> Cc:<br>
> Bcc:<br>
> Date: Sun, 02 Feb 2020 07:24:11 -0800 (PST)<br>
> Subject: Re: [Freeswitch-users] Stumped by mod_portaudio<br>
> permissions issue<br>
> _________________________________________________________________________<br>
><br>
> The FreeSWITCH project is sponsored by SignalWire<br>
> <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and<br>
> PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
><br>
> Join our online community to chat in real time<br>
> <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> <mailto:<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>
> <mailto:<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><br>
><br>
><br>
> _________________________________________________________________________<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><br>
<br>
<br><br><br>---------- Forwarded message ----------<br>From: Tamer Higazi via FreeSWITCH-users <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Cc: <br>Bcc: <br>Date: Sun, 02 Feb 2020 09:02:50 -0800 (PST)<br>Subject: Re: [Freeswitch-users] Stumped by mod_portaudio permissions issue<br>_________________________________________________________________________<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>