# Retrieving voicemail

**URL:** <https://community.asterisk.org/t/retrieving-voicemail/8125>\
**Category:** Asterisk Support\
**Created:** [July 28, 2006, 6:27am UTC](https://community.asterisk.org/t/retrieving-voicemail/8125 "2006-07-28T06:27:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![varelg](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@varelg](https://community.asterisk.org/u/varelg)\
**Post date:** [July 28, 2006, 6:27am UTC](https://community.asterisk.org/t/retrieving-voicemail/8125/1 "2006-07-28T06:27:49Z")

</div>

Hi,  
Although I made the necessary changes to extensions.conf and voicemail.cong to record and retrieve voice messages, when I try to retrieve voicemail I get denied at the prompt as my login is invalid- although am pretty sure I set my mailbox number and pass and entered them correctly.  
Here’s the extensions.conf:

```auto
[tryout]
exten => s,1,Answer
exten => s,n,WaitExten
exten => 1,1,Playback(hello-world)
exten => 2,1,Voicemail(1@mojvoicemail)
exten => 500,1,VoiceMailMain()
```

And very short entry to voicemail.conf:

```auto
[mojvoicemail]
1 => 2,Me,root@localhost
```

Why do I get denied when I enter “1” as the mailbox number and “2” as a password?  
Here’s the CLI:

```auto
--Executing Answer("Zap/1-1", "") in new stack
--Executing WaitExten("Zap/1-1", "") in new stack
==CDR updated on Zap/1-1
--Executing VoiceMailMain("Zap/1-1", "") in new stack
--Playing 'vm-login' (language 'en')
--Playing 'vm-password' (language 'en')
--Incorrect password '2' for user '1' (context = default)
--Playing 'vm-incorrect-mailbox' (language 'en')
;repeats again for mailbox and pass entry but never accepts what is set to be mailbox number and pasword
```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![chipsake](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chipsake](https://community.asterisk.org/u/chipsake)\
**Post date:** [July 28, 2006, 7:47am UTC](https://community.asterisk.org/t/retrieving-voicemail/8125/2 "2006-07-28T07:47:48Z")

</div>

You configured Your voicemail box in context [mojvoicemail] but voicemailmain() is using context [default]  
if You specify context voicemailmain(@mojvoicemail), then You will have access to voicemail boxes defined in [mojvoicemail] context

---

<div class="post-metadata">

**Author:** ![varelg](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@varelg](https://community.asterisk.org/u/varelg)\
**Post date:** [July 28, 2006, 2:27pm UTC](https://community.asterisk.org/t/retrieving-voicemail/8125/3 "2006-07-28T14:27:41Z")

</div>

Thanks,  
Now that I can retrieve my voicemail, I would like to be able to customize prompts, change which keys to press for navigating through the voicemailbox etc. Which file do I have to edit in order to achieve this?

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [July 28, 2006, 3:39pm UTC](https://community.asterisk.org/t/retrieving-voicemail/8125/4 "2006-07-28T15:39:32Z")

</div>

that would be the source in /usr/src/asterisk/apps/app\_voicemail.c

---

<div class="post-metadata">

**Author:** ![chipsake](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chipsake](https://community.asterisk.org/u/chipsake)\
**Post date:** [July 28, 2006, 5:33pm UTC](https://community.asterisk.org/t/retrieving-voicemail/8125/5 "2006-07-28T17:33:16Z")

</div>

You can customize voice prompts by recording Your own and changing standard one.  
/var/lib/asterisk/sounds/vm-(rest\_of\_filename).gsm  
baconbuttie alredy wrote where You can try to change key-pressed navigation
