# Create voicemail box

**URL:** <https://community.asterisk.org/t/create-voicemail-box/5718>\
**Category:** Asterisk Support\
**Created:** [April 13, 2006, 9:19pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718 "2006-04-13T21:19:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![toure32](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@toure32](https://community.asterisk.org/u/toure32)\
**Post date:** [April 13, 2006, 9:19pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/1 "2006-04-13T21:19:36Z")

</div>

Hi,  
everybody i’m new user of asterisk i’ve just finished install an configure  
my asterisk. Now i want to create voice mailbox  
the doc i’m reading to do so refer to an utility /usr/src/asterisk/addmailbox  
but i can find this on my system  
Note i’ve checked out my asterisk from cvs in /usr/src/asterisk/ directory.  
thank for your help.  
Regards.

---

<div class="post-metadata">

**Author:** ![RichardHH](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RichardHH](https://community.asterisk.org/u/RichardHH)\
**Post date:** [April 13, 2006, 9:48pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/2 "2006-04-13T21:48:14Z")

</div>

Nah, not the sources.

Add a line in the Sip.conf for each user, reading:  
mailbox=34@default

34 is the dialed extension the mailbox is assigned to, default is the context.

In the file voicemail.conf, add a line for the mailbox:

34 =\> 1111, My [Mailbox,me@wherever.com](mailto:Mailbox,me@wherever.com)

That means:  
34 is the mailboxnumber.  
1111 is the pincode to access it.  
mail is the adress the voicemail application sends a mail to as soon as a msg arrives in this mailbox.

All these config files are located in  
/etc/asterisk

---

<div class="post-metadata">

**Author:** ![toure32](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@toure32](https://community.asterisk.org/u/toure32)\
**Post date:** [April 13, 2006, 9:55pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/3 "2006-04-13T21:55:36Z")

</div>

that is to say i don’t need to execute /usr/src/asterisk/addmailbox

---

<div class="post-metadata">

**Author:** ![RichardHH](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RichardHH](https://community.asterisk.org/u/RichardHH)\
**Post date:** [April 13, 2006, 11:10pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/4 "2006-04-13T23:10:52Z")

</div>

i dont use it, i add mailboxes to the config files and reload after that, thats all 😄

---

<div class="post-metadata">

**Author:** ![toure32](https://avatars.discourse-cdn.com/v4/letter/t/958977/32.png) [@toure32](https://community.asterisk.org/u/toure32)\
**Post date:** [April 19, 2006, 8:18pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/5 "2006-04-19T20:18:55Z")

</div>

I’ve donne that  
sip.con

```auto
......
mailbox=1234@sip
......
```

voicemail.conf

```auto
[sip]
....
1234 => 1111,Toure,my@email.com
.....
```

extensions.cof

```auto
[sip]
...
exten => 1234,1,Dial(SIP/toure,20,tr)
exten => 1234,2,VoiceMail,u1234
exten => 1234,1002,VoiceMail,b1234
...
```

when i call 1234 and there is no answer i get this message in asterisk CLI

```auto
Nobody picked up in 20000 ms
executing VoiceMail("SIP/toure-f5d9","u1234")in new stack
.... WARNING [3615]: app_voicemail.c:2384 leave_voicemail: no entry in voicemail config file for 1234.
```

I dont know why this problem ossur allthough i’ve followed your instructions.

Note there is an entry : 1234 =\> [1111,Toure,my@email.com](mailto:1111,Toure,my@email.com)  
in voicemail.conf in default context section  
if this entry is enabled there is warning message.  
i want to have this entry in sip context session in voicemail.conf(context i’ve added).

---

<div class="post-metadata">

**Author:** ![gsmackay](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/gsmackay/32/213_2.png) [@gsmackay](https://community.asterisk.org/u/gsmackay)\
**Post date:** [April 20, 2006, 12:57pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/6 "2006-04-20T12:57:14Z")

</div>

You have defined your mailbox in the “sip” context, not the default. Change the line to mailbox=1234@default

> [@](#):
>
> I’ve donne that  
> sip.con  
> Code:
> 
> …  
> mailbox=1234@sip  
> …

---

<div class="post-metadata">

**Author:** ![RichardHH](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@RichardHH](https://community.asterisk.org/u/RichardHH)\
**Post date:** [April 20, 2006, 1:51pm UTC](https://community.asterisk.org/t/create-voicemail-box/5718/7 "2006-04-20T13:51:46Z")

</div>

Your voicemail.conf is like  
[sip]  
…  
exten =\> 1234,1,Dial(SIP/toure,20,tr)  
exten =\> 1234,2,VoiceMail,u1234  
exten =\> 1234,1002,VoiceMail,b1234

but it should be:

[1234]  
1234 =\> 1111, Johns [Mailbox,john@home.com.gov.uk.tv.org.net](mailto:Mailbox,john@home.com.gov.uk.tv.org.net)

SIP.CONF:  
The file holding the SIP device context

EXTENSIONS.CONF:  
The dialplan. What happens when where and why

VOICEMAIL.CONF  
The definitions of all mailboxes to the above given format.

But the conf files ALL have (commented out) example lines…  
Just copy, uncomment and match to your needs.
