Asterisk : Fichier asterisk.service pour Oracle Linux 8.6

Voici le fichier que j’utilise dans /usr/lib/systemd/system/asterisk.service :

[Unit]
Description=Asterisk PBX and telephony daemon.
After=network.target

[Service]
ExecReload=/usr/sbin/asterisk -rx "core reload"
ExecStart=/usr/sbin/asterisk -mqf -C  /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx "core stop now"
PIDFile=/var/run/asterisk/asterisk.pid
Restart=on-failure
RestartSec=10
Type=simple
TimeoutStartSec=300

Environment=HOME=/var/lib/asterisk
LimitCORE=infinity
LimitNOFILE=65536
WorkingDirectory=/var/lib/asterisk
User=asterisk
Group=asterisk
PrivateTmp=false
NoNewPrivileges=yes
ProtectHome=no

[Install]
WantedBy=multi-user.target

J’ai pas fini avec le fichier /etc/asterisk/modules.conf , j’ai quelques problèmes dans le build :

;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger initialization) can be loaded
; using 'preload'.  'preload' forces a module and the modules it
; is known to depend upon to be loaded earlier than they normally get
; loaded.
;
; NOTE: There is no good reason left to use 'preload' anymore.  It was
; historically required to preload realtime driver modules so you could
; map Asterisk core configuration files to Realtime storage.
; This is no longer needed.
;
;preload = your_special_module.so
;
; If you want Asterisk to fail if a module does not load, then use
; the "require" keyword. Asterisk will exit with a status code of 2
; if a required module does not load.
;
;require = chan_pjsip.so
;
; If you want you can combine with preload
; preload-require = your_special_module.so
;
;load = res_musiconhold.so
;
; Load one of: alsa, or console (portaudio).
; By default, load chan_console only (automatically).
;
noload = chan_alsa.so
;noload = chan_console.so
;
; Do not load res_hep and kin unless you are using HEP monitoring
; http://sipcapture.org in your network.
;
noload = res_hep.so
noload = res_hep_pjsip.so
noload = res_hep_rtcp.so
;
; Do not load chan_sip by default, it may conflict with res_pjsip.
noload = chan_sip.so
;
; Load one of the voicemail modules as they are mutually exclusive.
; By default, load app_voicemail only (automatically).
;
;noload = app_voicemail.so
noload = app_voicemail_imap.so
noload = app_voicemail_odbc.so

; FARIAS
noload = res_config_ldap.so
noload = app_jack.so
noload = res_config_pgsql.so
noload = res_phoneprov.so
noload = res_smdi.so
noload = res_pjsip_phoneprov_provider.so
noload = cdr_csv.so
noload = cdr_sqlite3_custom.so
noload = cdr_manager.so
noload = cdr_pgsql.so
noload = cdr_tds.so
noload = cdr_odbc.so
noload = cel_sqlite3_custom.so
noload = cel_tds.so
noload = app_alarmreceiver.so
noload = cel_pgsql.so
noload = res_pjsip_transport_websocket.so
noload = res_config_sqlite3.so
noload = res_config_pgsql.so
noload = chan_oss.so
noload = chan_alsa.so
noload = app_minivm.so