No application 'VoiceMail' for extension

I installed Asterisk 1.8.12 from the Fedora 16 (64-bit) yum repo, installed FreePBX 2.10.0 from source. I have everything working except: when I get a call and there is no answer, asterisk declines the call rather than roll it over into voicemail.

[2012-07-31 18:07:41] WARNING[9594] pbx.c: No application 'VoiceMail' for extension (macro-vm, s-NOANSWER, 2) [2012-07-31 18:07:41] VERBOSE[9594] app_macro.c: == Spawn extension (macro-vm, s-NOANSWER, 2) exited non-zero on 'SIP/vitel-inbound-0000001f' in macro 'vm' [2012-07-31 18:07:41] VERBOSE[9594] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/vitel-inbound-0000001f' in macro 'exten-vm' [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: == Spawn extension (from-did-direct, 2, 2) exited non-zero on 'SIP/vitel-inbound-0000001f' [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: -- Executing [h@from-did-direct:1] Macro("SIP/vitel-inbound-0000001f", "hangupcall,") in new stack [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/vitel-inbound-0000001f", "1?theend") in new stack [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: -- Goto (macro-hangupcall,s,3) [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("SIP/vitel-inbound-0000001f", "0?Set(CDR(recordingfile)=)") in new stack [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("SIP/vitel-inbound-0000001f", "") in new stack [2012-07-31 18:07:41] VERBOSE[9594] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/vitel-inbound-0000001f' in macro 'hangupcall' [2012-07-31 18:07:41] VERBOSE[9594] pbx.c: == Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/vitel-inbound-0000001f' [2012-07-31 18:07:41] VERBOSE[9594] chan_sip.c: Scheduling destruction of SIP dialog '58ea7e792fda9a531dddcb5574645137@...' in 32000 ms (Method: INVITE) [2012-07-31 18:07:41] VERBOSE[9594] chan_sip.c: <--- Reliably Transmitting (NAT) to ...:5060 ---> SIP/2.0 603 Declined Via: SIP/2.0/UDP ...:5060;branch=z9hG4bK32f97411;received=...;rport=5060 From: "WIRELESS CALLER" ;tag=as3c330886 To: ;tag=as6cc122d7 Call-ID: 58ea7e792fda9a531dddcb5574645137@... CSeq: 102 INVITE Server: FPBX-2.10.1(1.8.12.2) Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0

When I look in freepbx, the voicemail for the extension says “unactivated”. I’ve tried to connect with *98 but I always get “login incorrect” for the password I see/set in freepbx.

The “No Answer” destination is “Unavail Voicemail if Enabled” and voicemail is enabled for this extension.

Previous searches for solutions have indicated there’s an issue loading the voicemail so file. It do have this one:

but it’s not loaded properly:

[2012-07-31 18:16:09] WARNING[10172] loader.c: Error loading module 'app_voicemail_odbc.so': /usr/lib64/asterisk/modules/app_voicemail_odbc.so: undefined symbol: _ast_odbc_request_obj [2012-07-31 18:16:09] WARNING[10172] loader.c: Module 'app_voicemail_odbc.so' could not be loaded.

I suspect the last error is really responsible for all my problems. Anyone have ideas on how to fix this? Where is this undefined symbol defined?

Thanks.

recompile maing sure you run “make menuselect” and make sure voicemail is selected.

that so file is for odbc voicemail.

I uninstalled asterisk-voicemail-odbc and installed asterisk-voicemail-plain and voicemail is now working.

Ian: I think he is using a package install. Over the last couple of years there has been a big switch away from source installs and I think that most new users, or at least ones with install problems, now would not know how to do a source install.

(This actually corresponded to the end of life sequence on 1.4 and 1.6, and the packages do not keep up with the latest versions, so it has also resulted in a lot of new installs of obsolete software.)