<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2172/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+11+Application_VoiceMailMain">Asterisk 11 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="Asterisk11Application_VoiceMailMain-VoiceMailMain%28%29"></a>VoiceMailMain()</h1>

<h3><a name="Asterisk11Application_VoiceMailMain-Synopsis"></a>Synopsis</h3>

<p>Check Voicemail messages.</p>
<h3><a name="Asterisk11Application_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>
<ul>
        <li>* - Jump to the <tt>a</tt> extension in the current dialplan context.</li>
</ul>


<h3><a name="Asterisk11Application_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="Asterisk11Application_VoiceMailMain-Arguments"></a>Arguments</h5>


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


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


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


<h3><a name="Asterisk11Application_VoiceMailMain-ImportVersion"></a>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</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+11+Application_VoiceMailMain">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_VoiceMailMain?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>