[asterisk-users] AMD: HANGUP

Miguel Molina mmolina at millenium.com.co
Wed Feb 24 13:00:18 CST 2010


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 (http://www.asterisk.org/doxygen/asterisk1.4/app__amd_8c.html):

00205       /* If we fail to read in a frame, that means they hung up */
00206       if (!(f = ast_read <http://www.asterisk.org/doxygen/asterisk1.4/channel_8c.html#7ef6737309dc9e8b6c4a7cb4800638b1>(chan))) {
00207          if (option_verbose <http://www.asterisk.org/doxygen/asterisk1.4/group__main__options.html#ga294d0efa6a89c1a3d162787cac4fff5> > 2)
00208             ast_verbose <http://www.asterisk.org/doxygen/asterisk1.4/logger_8c.html#81d26348827b996085d4cb6be3e2c348>(VERBOSE_PREFIX_3 <http://www.asterisk.org/doxygen/asterisk1.4/logger_8h.html#24b0f46e22f4ea3226fa082e955dd4ef> "AMD: HANGUP\n");
00209          if (option_debug <http://www.asterisk.org/doxygen/asterisk1.4/group__main__options.html#g40f8fb2e731031d99f732f515cec680f>)
00210             ast_log <http://www.asterisk.org/doxygen/asterisk1.4/logger_8c.html#93dd824dff97fe84941d6d71b7a3710e>(LOG_DEBUG <http://www.asterisk.org/doxygen/asterisk1.4/logger_8h.html#6ff63e8955665c4a58b1598f2b07c51a>, "Got hangup\n");
00211          strcpy(amdStatus, "HANGUP");
00212          break;
00213       }

So basically check that the channel is not being hungup during 
application execution.

Regards,

-- 
Ing. Miguel Molina
Grupo de Tecnología
Millenium Phone Center

David @ULC escribió:
> *Code:*
>
>
>   == Manager 'sendcron' logged off from 127.0.0.1 
>     -- Executing Playback("Local/91441425477394 at default-b9f2,1", 
> "sip-silence") in new stack 
>     -- Playing 'sip-silence' (language 'en') 
>     -- Executing AGI("Local/91441425477394 at default-b9f2,1", 
> "agi://127.0.0.1:4577/call_log <http://127.0.0.1:4577/call_log>") in 
> new stack 
>     -- AGI Script agi://127.0.0.1:4577/call_log 
> <http://127.0.0.1:4577/call_log> completed, returning 0 
>     -- Executing AMD("Local/91441425477394 at default-b9f2,1", 
> "2000|2000|1000|5000|120|50|4|256") in new stack 
>     -- AMD: Local/91441425477394 at default-b9f2,1 0000000000 (null) 
> (Fmt: 64) 
>     -- AMD: initialSilence [2000] greeting [2000] afterGreetingSilence 
> [1000] totalAnalysisTime [5000] minimumWordLength [120] 
> betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold [256] 
>   == Spawn extension (default, 91441425477375, 2) exited non-zero on 
> 'Local/91441425477375 at default-1e22,2' 
>     -- Executing DeadAGI("Local/91441425477375 at default-1e22,2", 
> "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15>") 
> in new stack 
>     -- AGI Script 
> agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----35-----15> 
> completed, returning 0 
>     -- AMD: HANGUP 
>     -- Executing DeadAGI("Local/91441425477375 at default-1e22,1", 
> "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------->") 
> in new stack
>     -- AGI Script 
> agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------> 
> completed, returning 0 
>   == Spawn extension (default, 91441425477388, 2) exited non-zero on 
> 'Local/91441425477388 at default-86e4,2' 
>     -- Executing DeadAGI("Local/91441425477388 at default-86e4,2", 
> "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15>") 
> in new stack 
>     -- AGI Script 
> agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----41-----15> 
> completed, returning 0 
>     -- AMD: HANGUP 
>     -- Executing DeadAGI("Local/91441425477388 at default-86e4,1", 
> "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------->") 
> in new stack
>     -- AGI Script 
> agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- 
> <http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------> 
> completed, returning 0 
> vici*CLI> 
>
>
>
> My agent are NOT getting calls. 
>
> -- AMD: HANGUP ?? 
>
> Is that an Issue ? 
>
> How to solve it ? 
>
>
> I have below entry for 8369 : 
>
> *Code:*
>
> ; VICIDIAL_auto_dialer transfer script AMD with Load Balanced: 
> exten => 8369,1,Playback(sip-silence) 
> exten => 8369,2,AGI(agi://127.0.0.1:4577/call_log 
> <http://127.0.0.1:4577/call_log>) 
> exten => 8369,3,AMD(2000|2000|1000|5000|120|50|4|256) 
> exten => 8369,4,AGI(VD_amd.agi,${EXTEN}) 
> exten => 8369,5,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB) 
> exten => 8369,6,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB) 
> exten => 8369,7,Hangup 
>
>
>
> Amd.conf has : 
>
> *Code:*
>
>
> ; initial_silence: Maximum silence duration before the greeting. If 
> exceeded then MACHINE. 
> ; greeting: Maximum length of a greeting. If exceeded then MACHINE. 
> ; after_greeting_silence: Silence after detecting a greeting. If 
> exceeded then HUMAN 
> ; total_analysis_time: Maximum time allowed for the algorithm to 
> decide on a HUMAN or PERSON 
> ; min_word_length: Minimum duration of Voice to considered as a word 
> ; between_words_silence: Minimum duration of silence after a word to 
> considere the audio what follows as a new word 
> ; maximum_number_of_words: Maximum number of words in the greeting. If 
> exceeded then MACHINE 
>
>
> [AnsweringMachineDetector] 
> initial_silence            = 3500 
> greeting                   = 1500 
> after_greeting_silence     = 300 
> total_analysis_time        = 5000 
> min_word_length            = 120 
> between_words_silence      = 50 
> maximum_number_of_words    = 5 
> silence_threshold          = 256 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100224/76d359c9/attachment.htm 


More information about the asterisk-users mailing list