<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 “AMD”
in the subject line… :/)<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> </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> </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"'> [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"'> exten => 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"'> exten => 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"'> exten => s,3,BackgroundDetect(silence/5, 1000, 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"'> exten => s,4,Noop(answering machine 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"'> exten => 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"'> exten => s,6,BackgroundDetect(silence/30, 1000, 50, 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"'> exten => s,7,Noop(too long of a 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"'> exten => 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"'> exten => 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"'> exten => talk,2,Goto(detect-machine,s,1) ; this is a 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"'> exten => talk,3,Goto(detect-human,s,1) ; this is a 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>