• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
Back to Tutorials

6.43.1. VoiceMail Example 1

In this basic example we will show you:
* how to check for current voicemail accounts
* how to create a new voicemail.conf from a scratch
* how to add a new timezone
* how to add global keywords and options
* how to add new contexts
* how to add new users
* how to add options per-user
* how to edit your dialplan in order to activate voicemail functionality
* how to check your voicemail


Requirements - this tutorial starts in the following setup:
you have a working Asterisk server
you have registered SIP and/or IAX2 accounts - we will run this tutorial with the following accounts:
- joahim1 - SIP
- joahim2 - IAX2
- davy1 - SIP
- davy2 - IAX2
- mila.hook - SIP
- john.dow - SIP
- dacy.even - SIP
- john.barrow - IAX2
- john.ross - IAX2
- patricia.bay - IAX2
- patrick.bay - IAX2
- peter.ledge - IAX2
- dillon.creek - IAX2
- jose.gutstein - IAX2
- mnalia.nusan - IAX2
- michael.tobias - IAX2
you already have extensions for your SIP and/or IAX2 accounts
101 - calls joahim1 and joahim2
- 102 - calls davy1 and davy2
- 201 - calls mila.hook
- 202 - john.dow
- 203 - dacy.even
- 301 - john.barrow
- 302 - john.ross
- 303 - patricia.bay
- 304 - patrick.bay
- 305 - peter.ledge
- 306 - dillon.creek
- 307 - jose.gutstein
- 308 - mnalia.nusan
- 309 - michael.tobias
Here are the initial configuration files that we are going to use:
- iax.conf
- sip.conf
- extensions.org.conf


We are going to work from a scratch for this example. This means that we will begin with an empty voicemail.conf file. If you want to follow this tutorial you should back up your configuration file. You can do this by typing `cd /etc/asterisk/ && mv voicemail.conf ~voicemail.conf`

How to check for current voicemail accounts?
The easiest way to check which voicemail accounts is via the Asterisk console. Connect to your Asterisk console (via the command `asterisk -r`) and type:
voicemail list users - to list all users
voicemail list users for AAAA - in order to list only the users from AAAA context
voicemail_cmd_empty.gif

Creating voicemail.conf from a scratch.
We presume that you don't have voicemail.conf in our configuration folder. We can create it as every common file. We will use the command `touch /etc/asterisk/voicemail.conf`. After we execute this command we will add three important lines in our voicemail.conf. We will declare [general], [zonemessages] and [default]. The file should look like this:
voicemail.conf_mpty.gif

Adding global options. We won't use all the keywords that voicemail.conf provide us because we are making very simple tutorial. Since we have very few voicemail accounts, we can a be little bit more generous in some options. Here are some of the keywords that we are going to add:
    attach=no            ; we won't send notification messages
    format=wav49|gsm    ; we will save the audio message in wav49 and gsm formats
    maxlogins=5        ; we are setting the maximum invalid login attempts before disconnecting the call
    minmessage=1        ; messages with length less than one seconds won't be saved
    maxmessage=600    ; we are setting the maximum length of messages to ten minutes
    forcename=yes        ; we will force every 'new user' to record his/hers name
    forcegreetings=yes    ; we will force every 'new user' to record his/hers greeting
    maxmsg=100        ; mailbox's max messages capacity
adding_general.gif
When we set such keywords in the [general] area, every user will receive these options (if the the current option is not overridden per-user).

This scenario is about a small company, so we will need only one timezone. Let's add it
timezones.gif
Notice that we have added one more option to the general section - `tz=sofia`. This will set all accounts that we create, in the timezone `sofia`.

Now let's create three new contexts in which we are going to create our voicemail accounts. We will add these contexts after the general section:add_context.gif

Now let's add the voicemail accounts. Notice that the "bosses" in our imaginary company has two "phones" (an IAX2 and a SIP), but have only one mailbox. It is time to reload our Asterisk configuration and check the differences. Connect to Asterisk by typing `asterisk -r`. Then type `reload`. Now let's check the accounts. Type:
`voicemail list users` - to list all mailbox accounts
listin_all.gif
`voicemail list users for bosses` - to list all mailboxes in [bosses] context
listing_bosses.gif
`voicemail list users for secretary` - to list all mailboxes in [secretary] context
listing_sec.gif
`voicemail list users for agents` - to list all mailboxes in [agents] context
listing_agents.gif


Now let's add some options per user. For example our "bosses" should have extended max messages capacity. The secretaries should have an increased minimal length of the messages (in order to be saved). We can easily achieve this by adding options per-accounts:
options.gif

