Asterisk cmd VoiceMailMain

Synopsis:

Enter voicemail system

Description:

VoiceMailMain([[[s]mailbox][@context])


Enters the main voicemail system for the checking of voicemail. The mailbox can be passed as the option, which will stop the voicemail system from prompting the user for the mailbox.

If the mailbox is preceeded by 's' then the password check will be skipped. If a context is specified, logins are considered in that context only.

Menu

  • 1 Read voicemail messages
    • 3 Advanced options (with option to reply; introduced in Asterisk CVS Head April 28, 2004 with 'enhanced voicemail')
      • 1 Reply
      • 2 Call back(1)
      • 3 Envelope
      • 4 Outgoing call(1)
      • 5 Send Message (only available if sendvoicemail=yes in voicemail.conf)
    • 4 Play previous message
    • 5 Repeat current message
    • 6 Play next message
    • 7 Delete current message
    • 8 Forward message to another mailbox
      • 1 Use Voicemailnumber (only available if usedirectory=yes in voicemail.conf)
      • 2 Use Voicemail Directory (only available if usedirectory=yes in voicemail.conf)
    • 9 Save message in a folder
      • 0 Save in new Messages
      • 1 Save in old Messages
      • 2 Save in Work Messages
      • 3 Save in Family Messages
      • 4 Save in Friends Messages
    • * Help; during msg playback: Rewind
    • # Exit; during msg playback: Skip forward
  • 2 Change folders
    • 0 Switch to new Messages
    • 1 Switch to old Messages
    • 2 Switch to Work Messages
    • 3 Switch to Family Messages
    • 4 Switch to Friends Messages
  • 3 Advanced Options
    • 5 Send Message (only available if sendvoicemail=yes in voicemail.conf)
      • 1 Use Voicemailnumber (only available if usedirectory=yes in voicemail.conf)
      • 2 Use Voicemail Directory (only available if usedirectory=yes in voicemail.conf)
  • 0 Mailbox options
    • 1 Record your unavailable message
    • 2 Record your busy message
    • 3 Record your name
    • 4 Record your temporary message (new in Asterisk v1.2)
      • 1 Record your temporary message
      • 2 Erase your temporary message (going back to the standard message)
    • 5 Change your password
    • * Return to the main menu
  • * Help
  • # Exit

  • After recording a message (incoming message, busy/unavail greeting, or name)
    • 1 - Accept
    • 2 - Review
    • 3 - Re-record
    • 0 - Reach operator(1) (not available when recording greetings/name)

(1) Prompts for these are only played if these options are enabled in voicemail.conf

If you are using text based configuration (not database) of the voicemail system, the voicemail.conf configuration file needs to be writable by the asterisk server.

While listening to a recorded voicemail message: Press # to fastforward, or * to rewind by skipms increments. Skipms defaults to 3000 ms and is configurable in voicemail.conf. Note that the # and * keys only work when the message is in the process of being played back


Notes

  • Logging In: When calling VoiceMailMain without specifying a context, whether specifying a box number or alllowing the built-in prompt, if there are two boxes with the same number in different contexts, the last one specified in the voicemail.conf file will be used. You will not be able to log into the other boxes unless you specify the context when calling VoiceMailMain.

New in Asterisk 1.2


Description:

  VoiceMailMain([mailbox][@context][|options])


Options:

p - Consider the mailbox parameter as a prefix to the mailbox that
is entered by the caller.
g(#) - Use the specified amount of gain when recording a voicemail
message. The units are whole-number decibels (dB).
s - Skip checking the passcode for the mailbox.
a(#) - Auto play new messages in the given folder

Folders for the autoplay option:

0 - INBOX
1 - Old
2 - Work
3 - Family
4 - Friends
5 - Cust1
6 - Cust2
7 - Cust3
8 - Cust4
9 - Cust5

Announce Name Before Voicemail Playback: Asterisk 1.2 supports 'categories' that can be assigned to voicemail messages before they are left, and playback of a pre-recorded prompt before the message is played back based on the category name. If there is e.g. a (relatively small) number of companies sharing this mailbox, this would be the easiest way to go. Use the ${VM_CATEGORY} channel variable for this.


Modifications

Q: How can I disable dtmf-input 2,3,4 if I only want the menu behind option 1 available ?

A: (June 2010) In the C code, find:

case '2': /* Change folders */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);

then add the lines:

+ cmd = 0; /* Go back to root menu */+ break; /* don't continue */
so it look like this:

case '2': /* Change folders */
cmd = 0; /* Go back to root menu */
break; /* don't continue */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);

add the same lines to case 3 and 4..

See also

Old versions:


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Synopsis:

Enter voicemail system

Description:

VoiceMailMain([[[s]mailbox][@context])


Enters the main voicemail system for the checking of voicemail. The mailbox can be passed as the option, which will stop the voicemail system from prompting the user for the mailbox.

If the mailbox is preceeded by 's' then the password check will be skipped. If a context is specified, logins are considered in that context only.

Menu

  • 1 Read voicemail messages
    • 3 Advanced options (with option to reply; introduced in Asterisk CVS Head April 28, 2004 with 'enhanced voicemail')
      • 1 Reply
      • 2 Call back(1)
      • 3 Envelope
      • 4 Outgoing call(1)
      • 5 Send Message (only available if sendvoicemail=yes in voicemail.conf)
    • 4 Play previous message
    • 5 Repeat current message
    • 6 Play next message
    • 7 Delete current message
    • 8 Forward message to another mailbox
      • 1 Use Voicemailnumber (only available if usedirectory=yes in voicemail.conf)
      • 2 Use Voicemail Directory (only available if usedirectory=yes in voicemail.conf)
    • 9 Save message in a folder
      • 0 Save in new Messages
      • 1 Save in old Messages
      • 2 Save in Work Messages
      • 3 Save in Family Messages
      • 4 Save in Friends Messages
    • * Help; during msg playback: Rewind
    • # Exit; during msg playback: Skip forward
  • 2 Change folders
    • 0 Switch to new Messages
    • 1 Switch to old Messages
    • 2 Switch to Work Messages
    • 3 Switch to Family Messages
    • 4 Switch to Friends Messages
  • 3 Advanced Options
    • 5 Send Message (only available if sendvoicemail=yes in voicemail.conf)
      • 1 Use Voicemailnumber (only available if usedirectory=yes in voicemail.conf)
      • 2 Use Voicemail Directory (only available if usedirectory=yes in voicemail.conf)
  • 0 Mailbox options
    • 1 Record your unavailable message
    • 2 Record your busy message
    • 3 Record your name
    • 4 Record your temporary message (new in Asterisk v1.2)
      • 1 Record your temporary message
      • 2 Erase your temporary message (going back to the standard message)
    • 5 Change your password
    • * Return to the main menu
  • * Help
  • # Exit

  • After recording a message (incoming message, busy/unavail greeting, or name)
    • 1 - Accept
    • 2 - Review
    • 3 - Re-record
    • 0 - Reach operator(1) (not available when recording greetings/name)

(1) Prompts for these are only played if these options are enabled in voicemail.conf

If you are using text based configuration (not database) of the voicemail system, the voicemail.conf configuration file needs to be writable by the asterisk server.

While listening to a recorded voicemail message: Press # to fastforward, or * to rewind by skipms increments. Skipms defaults to 3000 ms and is configurable in voicemail.conf. Note that the # and * keys only work when the message is in the process of being played back


Notes

  • Logging In: When calling VoiceMailMain without specifying a context, whether specifying a box number or alllowing the built-in prompt, if there are two boxes with the same number in different contexts, the last one specified in the voicemail.conf file will be used. You will not be able to log into the other boxes unless you specify the context when calling VoiceMailMain.

New in Asterisk 1.2


Description:

  VoiceMailMain([mailbox][@context][|options])


Options:

p - Consider the mailbox parameter as a prefix to the mailbox that
is entered by the caller.
g(#) - Use the specified amount of gain when recording a voicemail
message. The units are whole-number decibels (dB).
s - Skip checking the passcode for the mailbox.
a(#) - Auto play new messages in the given folder

Folders for the autoplay option:

0 - INBOX
1 - Old
2 - Work
3 - Family
4 - Friends
5 - Cust1
6 - Cust2
7 - Cust3
8 - Cust4
9 - Cust5

Announce Name Before Voicemail Playback: Asterisk 1.2 supports 'categories' that can be assigned to voicemail messages before they are left, and playback of a pre-recorded prompt before the message is played back based on the category name. If there is e.g. a (relatively small) number of companies sharing this mailbox, this would be the easiest way to go. Use the ${VM_CATEGORY} channel variable for this.


Modifications

Q: How can I disable dtmf-input 2,3,4 if I only want the menu behind option 1 available ?

A: (June 2010) In the C code, find:

case '2': /* Change folders */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);

then add the lines:

+ cmd = 0; /* Go back to root menu */+ break; /* don't continue */
so it look like this:

case '2': /* Change folders */
cmd = 0; /* Go back to root menu */
break; /* don't continue */
if (useadsi)
adsi_folders(chan, 0, "Change to folder...");
cmd = get_folder2(chan, "vm-changeto", 0);

add the same lines to case 3 and 4..

See also

Old versions:


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Created by: oej, Last modification: Fri 01 of Jun, 2012 (04:19 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+