VoicemailMain "Leave a Message" doesn't work

Hi,

I have centos 6 Server with asterisk 1.8.15 installed with epel repository.
When I run VoicemailMain in dial plan after login process I have access to messages
but under 3 for Advanced Options, 5 for “Leave a Message” ask me for extension after I dial the extension asterisk said:
app_voicemail.c:5660 leave_voicemail: No entry in voicemail config file for ‘201’

I have 201 in default context this is the line in voicemail.conf:
201 => 201201,m.taheri,mohsen.taheri@gmail.com,attach=yes

please help me.
thanks
mohsen

Hi,

I think i don’t fully understand what you are trying to achieve, but looking on asterisk documentation on VoiceMailMain : voip-info.org/wiki/view/Aste … ceMailMain

shows that you have to set

5 Send Message (only available if sendvoicemail=yes in voicemail.conf)
1 Use Voicemailnumber (only available if usedirectory=yes in voicemail.conf)
2 Use Voicemail Directory (only available if usedirectory=yes in voicemail.conf)

Regards,

Sorry, I thought forum will alert me with email for reply :frowning:

I am trying to send a voicemail message to another extension using VoicemailMain application.

this is my sip.conf configuration for extensions 201,204
[201]
type=peer
username=201
secret=******
context=test
disallow=all
allow=ulaw
allow=alaw
mailbox=201@default

[204]
type=peer
username=204
secret=******
context=test
disallow=all
allow=ulaw
allow=alaw
mailbox=204@default

this is a extension.conf dial plan:
[test]
exten => 1000,1,Answer()
exten => 1000,n,VoiceMailMain()

exten => h,1,Hangup()

this is voicemail.conf configuration:
[general]
format=wav49|gsm|wav
serveremail=asterisk
attach=yes
maxmsg=100
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3
sendvoicemail=yes

[default]
201 => ******,m.taheri,mohsen.taheri@gmail.com,attach=yes
204 => ******,m.bahramizadeh,bahramizadeh.maryam@gmail.com,attach=yes

I dial 1000 with my 201 extension, first voicemail menu ask for user and password after that voicemail menu tell me the information of new and old messages, I dial 3 for advance option, in advance menu I dial 5 for leaving new message,
voicemail menu asks for extension I dial 204 after playing 204 nothing happen and back to the menu.
inside asterisk cli after playing 204 asterisk show following error:
app_voicemail.c:5660 leave_voicemail: No entry in voicemail config file for ‘204’

I don’t know what I have missed,
please help me.

Regards,

hi constantinp

I found the solution. :smiley:

http://lists.digium.com/pipermail/asterisk-users/2008-February/205499.html

just add this configuration to general context in voicemail.conf:
searchcontexts=yes

I don’t know why but I think asterisk don’t look for default context.

thanks anyway