<html 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)">
<style>
<!--
 /* Font Definitions */
 @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-compose;
        font-family:Arial;
        color:windowtext;}
@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 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>