Re: Service/user not using PulseAudio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
https://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux