Create voicemail box

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.

Nah, not the sources.

Add a line in the Sip.conf for each user, reading:

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,

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

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

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

I’ve donne that



1234 => 1111,Toure,


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

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,
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).

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

Your voicemail.conf is like

exten => 1234,1,Dial(SIP/toure,20,tr)
exten => 1234,2,VoiceMail,u1234
exten => 1234,1002,VoiceMail,b1234

but it should be:

1234 => 1111, Johns Mailbox,

The file holding the SIP device context

The dialplan. What happens when where and why

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.