App voicemail running but voicemail app not found

I have Asterisk 18 as installed from Ubuntu repositories. I have load => app_voicemail.so in my modules.conf file and I can do all of this:

arthur*CLI> module show like voi
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
4 modules loaded
arthur*CLI> core show help voicemail
voicemail reload               -- Reload voicemail configuration
voicemail show aliases         -- List mailbox aliases
voicemail show users [for]     -- List defined voicemail boxes
voicemail show zones           -- List zone message formats
arthur*CLI> voicemail reload
Reloading voicemail configuration...
arthur*CLI> 
arthur*CLI> 
arthur*CLI> voicemail show users
Context    Mbox  User                      Zone       NewMsg
default    115   Loopback Mailbox                          0
1 voicemail users configured.

On the other hand, calls to dialplan that specifies Voicemail or VoicemailMain fail as in:

[Apr 10 11:36:26] WARNING[1862630][C-00000004]: pbx.c:2928 pbx_extension_helper: No application 'Voicemail' for extension (privileged-inbound, 1151, 4)

or

[Apr 10 11:40:26] WARNING[1862696][C-00000005]: pbx.c:2928 pbx_extension_helper: No application 'VoicemailMain' for extension (privileged-inbound, 1150, 2)

I don’t know what I failed to enable. Any assistance gratefully accepted.

Ed Greenberg

Hi Ed

You have configured Voicemail for context default not for priviledged-inbound

[…]

Hi, the voicemail extension, 115, is in the default context of voicemail.conf:

[default]
; Note: The rest of the system must reference mailboxes defined here as mailbox@default.
115 => xxxxxxxx,Loopback Mailbox,edg@greenberg.org

The calling party a pjsip extension) is in the privileged-inbound context in the dialplan:

[privileged-inbound]
include => cnet-outbound
include => recorder
include => voicemailboxes
include => privileged
include => test-numbers
...
[voicemailboxes]
exten => 1150,1,NoOp(Entering ${CONTEXT} with callerid ${CALLERID(num)} and exten ${EXTEN} and device state exten is ${DEVICE_STATE(PJSIP/${EXTEN})})
exten => 1150,n,VoicemailMain()
exten => 1150,n,hangup
exten => 1151,1,NoOp(Entering ${CONTEXT} with callerid ${CALLERID(num)} and exten ${EXTEN} and device state exten is ${DEVICE_STATE(PJSIP/${EXTEN})})
exten => 1151,n,Answer
exten => 1151,n,Wait(1)
exten => 1151,n,VoiceMail(115@default)
exten => 1151,n,hangup

core show applications does not list the voicemail or voicemailmain applications:

             UserEvent: Send an arbitrary user-defined event to parties interested in a channel (AMI users and relevant res_stasis applications). 
               Verbose: Send arbitrary text to verbose output. 
                  Wait: Waits for some time. 

I would think that the voicemail and voicemailmain applications would be globally available so long as the module was loaded:

arthur*CLI> module show like voice
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
4 modules loaded
arthur*CLI> 

Still confused.

Don’t load multiple voicemail modules. Only one should be loaded. Start by fixing that.

1 Like

That did it. Thanks.

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