<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It looks like your channel has been hungup during the AMD application,
not that the AMD application is hanging up the call. The source is your
friend (<a class="moz-txt-link-freetext" href="http://www.asterisk.org/doxygen/asterisk1.4/app__amd_8c.html">http://www.asterisk.org/doxygen/asterisk1.4/app__amd_8c.html</a>):<br>
<br>
<pre class="fragment">00205       <span class="comment">/* If we fail to read in a frame, that means they hung up */</span>
<a name="l00206"></a>00206       <span class="keywordflow">if</span> (!(f = <a
 class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/channel_8c.html#7ef6737309dc9e8b6c4a7cb4800638b1"
 title="Reads a frame.">ast_read</a>(chan))) {
<a name="l00207"></a>00207          <span class="keywordflow">if</span> (<a
 class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/group__main__options.html#ga294d0efa6a89c1a3d162787cac4fff5">option_verbose</a> &gt; 2)
<a name="l00208"></a>00208             <a class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/logger_8c.html#81d26348827b996085d4cb6be3e2c348"
 title="This works like ast_log, but prints verbose messages to the console depending on...">ast_verbose</a>(<a
 class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/logger_8h.html#24b0f46e22f4ea3226fa082e955dd4ef">VERBOSE_PREFIX_3</a> <span
 class="stringliteral">"AMD: HANGUP\n"</span>);
<a name="l00209"></a>00209          <span class="keywordflow">if</span> (<a
 class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/group__main__options.html#g40f8fb2e731031d99f732f515cec680f">option_debug</a>)
<a name="l00210"></a>00210             <a class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/logger_8c.html#93dd824dff97fe84941d6d71b7a3710e"
 title="send log messages to syslog and/or the console">ast_log</a>(<a
 class="code"
 href="http://www.asterisk.org/doxygen/asterisk1.4/logger_8h.html#6ff63e8955665c4a58b1598f2b07c51a">LOG_DEBUG</a>, <span
 class="stringliteral">"Got hangup\n"</span>);
<a name="l00211"></a>00211          strcpy(amdStatus, <span
 class="stringliteral">"HANGUP"</span>);
<a name="l00212"></a>00212          <span class="keywordflow">break</span>;
<a name="l00213"></a>00213       }
</pre>
So basically check that the channel is not being hungup during
application execution.<br>
<br>
Regards,<br>
<br>
-- <br>
Ing. Miguel Molina<br>
Grupo de Tecnolog&iacute;a<br>
Millenium Phone Center<br>
<br>
David @ULC escribi&oacute;:
<blockquote
 cite="mid:121c62c1002241023j7bce1db6k790e1358c2e27c0e@mail.gmail.com"
 type="cite"><span class="Apple-style-span"
 style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: medium;">
  <table align="center" border="0" cellpadding="3" cellspacing="1"
 width="90%">
    <tbody>
      <tr>
        <td style="font-family: Verdana,Arial,Helvetica,sans-serif;"><span
 class="genmed" style="font-size: 11px; color: rgb(0, 0, 0);"><b>Code:</b></span></td>
      </tr>
      <tr>
        <td class="code"
 style="border: 1px solid rgb(209, 215, 220); font-family: Courier,'Courier New',sans-serif; font-size: 11px; color: rgb(0, 102, 0); background-color: rgb(250, 250, 250);"><br>
        <br>
&nbsp; == Manager 'sendcron' logged off from 127.0.0.1&nbsp;<br>
&nbsp; &nbsp; -- Executing Playback("Local/91441425477394@default-b9f2,1",
"sip-silence") in new stack&nbsp;<br>
&nbsp; &nbsp; -- Playing 'sip-silence' (language 'en')&nbsp;<br>
&nbsp; &nbsp; -- Executing AGI("Local/91441425477394@default-b9f2,1", "agi://<a
 moz-do-not-send="true" href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a>")
in new stack&nbsp;<br>
&nbsp; &nbsp; -- AGI Script agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a>
completed, returning 0&nbsp;<br>
&nbsp; &nbsp; -- Executing AMD("Local/91441425477394@default-b9f2,1",
"2000|2000|1000|5000|120|50|4|256") in new stack&nbsp;<br>
&nbsp; &nbsp; -- AMD: Local/91441425477394@default-b9f2,1 0000000000 (null) (Fmt:
64)&nbsp;<br>
&nbsp; &nbsp; -- AMD: initialSilence [2000] greeting [2000] afterGreetingSilence
[1000] totalAnalysisTime [5000] minimumWordLength [120]
betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold
[256]&nbsp;<br>
&nbsp; == Spawn extension (default, 91441425477375, 2) exited non-zero on
'Local/91441425477375@default-1e22,2'&nbsp;<br>
&nbsp; &nbsp; -- Executing DeadAGI("Local/91441425477375@default-1e22,2", "agi://<a
 moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15</a>")
in new stack&nbsp;<br>
&nbsp; &nbsp; -- AGI Script agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15</a>
completed, returning 0&nbsp;<br>
&nbsp; &nbsp; -- AMD: HANGUP&nbsp;<br>
&nbsp; &nbsp; -- Executing DeadAGI("Local/91441425477375@default-1e22,1", "agi://<a
 moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------</a>")
in new stack<br>
&nbsp; &nbsp; -- AGI Script agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------</a>
completed, returning 0&nbsp;<br>
&nbsp; == Spawn extension (default, 91441425477388, 2) exited non-zero on
'Local/91441425477388@default-86e4,2'&nbsp;<br>
&nbsp; &nbsp; -- Executing DeadAGI("Local/91441425477388@default-86e4,2", "agi://<a
 moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15</a>")
in new stack&nbsp;<br>
&nbsp; &nbsp; -- AGI Script agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15</a>
completed, returning 0&nbsp;<br>
&nbsp; &nbsp; -- AMD: HANGUP&nbsp;<br>
&nbsp; &nbsp; -- Executing DeadAGI("Local/91441425477388@default-86e4,1", "agi://<a
 moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------</a>")
in new stack<br>
&nbsp; &nbsp; -- AGI Script agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------</a>
completed, returning 0&nbsp;<br>
vici*CLI&gt;&nbsp;<br>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
  <span class="postbody" style="font-size: 12px; line-height: 18px;"><br>
  <br>
My agent are NOT getting calls.&nbsp;<br>
  <br>
-- AMD: HANGUP ??&nbsp;<br>
  <br>
Is that an Issue ?&nbsp;<br>
  <br>
How to solve it ?&nbsp;<br>
  <br>
  <br>
I have below entry for 8369 :&nbsp;<br>
  <br>
  </span>
  <table align="center" border="0" cellpadding="3" cellspacing="1"
 width="90%">
    <tbody>
      <tr>
        <td style="font-family: Verdana,Arial,Helvetica,sans-serif;"><span
 class="genmed" style="font-size: 11px; color: rgb(0, 0, 0);"><b>Code:</b></span></td>
      </tr>
      <tr>
        <td class="code"
 style="border: 1px solid rgb(209, 215, 220); font-family: Courier,'Courier New',sans-serif; font-size: 11px; color: rgb(0, 102, 0); background-color: rgb(250, 250, 250);"><br>
; VICIDIAL_auto_dialer transfer script AMD with Load Balanced:&nbsp;<br>
exten =&gt; 8369,1,Playback(sip-silence)&nbsp;<br>
exten =&gt; 8369,2,AGI(agi://<a moz-do-not-send="true"
 href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a>)&nbsp;<br>
exten =&gt; 8369,3,AMD(2000|2000|1000|5000|120|50|4|256)&nbsp;<br>
exten =&gt; 8369,4,AGI(VD_amd.agi,${EXTEN})&nbsp;<br>
exten =&gt; 8369,5,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB)&nbsp;<br>
exten =&gt; 8369,6,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB)&nbsp;<br>
exten =&gt; 8369,7,Hangup&nbsp;<br>
        </td>
      </tr>
    </tbody>
  </table>
  <span class="postbody" style="font-size: 12px; line-height: 18px;"><br>
  <br>
Amd.conf has :&nbsp;<br>
  <br>
  </span>
  <table align="center" border="0" cellpadding="3" cellspacing="1"
 width="90%">
    <tbody>
      <tr>
        <td style="font-family: Verdana,Arial,Helvetica,sans-serif;"><span
 class="genmed" style="font-size: 11px; color: rgb(0, 0, 0);"><b>Code:</b></span></td>
      </tr>
      <tr>
        <td class="code"
 style="border: 1px solid rgb(209, 215, 220); font-family: Courier,'Courier New',sans-serif; font-size: 11px; color: rgb(0, 102, 0); background-color: rgb(250, 250, 250);"><br>
        <br>
; initial_silence: Maximum silence duration before the greeting. If
exceeded then MACHINE.&nbsp;<br>
; greeting: Maximum length of a greeting. If exceeded then MACHINE.&nbsp;<br>
; after_greeting_silence: Silence after detecting a greeting. If
exceeded then HUMAN&nbsp;<br>
; total_analysis_time: Maximum time allowed for the algorithm to decide
on a HUMAN or PERSON&nbsp;<br>
; min_word_length: Minimum duration of Voice to considered as a word&nbsp;<br>
; between_words_silence: Minimum duration of silence after a word to
considere the audio what follows as a new word&nbsp;<br>
; maximum_number_of_words: Maximum number of words in the greeting. If
exceeded then MACHINE&nbsp;<br>
        <br>
        <br>
[AnsweringMachineDetector]&nbsp;<br>
initial_silence&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 3500&nbsp;<br>
greeting&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1500&nbsp;<br>
after_greeting_silence&nbsp; &nbsp; &nbsp;= 300&nbsp;<br>
total_analysis_time&nbsp; &nbsp; &nbsp; &nbsp; = 5000&nbsp;<br>
min_word_length&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 120&nbsp;<br>
between_words_silence&nbsp; &nbsp; &nbsp; = 50&nbsp;<br>
maximum_number_of_words&nbsp; &nbsp; = 5&nbsp;<br>
silence_threshold&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 256&nbsp;</td>
      </tr>
    </tbody>
  </table>
  </span></blockquote>
</body>
</html>