Voicemail not working - Rebuild makes no diference

Hey all,

Apologies if this isn’t the right board, I’ve researched this the last few days and none of the solutions I find are working.

When calling *97 to go to Voicemail it dials and then hands up, I’ve included the logs below, I assume that the follow line is the issue

[2017-10-25 23:07:44] WARNING[31748][C-00000048] pbx.c: No application ‘VoiceMailMain’ for extension (from-internal, *97, 10)

I’ve taken a look at other threads and rebuilt asterisk a couple of times ensuring VM is built, I know I’m missing something simple hoping someone can point it out for me :slight_smile:

Thanks in advance!

[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:1] Macro("PJSIP/901-00000039", "user-callerid,") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/901-00000039", "TOUCH_MONITOR=1508926062.232") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/901-00000039", "AMPUSER=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:3] GotoIf("PJSIP/901-00000039", "0?report") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:4] ExecIf("PJSIP/901-00000039", "1?Set(__REALCALLERIDNUM=901)") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/901-00000039", "AMPUSER=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:6] GotoIf("PJSIP/901-00000039", "0?limit") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/901-00000039", "AMPUSERCIDNAME=Christopher Downs") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:8] GotoIf("PJSIP/901-00000039", "0?report") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:9] Set("PJSIP/901-00000039", "AMPUSERCID=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/901-00000039", "__DIAL_OPTIONS=HhTtr") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:11] Set("PJSIP/901-00000039", "CALLERID(all)="Christopher Downs" <901>") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:12] GotoIf("PJSIP/901-00000039", "0?limit") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:13] ExecIf("PJSIP/901-00000039", "0?Set(GROUP(concurrency_limit)=901)") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("PJSIP/901-00000039", "0?Set(CHANNEL(language)=)") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:15] GotoIf("PJSIP/901-00000039", "0?continue") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:16] ExecIf("PJSIP/901-00000039", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:17] Set("PJSIP/901-00000039", "__TTL=6") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:18] GotoIf("PJSIP/901-00000039", "1?continue") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx_builtins.c: Goto (macro-user-callerid,s,29)
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:29] Set("PJSIP/901-00000039", "CALLERID(number)=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:30] Set("PJSIP/901-00000039", "CALLERID(name)=Christopher Downs") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:31] GotoIf("PJSIP/901-00000039", "0?cnum") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:32] Set("PJSIP/901-00000039", "CDR(cnam)=Christopher Downs") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:33] Set("PJSIP/901-00000039", "CDR(cnum)=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-user-callerid:34] Set("PJSIP/901-00000039", "CHANNEL(language)=en_NZ") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:2] Set("PJSIP/901-00000039", "CONNECTEDLINE(name-charset,i)=utf8") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:3] Set("PJSIP/901-00000039", "CONNECTEDLINE(name,i)=My Voicemail") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:4] Set("PJSIP/901-00000039", "CONNECTEDLINE(num,i)=901") in new stack
[2017-10-25 23:07:42] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:5] Answer("PJSIP/901-00000039", "") in new stack
[2017-10-25 23:07:43] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:6] Wait("PJSIP/901-00000039", "1") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:7] Macro("PJSIP/901-00000039", "get-vmcontext,901") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-get-vmcontext:1] Set("PJSIP/901-00000039", "VMCONTEXT=default") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-get-vmcontext:2] GotoIf("PJSIP/901-00000039", "0?200:300") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx_builtins.c: Goto (macro-get-vmcontext,s,300)
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-get-vmcontext:300] NoOp("PJSIP/901-00000039", "") in new stack
[2017-10-25 23:07:44] ERROR[31748][C-00000048] pbx_functions.c: Function VM_INFO not registered
[2017-10-25 23:07:44] WARNING[31748][C-00000048] func_logic.c: Syntax IF(<expr>?[<true>][:<false>]) (expr must be non-null, and either <true> or <false> must be non-null)
[2017-10-25 23:07:44] WARNING[31748][C-00000048] func_logic.c: In this case, <expr>='', <true>='SUCCESS', and <false>='FAILED'
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:8] Set("PJSIP/901-00000039", "VMBOXEXISTSSTATUS=") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [*97@from-internal:9] GotoIf("PJSIP/901-00000039", "0?mbexist") in new stack
[2017-10-25 23:07:44] WARNING[31748][C-00000048] pbx.c: No application 'VoiceMailMain' for extension (from-internal, *97, 10)
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Spawn extension (from-internal, *97, 10) exited non-zero on 'PJSIP/901-00000039'
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [h@from-internal:1] Macro("PJSIP/901-00000039", "hangupcall") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/901-00000039", "1?theend") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/901-00000039", "0?Set(CDR(recordingfile)=)") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-hangupcall:4] NoOp("PJSIP/901-00000039", " monior file= ") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-hangupcall:5] AGI("PJSIP/901-00000039", "attendedtransfer-rec-restart.php,,") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] res_agi.c: <PJSIP/901-00000039>AGI Script attendedtransfer-rec-restart.php completed, returning 0
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Executing [s@macro-hangupcall:6] Hangup("PJSIP/901-00000039", "") in new stack
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/901-00000039' in macro 'hangupcall'
[2017-10-25 23:07:44] VERBOSE[31748][C-00000048] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/901-00000039'

Looks like Asterisk is missing the voicemail module(s).

Here’s the smoking gun, in case you’re wondering how we came to that conclusion. The last line (No Application) is the problem.

from asterisk cli.

module load app_voicemail

and post the result. perhaps a conf file is corrupt.

2 Likes
nz1*CLI> 
Unable to load module app_voicemail
Command 'module load app_voicemail' failed.
[2017-10-26 09:33:46] WARNING[21438]: app_voicemail.c:13885 actual_load_config: maxsilence should be less than minsecs or you may get empty messages
[2017-10-26 09:33:46] WARNING[21438]: app_voicemail.c:1406 apply_option: Option 'maxmessage' has been deprecated in favor of 'maxsecs'.  Please make that change in your voicemail config.
[2017-10-26 09:33:46] WARNING[21438]: app.c:505 __ast_vm_register: Voicemail provider already registered by res_mwi_external.

At the asterisk cli:-

module unload res_mwi_external_ami
module unload res_mwi_external
module load app_voicemail

then add

noload = res_mwi_external.so
noload = res_mwi_external_ami.so

to /etc/asetrisk/modules.conf

Next time you build asterisk , only use the modules you are comfortable with using.

2 Likes

Hey Dicko,

Thank you for your assistance that has solved my issue, I appreciate your help

No prob, I FU’d the same way a while ago (that’s how I knew the fix :wink: )

2 Likes