<!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> > 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ía<br>
Millenium Phone Center<br>
<br>
David @ULC escribió:
<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>
== Manager 'sendcron' logged off from 127.0.0.1 <br>
-- Executing Playback("Local/91441425477394@default-b9f2,1",
"sip-silence") in new stack <br>
-- Playing 'sip-silence' (language 'en') <br>
-- 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 <br>
-- 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 <br>
-- Executing AMD("Local/91441425477394@default-b9f2,1",
"2000|2000|1000|5000|120|50|4|256") in new stack <br>
-- AMD: Local/91441425477394@default-b9f2,1 0000000000 (null) (Fmt:
64) <br>
-- AMD: initialSilence [2000] greeting [2000] afterGreetingSilence
[1000] totalAnalysisTime [5000] minimumWordLength [120]
betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold
[256] <br>
== Spawn extension (default, 91441425477375, 2) exited non-zero on
'Local/91441425477375@default-1e22,2' <br>
-- 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 <br>
-- 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 <br>
-- AMD: HANGUP <br>
-- 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>
-- 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 <br>
== Spawn extension (default, 91441425477388, 2) exited non-zero on
'Local/91441425477388@default-86e4,2' <br>
-- 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 <br>
-- 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 <br>
-- AMD: HANGUP <br>
-- 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>
-- 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 <br>
vici*CLI> <br>
<br>
</td>
</tr>
</tbody>
</table>
<span class="postbody" style="font-size: 12px; line-height: 18px;"><br>
<br>
My agent are NOT getting calls. <br>
<br>
-- AMD: HANGUP ?? <br>
<br>
Is that an Issue ? <br>
<br>
How to solve it ? <br>
<br>
<br>
I have below entry for 8369 : <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: <br>
exten => 8369,1,Playback(sip-silence) <br>
exten => 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>) <br>
exten => 8369,3,AMD(2000|2000|1000|5000|120|50|4|256) <br>
exten => 8369,4,AGI(VD_amd.agi,${EXTEN}) <br>
exten => 8369,5,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB) <br>
exten => 8369,6,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB) <br>
exten => 8369,7,Hangup <br>
</td>
</tr>
</tbody>
</table>
<span class="postbody" style="font-size: 12px; line-height: 18px;"><br>
<br>
Amd.conf has : <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. <br>
; greeting: Maximum length of a greeting. If exceeded then MACHINE. <br>
; after_greeting_silence: Silence after detecting a greeting. If
exceeded then HUMAN <br>
; total_analysis_time: Maximum time allowed for the algorithm to decide
on a HUMAN or PERSON <br>
; min_word_length: Minimum duration of Voice to considered as a word <br>
; between_words_silence: Minimum duration of silence after a word to
considere the audio what follows as a new word <br>
; maximum_number_of_words: Maximum number of words in the greeting. If
exceeded then MACHINE <br>
<br>
<br>
[AnsweringMachineDetector] <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 </td>
</tr>
</tbody>
</table>
</span></blockquote>
</body>
</html>