<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_AMD">Asterisk 10 Application_AMD</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_AMD-AMD%28%29"></a>AMD()</h1>

<h3><a name="Asterisk10Application_AMD-Synopsis"></a>Synopsis</h3>
<p>Attempt to detect answering machines.</p>

<h3><a name="Asterisk10Application_AMD-Description"></a>Description</h3>
<p>This application attempts to detect answering machines at the beginning of outbound calls. Simply call this application after the call has been answered (outbound only, of course). </p>

<p>When loaded, AMD reads amd.conf and uses the parameters specified as default values. Those default values get overwritten when the calling AMD with parameters. </p>

<p>This application sets the following channel variables: </p>
<ul>
        <li><tt>AMDSTATUS</tt> - This is the status of the answering machine detection
        <ul>
                <li><tt>MACHINE</tt></li>
                <li><tt>HUMAN</tt></li>
                <li><tt>NOTSURE</tt></li>
                <li><tt>HANGUP</tt></li>
        </ul>
        </li>
        <li><tt>AMDCAUSE</tt> - Indicates the cause that led to the conclusion
        <ul>
                <li><tt>TOOLONG</tt> - Total Time.</li>
                <li><tt>INITIALSILENCE</tt> - Silence Duration - Initial Silence.</li>
                <li><tt>HUMAN</tt> - Silence Duration - afterGreetingSilence.</li>
                <li><tt>LONGGREETING</tt> - Voice Duration - Greeting.</li>
                <li><tt>MAXWORDLENGTH</tt> - Word Count - maximum number of words.</li>
        </ul>
        </li>
</ul>


<h3><a name="Asterisk10Application_AMD-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>AMD([initialSilence[,greeting[,afterGreetingSilence[,totalAnalysis Time[,miniumWordLength[,betweenWordSilence[,maximumNumberOfWords[,silenceThreshold[,maximumWordLength]]]]]]]]])</pre>
</div></div>

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

<ul>
        <li><tt>initialSilence</tt> - Is maximum initial silence duration before greeting. If this is exceeded set as MACHINE</li>
        <li><tt>greeting</tt> - is the maximum length of a greeting. If this is exceeded set as MACHINE</li>
        <li><tt>afterGreetingSilence</tt> - Is the silence after detecting a greeting. If this is exceeded set as HUMAN</li>
        <li><tt>totalAnalysis Time</tt> - Is the maximum time allowed for the algorithm to decide HUMAN or MACHINE</li>
        <li><tt>miniumWordLength</tt> - Is the minimum duration of Voice considered to be a word</li>
        <li><tt>betweenWordSilence</tt> - Is the minimum duration of silence after a word to consider the audio that follows to be a new word</li>
        <li><tt>maximumNumberOfWords</tt> - Is the maximum number of words in a greeting If this is exceeded set as MACHINE</li>
        <li><tt>silenceThreshold</tt> - How long do we consider silence</li>
        <li><tt>maximumWordLength</tt> - Is the maximum duration of a word to accept. If exceeded set as MACHINE</li>
</ul>



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

<p><a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_WaitForSilence&amp;linkCreation=true&amp;fromPageId=19005648" class="createlink">Asterisk 10 Application&#95;WaitForSilence</a><br/>
<a href="/wiki/pages/createpage.action?spaceKey=AST&amp;title=Asterisk+10+Application_WaitForNoise&amp;linkCreation=true&amp;fromPageId=19005648" class="createlink">Asterisk 10 Application&#95;WaitForNoise</a></p>


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