<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;}
/* 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:blue;
        text-decoration:underline;}
span.EmailStyle17
        {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=blue>
<div class=Section1>
<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>
<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 style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<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'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Peter Halliday<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, January 24, 2007
11:56 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] setting
up AMD</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 style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I'm trying get this
working. I've looked through the list, and can't see how to get AMD to
print out more. I have it call and say Hello like I normally would.
I've tried to say more and less doesn't seem to matter. After I hangup it
does recognize hangup. Here's logging during an attempt where I make
outbound call and answer, but then hangup after 1-2 seconds: <br>
<br>
Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD:
SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4)<br>
Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD:
initialSilence [8000] greeting [1500] afterGreetingSilence [300]
totalAnalysisTime [5000] minimumWordLength [120] betweenWordsSilence [50]
maximumNumberOfWords [5] silenceThreshold [256] <br>
Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '<a
href="mailto:2223f71d5ccc73cc3f9b32a64fba2286@sip.broadvoice.com">2223f71d5ccc73cc3f9b32a64fba2286@sip.broadvoice.com</a>'<br>
Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command'<br>
Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command'<br>
Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' <br>
Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP<br>
Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup<br>
<br>
The amd.conf:<br>
[amd]<br>
initial_silence
= 3500<br>
greeting
= 1500 <br>
after_greeting_silence = 300<br>
total_analysis_time = 5000<br>
min_word_length
= 120<br>
between_words_silence = 50<br>
maximum_number_of_words = 5<br>
silence_threshold = 256<br>
<br>
In extensions.conf<br>
[outboundmsg1]<br>
exten => s,1,NoCDR<br>
exten => s,n,AMD<br>
exten => s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach)<br>
exten => s,n(mach),WaitForSilence(2500)<br>
exten => s,n,Playback(outboundmsgs/msg1) <br>
exten => s,n,Hangup<br>
exten => s,n(humn),WaitForSilence(500)<br>
exten => s,n,Playback(outboundmsgs/msg1)<br>
exten => s,n,Hangup<br>
<br>
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'>Peter,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'>It looks like
your initial silence setting might be having trouble. The amd.conf file has a
value of 3500 but the log file is showing 8000. Try changing the amd.conf to
something like 3000 and issue a “reload” at the CLI. Make another
test call and see if the trace still shows 8000 for the initial silence. I
think having an initial silence value that is longer than the total analysis
time might be causing the undesired behavior.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'>Let us know what
happens when you try to modify the initial silence value. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:navy'>-MC<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>