<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I do see that AMD.conf offers more
parameters, but my initial testing has had vastly varying results. (I meant &#8220;AMD&#8221;
in the subject line&#8230; :/)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks again.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> John Regal
[mailto:jregal@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, June 23, 2009 12:03
PM<br>
<b><span style='font-weight:bold'>To:</span></b> 'Asterisk Users Mailing List -
Non-Commercial Discussion'<br>
<b><span style='font-weight:bold'>Subject:</span></b> ADM v. homemade code</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi, <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I am attempting to implement Answering Machine Detect and
have also played with using BackgroundDetect instead. Does anyone recommend one
over the other? Here is the code I am using for the BackgroundDetect method
(from voip-info.org).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face="Courier New"><span lang=EN
style='font-size:9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;[detect] </span></font><font
size=1 face=Verdana><span lang=EN style='font-size:9.0pt;font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,1,Set(MACHINE=0)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,2,Answer
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,3,BackgroundDetect(silence/5,&nbsp;1000,&nbsp;50)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,4,Noop(answering&nbsp;machine&nbsp;detected)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,5,Set(MACHINE=1)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,6,BackgroundDetect(silence/30,&nbsp;1000,&nbsp;50,&nbsp;30050)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,7,Noop(too&nbsp;long&nbsp;of&nbsp;a&nbsp;message)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;s,8,Hangup
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
<br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;talk,1,GotoIf($[${MACHINE}=1]?2:3)
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;talk,2,Goto(detect-machine,s,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;this&nbsp;is&nbsp;a&nbsp;machine
</span></font><font size=1 face=Verdana><span lang=EN style='font-size:9.0pt;
font-family:Verdana'><br>
</span></font><font size=1 face="Courier New"><span lang=EN style='font-size:
9.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;exten&nbsp;=&gt;&nbsp;talk,3,Goto(detect-human,s,1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;this&nbsp;is&nbsp;a&nbsp;human</span></font><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

</div>

</body>

</html>