I have been trying to install Asterisk 18 on Centos Stream 9 for a few days now but I seem to run into problems. Are there specific dependancies or methods to used to install Asterisk 18 on Cenos Stream 9 as every guide I used for Centos Stream 8 does not work on 9?
Thank you for responding, when I try starting Asterisk after going through all the steps it fails with error code. When I look at the journal I see the following:
"░░ The job identifier is 17138.
Jan 21 06:56:46 asterisk-node1.cartrack.pl asterisk[20894]: /etc/rc.d/init.d/asterisk: line 42: /etc/rc.d/init.d/functions: No such file or directory
Jan 21 06:56:46 asterisk-node1.cartrack.pl systemd[1]: asterisk.service: Control process exited, code=exited, status=1/FAILURE
"
/etc/rc.d/init.d has a README file that basically explains COS9 is a systemd-based OS without support for the old stuff. I think the Asterisk distribution also has some systemd service files, but I haven’t used them myself so far.
I have a COS9 VM already running, so I’ll try to install Asterisk from the sources this weekend. It shouldn’t be too difficult to generate a valid .service file for Asterisk anyway. That said, you do not really need systemd integration.
You can copy contrib/systemd/asterisk.service to /usr/lib/systemd/system and then use systemctl start|stop|status asterisk etc. You do not need the socket files.
COS9 has the necessary files and libs for Asterisk, but I couldn’t get res_srtp to work. The system installed lib_srtp2 failed in srtp_init() which lead to