The restart was performed with the command
systemctl --user stop pulseaudio
systemctl --user start pulseaudio
what was the conclusion?
In 4.5.0.19, sometimes the execution of commands causes the phone to hang for a few seconds and sometimes this is not enough, you need to restart ngfd
systemctl --user stop ngfd
systemctl --user start ngfd
You can add it to the utilities, but this will not solve the problem! Restarting will help only if the absence of sound effects is detected, and how long it was not and how many calls, messages, etc. were missed because of this.
For now, I can advise you to use the script on a schedule with pulseaudio checking and add ngfd to it https://forum.sailfishos.org/t/the-sounds-of-incoming-calls-sms-notifications-disappear/9496/17?u=comsorg
#!/bin/bash
if ( systemctl --user is-active --quiet pulseaudio.service ) && ( systemctl --user is-active --quiet ngfd.service ); then
date >> /home/defaultuser/Documents/$(date +"%Y-%m-%d")_pulseaudio.log
else
date >> /home/defaultuser/Documents/$(date +"%Y-%m-%d")_pulseaudio.log
echo `systemctl --user stop pulseaudio.service`
echo `systemctl --user stop ngfd.service`
sleep 5
echo `systemctl --user start pulseaudio.service`
echo `systemctl --user start ngfd.service`
echo "pulseaudio is" `systemctl --user is-active pulseaudio.service` >> /home/defaultuser/Documents/$(date +"%Y-%m-%d")_pulseaudio.log
echo "ngfd is" `systemctl --user is-active ngfd.service` >> /home/defaultuser/Documents/$(date +"%Y-%m-%d")_pulseaudio.log
fi