No, I mean when Asterisk is started it prints log messages as it is starting and loading modules. If errors are encountered, such as when loading app_voicemail, then it is output. It may or may not be at /var/log/asterisk/messages or /var/log/asterisk/full depending on your configuration.
There is also the “core show module like voicemail” CLI command to show whether voicemail is loaded and running.
dms*CLI> core show module like voicemail
No such command 'core show module like voicemail' (type 'core show help core show module like' for other possible commands)
dms*CLI> voicemail show users
Context Mbox User Zone NewMsg
default 1234 Example Mailbox 0
default 102 Chandima 0
myaliases 1234@devices 0
other 1234 Company2 User 0
testMail dmse_IVR Chandima 0
5 voicemail users configured.
dms*CLI>
root@dms:~# systemctl stop asterisk
root@dms:~# systemctl start asterisk
root@dms:~# systemctl status asterisk
â—Ź asterisk.service - Asterisk PBX
Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-02-06 16:21:21 +0530; 6s ago
Docs: man:asterisk(8)
Main PID: 56747 (asterisk)
Tasks: 86 (limit: 4558)
Memory: 44.8M
CPU: 2.763s
CGroup: /system.slice/asterisk.service
├─56747 /usr/sbin/asterisk -g -f -p -U asterisk
└─56748 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 56747
Feb 06 16:21:18 dms systemd[1]: Starting Asterisk PBX...
Feb 06 16:21:21 dms systemd[1]: Started Asterisk PBX.
root@dms:~# asterisk -rvvvv
Asterisk 18.10.0~dfsg+~cs6.10.40431411-2, Copyright (C) 1999 - 2021, Sangoma Technologies Corporation and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 18.10.0~dfsg+~cs6.10.40431411-2 currently running on dms (pid = 56747)
== Endpoint falemaisvoip is now Reachable
-- Contact falemaisvoip/sip:172.20.11.159 is now Reachable. RTT: 15.569 msec
== Endpoint 4710505 is now Reachable
-- Contact 4710505/sip:172.20.11.159 is now Reachable. RTT: 40.595 msec
== Endpoint 0114732155 is now Reachable
-- Contact 0114732155/sip:172.20.11.159 is now Reachable. RTT: 34.379 msec
dms*CLI>
Sorry, “core show modules like voicemail” but based on the fact you’re using the Debian package, I am strongly suspecting it is the same thing as the post I linked to.
Or just provide the output of “core show modules like voicemail” which I suspect will show you have multiple voicemail modules, and thus the other post will be applicable and has at the end how @Daft_Dutch solved it.
Connected to Asterisk 18.10.0~dfsg+~cs6.10.40431411-2 currently running on dms (pid = 903)
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'res_monitor' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 21. Its replacement is 'app_mixmonitor'.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'chan_sip' has been loaded but was deprecated in Asterisk version 17 and will be removed in Asterisk version 21.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'chan_mgcp' has been loaded but will be deprecated in Asterisk version 19 and will be removed in Asterisk version 21.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'chan_skinny' has been loaded but will be deprecated in Asterisk version 19 and will be removed in Asterisk version 21.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'res_adsi' has been loaded but may be removed in a future release.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_mysql' has been loaded but was deprecated in Asterisk version 1.8 and will be removed in Asterisk version 19. Its replacement is 'func_odbc'.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_getcpeid' has been loaded but may be removed in a future release.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_adsiprog' has been loaded but may be removed in a future release.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_macro' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 21. Its replacement is 'app_stack (GoSub)'.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_image' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 19.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_nbscat' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 19.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'cdr_mysql' has been loaded but was deprecated in Asterisk version 1.8 and will be removed in Asterisk version 19. Its replacement is 'cdr_adaptive_odbc'.
[Feb 7 15:57:10] WARNING[903]: loader.c:2487 load_modules: Module 'app_ices' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 19.
[Feb 7 15:57:11] WARNING[903]: loader.c:2487 load_modules: Module 'app_url' has been loaded but was deprecated in Asterisk version 16 and will be removed in Asterisk version 19.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: Error loading module 'res_pjsip_chan_sip.so': /usr/lib/x86_64-linux-gnu/asterisk/modules/res_pjsip_chan_sip.so: cannot open shared object file: No such file or directory
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: chan_alsa declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: res_pjsip_transport_websocket declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: cel_sqlite3_custom declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: cdr_pgsql declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: cdr_tds declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: cel_tds declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: cdr_sqlite3_custom declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: chan_oss declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: app_voicemail_imap declined to load.
[Feb 7 15:57:11] ERROR[903]: loader.c:2508 load_modules: app_voicemail_odbc declined to load.
[Feb 7 15:57:11] WARNING[2651]: chan_sip.c:35468 deprecation_notice: chan_sip has no official maintainer and is deprecated. Migration to
[Feb 7 15:57:11] WARNING[2651]: chan_sip.c:35469 deprecation_notice: chan_pjsip is recommended. See guides at the Asterisk Wiki:
[Feb 7 15:57:11] WARNING[2651]: chan_sip.c:35470 deprecation_notice: https://wiki.asterisk.org/wiki/display/AST/Migrating+from+chan_sip+to+res_pjsip
[Feb 7 15:57:11] WARNING[2651]: chan_sip.c:35471 deprecation_notice: https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip
Asterisk Ready.
[Feb 7 15:57:15] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159' on registration attempt to 'sip:*@172.20.11.159', retrying in '60'
[Feb 7 15:57:15] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159' on registration attempt to 'sip:*@172.20.11.159', retrying in '60'
== Endpoint falemaisvoip is now Reachable
-- Contact falemaisvoip/sip:172.20.11.159 is now Reachable. RTT: 18.439 msec
[Feb 7 15:57:16] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159' on registration attempt to 'sip:4710505@172.20.11.159', retrying in '60'
[Feb 7 15:57:16] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159' on registration attempt to 'sip:*@172.20.11.159', retrying in '60'
[Feb 7 15:57:18] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159' on registration attempt to 'sip:*@172.20.11.159', retrying in '60'
[Feb 7 15:57:18] WARNING[2676]: res_pjsip_outbound_registration.c:890 schedule_retry: Temporal response '500' received from 'sip:172.20.11.159:5060' on registration attempt to 'sip:0114732155@172.20.11.159:5060', retrying in '60'
== Endpoint 0114732155 is now Reachable
-- Contact 0114732155/sip:172.20.11.159 is now Reachable. RTT: 27.154 msec
== Endpoint 4710505 is now Reachable
-- Contact 4710505/sip:172.20.11.159 is now Reachable. RTT: 18.838 msec
== Endpoint 0777315906 is now Reachable
-- Contact 0777315906/sip:172.20.11.159 is now Reachable. RTT: 21.929 msec
== Endpoint 0772471779 is now Reachable
-- Contact 0772471779/sip:172.20.11.159 is now Reachable. RTT: 18.410 msec
dms*CLI>
And there it is. You have multiple app_voicemail modules loading when you should only have one just like the original post I linked to. You need to alter modules.conf so that app_voicemail_imap and app_voicemail_odbc don’t load using the following in modules.conf and restart Asterisk: