Create voicemail box


#1

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.


#2

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

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


#3

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


#4

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


#5

I’ve donne that
sip.con

......
mailbox=1234@sip
......

voicemail.conf

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

extensions.cof

[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

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


#6

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


#7

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

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.