<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&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_VoiceMail">Asterisk 11 Application_VoiceMail</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_VoiceMail-VoiceMail%28%29"></a>VoiceMail()</h1>
<h3><a name="Asterisk11Application_VoiceMail-Synopsis"></a>Synopsis</h3>
<p>Leave a Voicemail message.</p>
<h3><a name="Asterisk11Application_VoiceMail-Description"></a>Description</h3>
<p>This application allows the calling party to leave a message for the specified list of mailboxes. When multiple mailboxes are specified, the greeting will be taken from the first mailbox specified. Dialplan execution will stop if the specified mailbox does not exist.</p>
<p>The Voicemail application will exit if any of the following DTMF digits are received:</p>
<ul>
        <li>0 - Jump to the <tt>o</tt> extension in the current dialplan context.</li>
        <li>* - Jump to the <tt>a</tt> extension in the current dialplan context.</li>
</ul>
<p>This application will set the following channel variable upon completion:</p>
<ul>
        <li>VMSTATUS - This indicates the status of the execution of the VoiceMail application.
        <ul>
                <li>SUCCESS</li>
                <li>USEREXIT</li>
                <li>FAILED</li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk11Application_VoiceMail-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>VoiceMail(mailbox1&mailbox2[&...],options)</pre>
</div></div>
<h5><a name="Asterisk11Application_VoiceMail-Arguments"></a>Arguments</h5>
<ul>
        <li>mailboxs
        <ul>
                <li>mailbox1
                <ul>
                        <li>mailbox</li>
                        <li>context</li>
                </ul>
                </li>
                <li>mailbox2
                <ul>
                        <li>mailbox</li>
                        <li>context</li>
                </ul>
                </li>
        </ul>
        </li>
        <li>options
        <ul>
                <li>b - Play the <tt>busy</tt> greeting to the calling party.</li>
                <li>d - Accept digits for a new extension in context <em>c</em>, if played during the greeting. Context defaults to the current context.
                <ul>
                        <li>c</li>
                </ul>
                </li>
                <li>g - Use the specified amount of gain when recording the voicemail message. The units are whole-number decibels (dB). Only works on supported technologies, which is DAHDI only.
                <ul>
                        <li>#</li>
                </ul>
                </li>
                <li>s - Skip the playback of instructions for leaving a message to the calling party.</li>
                <li>u - Play the <tt>unavailable</tt> greeting.</li>
                <li>U - Mark message as <tt>URGENT</tt>.</li>
                <li>P - Mark message as <tt>PRIORITY</tt>.</li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk11Application_VoiceMail-SeeAlso"></a>See Also</h3>
<ul>
        <li><a href="/wiki/pages/createpage.action?spaceKey=AST&title=Asterisk+11+Application_VoiceMailMain&linkCreation=true&fromPageId=20187131" class="createlink">Asterisk 11 Application_VoiceMailMain</a></li>
</ul>
<h3><a name="Asterisk11Application_VoiceMail-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_VoiceMail">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_VoiceMail?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>