Jul 12 13:33:07 central kernel: [5441971.005719] asterisk[45834]: segfault at 69 ip 00005585926bbada sp 00007f352f194cb0 error 4 in asterisk[558592625000+311000]
That wasn’t the first time asterisk stopped work with a segfault but was the first time I got backtrace records on /var/log/asterisk/full what is the problem and how can I solve that?
You probably can’t. It would need to be filed as an issue[1] following the wiki instructions[2] for getting an actual backtrace, along with log and description of usage of Asterisk. The version of Asterisk in use is also a few months old so you may be asked to try the latest version instead. There is also no time frame on when such a thing would get looked into.
I’ve had quite a lot of problems with Asterisk 16 crashing seemingly at random, we decided to upgrade the servers to Asterisk 18 instead, which has been working like a charm ever since, no crashes. Perhaps worth looking into.
There’s a systemd unit file example supplied with many of the recent versions of asterisk. You can start with that, and modify it to restart asterisk on crash. Check the manual of systemd for the actual entries you need to add, as I can’t remember them.