<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+Function_MINIVMCOUNTER">Asterisk 10 Function_MINIVMCOUNTER</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="Asterisk10Function_MINIVMCOUNTER-MINIVMCOUNTER%28%29"></a>MINIVMCOUNTER()</h1>

<h3><a name="Asterisk10Function_MINIVMCOUNTER-Synopsis"></a>Synopsis</h3>
<p>Reads or sets counters for MiniVoicemail message.</p>

<h3><a name="Asterisk10Function_MINIVMCOUNTER-Description"></a>Description</h3>
<p>The operation is atomic and the counter is locked while changing the value. The counters are stored as text files in the minivm account directories. It might be better to use realtime functions if you are using a database to operate your Asterisk.</p>

<h3><a name="Asterisk10Function_MINIVMCOUNTER-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>MINIVMCOUNTER(account,name[,operand])</pre>
</div></div>

<h5><a name="Asterisk10Function_MINIVMCOUNTER-Arguments"></a>Arguments</h5>
<ul>
        <li><tt>account</tt> - If account is given and it exists, the counter is specific for the account. If account is a domain and the domain directory exists, counters are specific for a domain.</li>
        <li><tt>name</tt> - The name of the counter is a string, up to 10 characters.</li>
        <li><tt>operand</tt> - The counters never goes below zero. Valid operands for changing the value of a counter when assigning a value are:
        <ul>
                <li><tt>i</tt> - Increment by value.</li>
                <li><tt>d</tt> - Decrement by value.</li>
                <li><tt>s</tt> - Set to value.</li>
        </ul>
        </li>
</ul>



<h3><a name="Asterisk10Function_MINIVMCOUNTER-SeeAlso"></a>See Also</h3>
<p><a href="/wiki/display/AST/Asterisk+10+Application_MinivmRecord" title="Asterisk 10 Application_MinivmRecord">Asterisk 10 Application&#95;MinivmRecord</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_MinivmGreet" title="Asterisk 10 Application_MinivmGreet">Asterisk 10 Application&#95;MinivmGreet</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_MinivmNotify" title="Asterisk 10 Application_MinivmNotify">Asterisk 10 Application&#95;MinivmNotify</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_MinivmDelete" title="Asterisk 10 Application_MinivmDelete">Asterisk 10 Application&#95;MinivmDelete</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_MinivmAccMess" title="Asterisk 10 Application_MinivmAccMess">Asterisk 10 Application&#95;MinivmAccMess</a><br/>
<a href="/wiki/display/AST/Asterisk+10+Application_MinivmMWI" title="Asterisk 10 Application_MinivmMWI">Asterisk 10 Application&#95;MinivmMWI</a><br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Function_MINIVMACCOUNT&amp;linkCreation=true&amp;fromPageId=19005721" class="createlink">Asterisk 10 Function&#95;MINIVMACCOUNT</a></p>


<h3><a name="Asterisk10Function_MINIVMCOUNTER-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+Function_MINIVMCOUNTER">View Online</a>
              |
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Function_MINIVMCOUNTER?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>