No application 'VoiceMail' for extension issue

How fix this

[Feb  6 15:54:30] WARNING[56075][C-00000001]: pbx.c:2925 pbx_extension_helper: No application 'VoiceMail' for extension (testing, 0114732155, 5)
  == Spawn extension (testing, 0114732155, 5) exited non-zero on 'PJSIP/4710505-00000000'

In this case, I need to send voice mail to my personal email after playing welcome.vox voice. But it not success. How fix it?

Ensure that an app_voicemail module is loaded (and only one)?

1 Like

Yes it is loaded.
This is modules.conf

; Applications

load = app_bridgewait.so

load = app_dial.so

load = app_playback.so

load = app_stack.so

load = app_verbose.so

load = app_voicemail.so

load = app_directory.so

load = app_confbridge.so

load = app_queue.so

load => chan_sip.so

load => res_pjsip_chan_sip.so

Then check the console log at startup to see what happened when it was attempted to be loaded.

is this did you mean??

dms*CLI> dialplan reload
Dialplan reloaded.
    -- Including switch 'Lua/' in context 'demo'
    -- Including switch 'Lua/' in context 'public'
    -- Including switch 'Lua/' in context 'default'
    -- Including switch 'Lua/' in context 'local'
    -- Including switch 'DUNDi/e164' in context 'ael-dundi-e164-switch'
    -- Time to scan old dialplan and merge leftovers back into the new: 0.000826 sec
    -- Time to restore hints and swap in new dialplan: 0.000013 sec
    -- Time to delete the old dialplan: 0.000296 sec
    -- Total time merge_contexts_delete: 0.001135 sec
    -- pbx_config successfully loaded 45 contexts (enable debug for details).
  == Endpoint 4710505 is now Reachable
    -- Contact 4710505/sip:172.20.11.159 is now Reachable.  RTT: 33.656 msec
dms*CLI> pjsip reload
Module 'res_pjsip.so' reloaded successfully.
Module 'res_pjsip_authenticator_digest.so' reloaded successfully.
Module 'res_pjsip_endpoint_identifier_ip.so' reloaded successfully.
Module 'res_pjsip_mwi.so' reloaded successfully.
Module 'res_pjsip_notify.so' reloaded successfully.
Module 'res_pjsip_outbound_publish.so' reloaded successfully.
Module 'res_pjsip_publish_asterisk.so' reloaded successfully.
Module 'res_pjsip_outbound_registration.so' reloaded successfully.
    -- Reloading module 'res_pjsip.so' (Basic SIP resource)
[Feb  6 16:14:03] NOTICE[56651]: sorcery.c:1348 sorcery_object_load: Type 'system' is not reloadable, maintaining previous values
    -- Reloading module 'res_pjsip_authenticator_digest.so' (PJSIP authentication resource)
    -- Reloading module 'res_pjsip_endpoint_identifier_ip.so' (PJSIP IP endpoint identifier)
    -- Reloading module 'res_pjsip_mwi.so' (PJSIP MWI resource)
    -- Reloading module 'res_pjsip_notify.so' (CLI/AMI PJSIP NOTIFY Support)
    -- Reloading module 'res_pjsip_outbound_publish.so' (PJSIP Outbound Publish Support)
    -- Reloading module 'res_pjsip_publish_asterisk.so' (PJSIP Asterisk Event PUBLISH Support)
    -- Reloading module 'res_pjsip_outbound_registration.so' (PJSIP Outbound Registration Support)
dms*CLI>

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.

Ok, following I provides more things

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.

ubuntu directly uses the debian packages. so the issue should be the same

How fix this issue??

Hi,

the log output is only a small part of the messages that jcolp meant, I think.

Connect with asterisk -R (instead of -r) and execute
core restart now

Or stop Asterisk and call
asterisk -cvvv
to see the log messages at startup.

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.

This is my voicemail.conf


[general]
format=wav49|gsm|wav
serveremail=asterisk
attach=yes
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3
emaildateformat=%A, %B %d, %Y at %r
pagerdateformat=%A, %B %d, %Y at %r
sendvoicemail=yes 

[zonemessages]
eastern=America/New_York|'vm-received' Q 'digits/at' IMp
central=America/Chicago|'vm-received' Q 'digits/at' IMp
central24=America/Chicago|'vm-received' q 'digits/at' H N 'hours'
military=Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM

[default]
1234 => 4242,Example Mailbox,root@localhost
102 => 9012,Chandima,chandimadms9@gmail.com

[myaliases]
1234@devices => 1234@default

[other]
1234 => 5678,Company2 User,root@localhost

[testMail]
dmse_IVR => 12345,Chandima,chandimadms9@gmail.com

Hello kwemheuer

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:

noload => app_voicemail_imap.so
noload => app_voicemail_odbc.so
1 Like

Thank you. This is the solution