The voicemail module of our Asterisk server suddenly stopped working after an update which prompted a barrage of reports from the end users. Of course, like what any good Geekysaur would do, we did what we do best — find a solution!

First things first, the Asterisk full log. We are looking for any mention of “VoiceMail” and found No application 'VoiceMail' for extension (macro-vm, s-BUSY, 3). This tells us that the VoiceMail module is probably not loaded.

Next, let’s try loading the module!

After trying to load the module, we were faced with the following error:

Again, this could be any application file and is not specific to app_voicemail.so.

What does this tell us? It looks like the update caused an issue with the compiled applications which means we may have to re-compile the modules.

How do we do this? Read on! Note that this only works for compiled Asterisk installations and ./configure, make menuselect, and make SHOULD have previously been done on this directory.

  1. Go to the directory where the source code for your compiled Asterisk server is. For me, it was in cd /usr/src/asterisk-11.11.0.
  2. Go to the cd apps directory.
  3. Find and edit the offending application C file. In my case, since I was having issues with app_voicemail.so, I edited app_voicemail.c.
  4. Add the following to the top of your C file:
  5. Then let’s recompile the module using this command:

    Again, change app_voicemail.o and app_voicemail.c with your own.
  6. Now, let’s link the objects! DO NOT FORGET this step!

    I’d like to say, don’t forget to change app_voicemail.x with your own, but you know that already!

That’s it! That’s all you need to do to recompile an Asterisk module. Now we just have to run module load app_voicemail.so again like mentioned earlier and it would be working like a charm!

How did it go for you? Did this help? Did you do anything different or added some steps to make this better? Hit up your fellow Geekysaurs in the comments below!