No application 'VoiceMail'

I moved from debian to ubuntu for my asterisk server.
I resolved all migration issues except one.
Voicemail does not work

asterisk*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
default    6001  Bram Diederik                             0
mailbox    from                                            0
other      1234  Company2 User                             0
3 voicemail users configured.
    -- Executing [5001@users:1] Log("PJSIP/6002-00000001", "NOTICE, Dialing local from "Bram Diederik" <6002> to voicemail Main") in new stack
[Nov 20 14:48:35] NOTICE[17654][C-00000002]: Ext. 5001:1 @ users:  Dialing local from "Bram Diederik" <6002> to voicemail Main
[Nov 20 14:48:35] WARNING[17654][C-00000002]: pbx.c:2925 pbx_extension_helper: No application 'VoiceMailMain' for extension (users, 5001, 2)
  == Spawn extension (users, 5001, 2) exited non-zero on 'PJSIP/6002-00000001'
    -- Executing [5002@users:1] Log("PJSIP/6002-00000002", "NOTICE, Dialing local from "Bram Diederik" <6002> to voicemail") in new stack
[Nov 20 14:48:41] NOTICE[17656][C-00000003]: Ext. 5002:1 @ users:  Dialing local from "Bram Diederik" <6002> to voicemail
[Nov 20 14:48:41] WARNING[17656][C-00000003]: pbx.c:2925 pbx_extension_helper: No application 'VoiceMail' for extension (users, 5002, 2)
  == Spawn extension (users, 5002, 2) exited non-zero on 'PJSIP/6002-00000002'

exten => 5001,1,Log(NOTICE, Dialing local from ${CALLERID(all)} to voicemail Main)
exten => 5001,n,VoiceMailMain(6001@default,u)
exten => 5001,n,Hangup()

exten => 5002,1,Log(NOTICE, Dialing local from ${CALLERID(all)} to voicemail)
exten => 5002,n,VoiceMail(6001@default,u)
exten => 5002,n,Hangup()


 [default]
; Note: The rest of the system must reference mailboxes defined here as mailbox@default.
6001 => 1234,Bram Diederik,bram@mail.com

What is the output of “module show like voicemail”? At startup does Asterisk complain about anything voicemail related (such as trying to load multiple voicemail modules)?

asterisk*CLI> module show like voicemail
Module                         Description                              Use Count  Status      Support Level
app_voicemail.so               Comedian Mail (Voicemail System)         0          Running              core
app_voicemail_imap.so          Comedian Mail (Voicemail System) with IM 0          Not Running          core
app_voicemail_odbc.so          Comedian Mail (Voicemail System) with OD 0          Not Running          core
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support    0          Running              core
asterisk*CLI> module load app_voicemail_imap.so
Unable to load module app_voicemail_imap.so
Command 'module load app_voicemail_imap.so' failed.
[Nov 20 14:58:35] ERROR[17621]: app_voicemail_imap.c:2804 inboxcount2: Couldn't find mailbox 6001 in context default
[Nov 20 14:58:35] ERROR[17621]: app_voicemail_imap.c:2804 inboxcount2: Couldn't find mailbox from in context mailbox
[Nov 20 14:58:35] ERROR[17621]: app_voicemail_imap.c:2804 inboxcount2: Couldn't find mailbox 1234 in context other
  == Registered application 'VoiceMail'
  == Registered application 'VoiceMailMain'
  == Registered application 'VMAuthenticate'
  == Registered application 'VoiceMailPlayMsg'
  == Registered application 'VMSayName'
[Nov 20 14:58:35] ERROR[17621]: pbx_functions.c:394 __ast_custom_function_register: Function VM_INFO already registered.
  == Manager registered action VoicemailUsersList
  == Manager registered action VoicemailUserStatus
  == Manager registered action VoicemailRefresh
[Nov 20 14:58:35] ERROR[17621]: app_voicemail_imap.c:15104 load_module: Failure registering applications, functions or tests
  == Unregistered application 'VoiceMail'
  == Unregistered application 'VoiceMailMain'
  == Unregistered application 'VMAuthenticate'
  == Unregistered application 'VoiceMailPlayMsg'
  == Unregistered application 'VMSayName'
  == Manager unregistered action VoicemailUsersList
  == Manager unregistered action VoicemailUserStatus
  == Manager unregistered action VoicemailRefresh

You can only load a single voicemail implementation. For disk based, app_voicemail.so. The others include their respective storage detail (ODBC or IMAP). You can configure modules.conf to not load the ones that you don’t need and restart Asterisk.

I excluded the modules that only app_voicemail.so was loaded. still no voicemail apps

On restarting Asterisk check to ensure the other ones are not loaded, and see if the log states anything when app_voicemail.so does load.

Ubuntu appears to package voicemail support separately from core Asterisk
features.

Did you install Ubuntu – Details of package asterisk-voicemail in focal ?

Antony.

got it working now.

noload => res_pjsip_send_to_voicemail.so
noload => app_voicemail_imap.so
noload => app_voicemail_odbc.so

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.