<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2171/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_VoiceMailMain">Asterisk 10 Application_VoiceMailMain</a></h2>
    <h4>Page  <b>added</b> by             <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="Asterisk10Application_VoiceMailMain-VoiceMailMain%28%29"></a>VoiceMailMain()</h1>

<h3><a name="Asterisk10Application_VoiceMailMain-Synopsis"></a>Synopsis</h3>
<p>Check Voicemail messages.</p>

<h3><a name="Asterisk10Application_VoiceMailMain-Description"></a>Description</h3>
<p>This application allows the calling party to check voicemail messages. A specific <em>mailbox</em>, and optional corresponding <em>context</em>, may be specified. If a <em>mailbox</em> is not provided, the calling party will be prompted to enter one. If a <em>context</em> is not specified, the <tt>default</tt> context will be used. </p>

<p>The VoiceMailMain application will exit if the following DTMF digit is entered as Mailbox or Password, and the extension exists: </p>

<p>Jump to the <tt>a</tt> extension in the current dialplan context.</p>

<h3><a name="Asterisk10Application_VoiceMailMain-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>VoiceMailMain([mailbox][@context][,options])</pre>
</div></div>

<h5><a name="Asterisk10Application_VoiceMailMain-Arguments"></a>Arguments</h5>

<ul>
        <li><tt>mailbox</tt>
        <ul>
                <li><tt>mailbox</tt></li>
                <li><tt>context</tt></li>
        </ul>
        </li>
        <li><tt>options</tt>
        <ul>
                <li><tt>p</tt> - Consider the <em>mailbox</em> parameter as a prefix to the mailbox that is entered by the caller.</li>
                <li><tt>g</tt> - Use the specified amount of gain when recording a voicemail message. The units are whole-number decibels (dB).
                <ul>
                        <li><tt>#</tt></li>
                </ul>
                </li>
                <li><tt>s</tt> - Skip checking the passcode for the mailbox.</li>
                <li><tt>a</tt> - Skip folder prompt and go directly to <em>folder</em> specified. Defaults to <tt>INBOX</tt> (or <tt>0</tt> ).
                <ul>
                        <li><tt>folder</tt></li>
                        <li><tt>0</tt> - INBOX</li>
                        <li><tt>1</tt> - Old</li>
                        <li><tt>2</tt> - Work</li>
                        <li><tt>3</tt> - Family</li>
                        <li><tt>4</tt> - Friends</li>
                        <li><tt>5</tt> - Cust1</li>
                        <li><tt>6</tt> - Cust2</li>
                        <li><tt>7</tt> - Cust3</li>
                        <li><tt>8</tt> - Cust4</li>
                        <li><tt>9</tt> - Cust5</li>
                </ul>
                </li>
                <li><tt>0</tt> - INBOX</li>
                <li><tt>1</tt> - Old</li>
                <li><tt>2</tt> - Work</li>
                <li><tt>3</tt> - Family</li>
                <li><tt>4</tt> - Friends</li>
                <li><tt>5</tt> - Cust1</li>
                <li><tt>6</tt> - Cust2</li>
                <li><tt>7</tt> - Cust3</li>
                <li><tt>8</tt> - Cust4</li>
                <li><tt>9</tt> - Cust5</li>
        </ul>
        </li>
</ul>



<h3><a name="Asterisk10Application_VoiceMailMain-SeeAlso"></a>See Also</h3>

<p><a href="/wiki/display/AST/Asterisk+10+Application_VoiceMail" title="Asterisk 10 Application_VoiceMail">Asterisk 10 Application&#95;VoiceMail</a></p>


<h3><a name="Asterisk10Application_VoiceMailMain-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk version SVN-branch-10-r340810.</p>
    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_VoiceMailMain">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_VoiceMailMain?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>