Voicemail not found in context

Hi Asterisk community!

I’ve tried researching this voicemail not found in context problem that others have had but can’t seem to find a fix that works for me. Would appreciate any help and please let me know if I need to share different information:

ERROR[-1]: app_voicemail.c:2836 inboxcount2: Couldn’t find mailbox 2022 in context main

These are my voicemail.conf settings

[general]
format=wav
serveremail=asterisk
attach=yes
maxmsg=1000
minsecs=3
maxsecs=180
maxsilence=10
silencethreshold=128
maxlogins=5
moveheard=yes

[main]
2022 => xxxx,Somebody,xxxxxxx@proton
2021 => xxxx,Everyonexxxxxxx@proton

2000 => xxxx,Y2K,xxxxxxxx@proton

The strange part is that it doesn’t give the error message for the 2021 or 2000 mailboxes. Why might that be?

And then when I dial the extension that I thought should lead to the 2000 mailbox:

Code:

exten=>2000,1,Answer
exten=>2000,2,VoiceMail(2000@main)

I receive the following error:

[Jun 25 16:02:09] WARNING[107690][C-0000008e]: pbx.c:2925 pbx_extension_helper: No application ‘VoiceMail’ for extension (internal, 2000, 2)

Any guidance would be much appreciated. TIA!

hmmm
Try check your current voicemail boxes and confirm it’s loaded with correct context and Mbox:

voicemail show users

If you receive a bad response as that:
No such command 'voicemail show users' (type 'core show help voicemail show' for other possible commands)

Then you didn’t put voicemail module to load at start or even didn’t compiled this module at all.

To add to startup, edit modules.conf and add an extra line with “load = app_voicemail.so

To compile, go to asterisk source directory and call make menuselect and add voicemail to your required modules, save and call make && make install

He’s getting an error from app_voicemail.c,so I think it has been compiled and a load attempted.

He doesn’t say when he gets the error, and I’ve not used voice mail myself, but I wonder if is a load time error, and the load is being aborted after the first error.

I’m just guessing someone are followed some howto and restarting entire machine but not restarting howto steps from beginning.

Thanks - I see 3 voicemail users configured.

I get the errors quite often in the CLI when I am not attempting anything.

OK I’ve found this thread: Voicemail not working or not activated - #6 by faisalkhan - General Help - FreePBX Community Forums

And when I enter module show like app_voicemail.so it shows it is loaded but not running, so will attempt to fix that and report back.

The one I was asking about was “couldn’t find mailbox”. The Voicemail application error indicates that the module failed to load, but the couldn’t find one indicates that part of it was loaded at the time the message was produced.

Actually, given the theory that it is failing to initialise, you should try issuing the command “module load app_voicemail.so”, at the CLI prompt and see if, and how, it fails.

Thanks, yes I’ve been trying to research the couldn’t find mailbox error which is the one that keeps popping up.

I just tried module load app_voicemail and this is what I get:

Unable to load module app_voicemail.so
Command ‘module load app_voicemail.so’ failed.
[Jul 1 00:14:29] WARNING[268170]: app_voicemail.c:13877 actual_load_config: maxsilence should be less than minsecs or you may get empty messages
[Jul 1 00:14:29] WARNING[50843]: app_voicemail_imap.c:2444 __messagecount: Couldn’t find mailbox 2022 in context main
[Jul 1 00:14:29] WARNING[50843]: app_voicemail_imap.c:2444 __messagecount: Couldn’t find mailbox 2021 in context main
[Jul 1 00:14:29] WARNING[50843]: app_voicemail_imap.c:2444 __messagecount: Couldn’t find mailbox 2000 in context main
[Jul 1 00:14:29] ERROR[268170]: pbx_functions.c:394 __ast_custom_function_register: Function VM_INFO already registered.
[Jul 1 00:14:29] ERROR[268170]: app_voicemail.c:15104 load_module: Failure registering applications, functions or tests

Any ideas where to go from here? Thank you so much in advance

Do you have multiple voicemail modules built and loading?

I see the following loaded:

Module Description Use Count Status Support Level

app_minivm.so Mini VoiceMail (A minimal Voicemail e-ma 0 Running extended
app_voicemail.so Comedian Mail (Voicemail System) 0 Running core
app_voicemail_imap.so Comedian Mail (Voicemail System) with IM 0 Not Running core
core
func_vmcount.so Indicator for whether a voice mailbox ha 0 Running core
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support 0

353 modules loaded

In modules.conf I see:

[global]
noload=app_voicemail_odbc.so
noload=app_voicamail_imap.so

and I added
load=app_voicemail.so

Could the Mini VoiceMail app be a the problem, @jcolp?

@sarahbobs Just confirming:
Is this a typo:
noload=app_voicamail_imap.so <-----

mini_vm should not be an issue. :slight_smile:

Wow, good eye! Yes was a typo (strange as that came in preloaded with my modules.conf file – of course it is within the realm of possibilities that I could have somehow fat fingered it but I don’t think I touched that line!)

However, it doesn’t seem to affect anything after I reload and try to dial the voicemail box I still get the error:

No application ‘VoiceMail’ for extension.

And it’s true, under core show applications, there is no VoiceMail listed.
How can I fix that?

From the asterisk cli do:
module load app_voicemail.so

Should throw an error advising why it doesnt want to load

Thanks, @nrjchnd! It says it failed and threw a warning that it is already loaded and running. :thinking:

It is possible that I installed Asterisk twice, but I thought I had uninstalled it. Is there anyway for me to check if there is a problem there?

(and I’d just like to say how grateful I am for the help! tomorrow I take these phones out into the desert for an art project and will be so cool to have the voicemail working! it’s been a fun project and I’m learning a lot. Really appreciate how kind and helpful this community is.)

I’m seeing a basic failure: Failure registering applications, functions or tests

Are you loading module with verbosity 3 or higher?

host*CLI> module load app_voicemail.so

Give us the log result

I think you would need a full restart for the noload to start working.

1 Like

I have the current console verbosity at 5. Root console is at 0 and I don’t know much about that.

This is what shows in the CLI and in the var/log/asterisk verbose file:

[Jul 1 17:08:37] WARNING[274925] loader.c: Module ‘app_voicemail.so’ already loaded and running.

My logger has the following, let me know if it should be different for testing now:

[logfiles]
console => notice,warning,error,dtmf
messages=>notice,warning,error
verbose =>notice,warning,error,verbose

Under core show applications, do you all have a VoiceMail application?

What does “module show like voicemail” in the CLI output?

nobot*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
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support 0 Running core

3 modules loaded