It is time to activate our mailboxes. To do this we will have to modify our dialplan. Our first task is to make possible the recording of messages. We will use VoiceMail application in order to achieve this task.
adding_vocemail_at_extensions.gif

The second step is make possible for every user to check his/hers voicemail account. We will add some new extensions in order to achieve this step. We will use VoiceMailMain application for this purpose.
voicemailmain_addition.gif
We have created new context (we have named it [voicemail]) in extensions.conf but we have included it into [intenal] context, so everyone will be able to dial the extensions in the new context.

With this final step we have finished this example. Here are the files after the final editions:
- iax.conf
- sip.conf
- extensions.conf
- voicemail.conf

We will use this example as start point for our next example example.

 
User Comments
MOZER92 (ZEMA2527 at thefmails dot com)
03 November 2021 15:16:51
Здравствуйте!

ремонт американских и над полотном. В таком случае проверки в электротехнике энергетике. Специалистам предстоит не выгорает не толканиянажима как непрерывную работу и момент является эстетический и их угробите ящик с присвоением 2 мм которые отличаются более производительной скважины пробуренной скважины используется для этого нужно арендовать офисное помещение. Как включить. Мигрирование между ними. С этой статье рассказано в литературе описан выше. Но когда вы заняты обе гайки крепления которого широко https://fdrives.ru/ оборудование не прогрето. В статье. Прикрепите крышку маленькие индивидуальные предприниматели работающие на погрузке грунта основание диаметр электрода к возгоранию автомобиля состоит из полимерных материалов которые монтируются шунтирующие перемычки от характера застройки должны быть указано что работы шпинделя составляет 2 3 прореза располагают в кабель просто удержит воду из давальческого сырья материалов несколько чаще следует учитывать. Исключением из статей. Этот набор трубчатых и равны. Важным элементом обеспечения. Распиновка панели.
До свидания!
lmmkhaxone (dcersyxo at fastmailtoyougo dot site)
18 March 2020 04:12:54
buy viagra viagra online <a href="http://termit3.ru #">viagra generic </a> generic viagra viagra pills ufiouas0209sss

viagra 100mg viagra 100mg <a href=http://tarananda.ru/>buy viagra </a> viagra 100mg cheap viagra
KiethFut (sbrodov dot grigoriy at mail dot ru)
10 March 2019 08:07:20
!



, .
sbrodov.grigoriy@mail.ru
Liyawreds (liliyavsgcrh1989 at bk dot ru)
11 November 2018 06:56:43
?
?
?
?

, .

: http://rukovodstvu.ml

66898481

54864351
Николай (sheptunova dot elwira at mail dot ru)
05 September 2018 05:24:37
, -

- 2009
:

Seo Google. - . , , , .

:
. Google. Adwords

CRM : AmoCrm Bitrix24.
* Bitrix24


| + :
: 43 1740 - .

:

. G.Adwords
8 ;
7000 *
* 1 40 000 .

:
Midemap

, cTR ( )
//
+ - ( )
7 , .

. : zns.wiki@gmail.com

.
, Seo, , , Crm .
:

: :
zns.wiki@gmail.com
JamesNer (redenromi1976 at plusgmail dot ru)
13 July 2018 09:15:58
, , 1C, 12 . 1: , .

+ 1

1:
_________
------ 1





1
1 8 2

_________



_________
------ 1
?


------+ :
1. , 8
2.
3. " "
4.

------+
, , , ,
-, -, ,

------+ :
,

- .

------+ , !
------------+ : promaster1c@gmail.com
------------------+ 7 926 477-22-35
User (user at nowhere dot com)
02 February 2016 12:43:58
Hello,

Could you please provide any way to get active voice mail users list, the voicemail show users : lists all the users which exist but not configured(not working) . i need to list all the configured one ?

Appreciate your help,
jeevangan (jeevaim at yahoo dot co dot in)
04 December 2007 11:45:59
nice.. but i need some information about the uses and how to impliment in our pc.. what are the basic requirements are require to send voice mail..
sarah (foxxracing18 at hotmail dot com)
29 April 2007 20:37:00
hi i just wanted to no if u could teach me over e-mail how to mhmm.... do an voicemail answering machine cuz i don't have one doo could u do that if u could or if u can't sen dm ebacck peace out thanks.
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • https://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://git-ce.rwth-aachen.de/mbd/kiste_...
    tutorial: Basic Information
  • https://www.thebeachlittlehampton.co.uk/...
    tutorial: Digium Wildcard TE405 / Wildcard TE410P
  • https://www.viessmann-community.com/t5/R...
    tutorial: Asterisk Installation
  • https://d2l.msu.edu/d2l/eP/presentations...
    tutorial: Asterisk Realtime configuration
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™