[LAU] Service/user not using PulseAudio
Chris Caudle
chris at chriscaudle.org
Wed Apr 8 15:56:39 CEST 2020
On Wed, April 8, 2020 8:14 am, Iain Mott wrote:
> no, a pulse config directory is created in /var/lib/asterisk/.config/
>
> the entry for asterisk in /etc/passwd is:
>
> asterisk:x:124:130:Asterisk PBX
> daemon,,,:/var/lib/asterisk:/usr/sbin/nologin
Perhaps there is no pulse instance running for user asterisk. When you
used aplay from your user account it would have played through a pulse
instance running as your user, the asterisk user account would not have
access to that instance. You need to start pulse as user asterisk.
Watch out for details on how to start, for example the man page has a note
about starting from systemd services:
--start
Start PulseAudio if it is not running yet. This is different from
starting PulseAudio without --start which would fail if PA is
already
running. PulseAudio is guaranteed to be fully initialized when
this
call returns. Implies --daemonize.
-D | --daemonize[=BOOL]
Daemonize after startup, i.e. detach from the terminal. Note that
when running as a systemd service you should use
--daemonize=no for systemd notification to work.
--
Chris Caudle
More information about the Linux-audio-user
mailing list