Re: [asterisk-users] setting up AMD
AT the risk of being rude with a follow up of the same information and a top post, change the AMDSTATUS of AMD_PERSON to HUMAN. The example does not work, if you look at the source for AMD you will see that the status returned is: This application sets the following channel variable upon completion: \n AMDSTATUS - This is the status of the answering machine detection.\n Possible values are:\n MACHINE | HUMAN | NOTSURE | HANGUP\n AMDCAUSE - Indicates the cause that led to the conclusion.\n Possible values are:\n TOOLONG-%d total_time\n INITIALSILENCE-%d silenceDuration-%d initialSilence\n HUMAN-%d silenceDuration-%d afterGreetingSilence\n MAXWORDS-%d wordsCount-%d maximumNumberOfWords\n LONGGREETING-%d voiceDuration-%d greeting\n; Try changing the tested value. dave On Thu, 2007-01-25 at 23:25 -0500, Peter Halliday wrote: I already put this in there, but this is the context for the call. I got it right out of voip-info.org's article. This is correct right? [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup I'm using broadvoice for the service not sure that it matters. On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: I tested it over a SIP channel and an IAX channel and it did work, but I have not used it in production that way. I only use Zap channels(T1 PRI) In prodution at the locations that I use AMD at. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: That's the same code as I have. It's identical. Are you using it over a SIP channel? Peter On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: From the VICIDIAL SCRATCH_INSTALL doc: - cd asterisk-1.2.14/apps - wget http://www.eflo.net/files/app_amd2.c - mv app_amd2.c app_amd.c - vi Makefile replace this line(line 32): app_mixmonitor.so app_stack.so with this line: app_mixmonitor.so app_stack.so app_amd.so - wget http://www.eflo.net/files/amd2.conf - mv amd2.conf /etc/asterisk/amd.conf It works with Asterisk 1.2.14 just fine. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2 tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED] ' Jan 24 17:01:45 DEBUG
Re: [asterisk-users] setting up AMD
I downloaded version 1.4.0 compiled and installed it. This is my extensions.conf: [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,NoOp(${AMDSTATUS}) exten = s,n,NoOp(${AMDREASON}) exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup I tried echoing out the values to ensure they were correct. When I tried the log I got this results below, which shows that it does not ever return from AMD function. I pumped the logging up to 6, with no real difference in what is being displayed. If I just wait until the timeout period expired it doesn't have any impact either. I actually have to hang up before AMD returns and when I do hangup it doesn't output anything anyway. Channel SIP/sip.broadvoice.com-08f24a68 was answered. -- Executing [EMAIL PROTECTED]:1] NoCDR(SIP/sip.broadvoice.com-08f24a68, ) in new stack [Jan 26 13:32:34] NOTICE[18188]: cdr.c:424 ast_cdr_free: CDR on channel 'SIP/sip.broadvoice.com-08f24a68' not posted [Jan 26 13:32:34] NOTICE[18188]: cdr.c:426 ast_cdr_free: CDR on channel 'SIP/sip.broadvoice.com-08f24a68' lacks end -- Executing [EMAIL PROTECTED]:2] AMD(SIP/sip.broadvoice.com-08f24a68, ) in new stack -- AMD: SIP/sip.broadvoice.com-08f24a68 55 (null) (Fmt: 4) -- AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] -- AMD: HANGUP [Jan 26 13:33:08] DEBUG[18188]: pbx.c:2383 __ast_pbx_run: Extension s, priority 2 returned normally even though call was hung up [Jan 26 13:33:08] NOTICE[18188]: pbx_spool.c:351 attempt_thread: Call completed to SIP/[EMAIL PROTECTED] ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
Of note, I tried the same call using IAX2 instead of SIP, and it was fine. This may either be 1) a configuration problem or 2) a SIP provider problem. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] setting up AMD
On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Try to replace the AMD_PERSON with HUMAN as depicted above between The AMD_STATUS that works for me is not person but human. dave ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Try to replace the AMD_PERSON with HUMAN as depicted above between The AMD_STATUS that works for me is not person but human. dave ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
From the VICIDIAL SCRATCH_INSTALL doc: - cd asterisk-1.2.14/apps - wget http://www.eflo.net/files/app_amd2.c - mv app_amd2.c app_amd.c - vi Makefile replace this line(line 32): app_mixmonitor.so app_stack.so with this line: app_mixmonitor.so app_stack.so app_amd.so - wget http://www.eflo.net/files/amd2.conf - mv amd2.conf /etc/asterisk/amd.conf It works with Asterisk 1.2.14 just fine. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2 tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Try to replace the AMD_PERSON with HUMAN as depicted above between The AMD_STATUS that works for me is not person but human. dave ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
That's the same code as I have. It's identical. Are you using it over a SIP channel? Peter On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: From the VICIDIAL SCRATCH_INSTALL doc: - cd asterisk-1.2.14/apps - wget http://www.eflo.net/files/app_amd2.c - mv app_amd2.c app_amd.c - vi Makefile replace this line(line 32): app_mixmonitor.so app_stack.so with this line: app_mixmonitor.so app_stack.so app_amd.so - wget http://www.eflo.net/files/amd2.conf - mv amd2.conf /etc/asterisk/amd.conf It works with Asterisk 1.2.14 just fine. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2 tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Try to replace the AMD_PERSON with HUMAN as depicted above between The AMD_STATUS that works for me is not person but human. dave ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http
Re: [asterisk-users] setting up AMD
I tested it over a SIP channel and an IAX channel and it did work, but I have not used it in production that way. I only use Zap channels(T1 PRI) In prodution at the locations that I use AMD at. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: That's the same code as I have. It's identical. Are you using it over a SIP channel? Peter On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: From the VICIDIAL SCRATCH_INSTALL doc: - cd asterisk-1.2.14/apps - wget http://www.eflo.net/files/app_amd2.c - mv app_amd2.c app_amd.c - vi Makefile replace this line(line 32): app_mixmonitor.so app_stack.so with this line: app_mixmonitor.so app_stack.so app_amd.so - wget http://www.eflo.net/files/amd2.conf - mv amd2.conf /etc/asterisk/amd.conf It works with Asterisk 1.2.14 just fine. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2 tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED] ' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Try to replace the AMD_PERSON with HUMAN as depicted above between The AMD_STATUS that works for me is not person but human. dave ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
I already put this in there, but this is the context for the call. I got it right out of voip-info.org's article. This is correct right? [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup I'm using broadvoice for the service not sure that it matters. On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: I tested it over a SIP channel and an IAX channel and it did work, but I have not used it in production that way. I only use Zap channels(T1 PRI) In prodution at the locations that I use AMD at. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: That's the same code as I have. It's identical. Are you using it over a SIP channel? Peter On 1/25/07, Matt Florell [EMAIL PROTECTED] wrote: From the VICIDIAL SCRATCH_INSTALL doc: - cd asterisk-1.2.14/apps - wget http://www.eflo.net/files/app_amd2.c - mv app_amd2.c app_amd.c - vi Makefile replace this line(line 32): app_mixmonitor.so app_stack.so with this line: app_mixmonitor.so app_stack.so app_amd.so - wget http://www.eflo.net/files/amd2.conf - mv amd2.conf /etc/asterisk/amd.conf It works with Asterisk 1.2.14 just fine. MATT--- On 1/25/07, Peter Halliday [EMAIL PROTECTED] wrote: Where can I get the latest copy of this file. I thought google found ithere, but it doesn't compile correctly on 1.2.14. And the copy on voip-info.org that I found initially appears to be old. It's not in the 1.2 tree. On 1/25/07, Asterisk [EMAIL PROTECTED] wrote: On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote: __ From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED] ' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) * exten = s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach) * exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC
[asterisk-users] setting up AMD
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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call ' [EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] setting up AMD
_ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] setting up AMD
now I have amd.conf set to this: initial_silence = 3700 greeting = 2500 after_greeting_silence = 1200 total_analysis_time = 6000 min_word_length = 100 between_words_silence = 50 maximum_number_of_words = 4 silence_threshold = 860 The resulting log is this: Jan 24 18:53:04 DEBUG[31555] chan_sip.c: build_route: Contact hop: sip:[EMAIL PROTECTED] Jan 24 18:53:04 VERBOSE[31567] logger.c: -- AMD: SIP/sip.broadvoice.com-087743a0 6079362172 (null) (Fmt: 4) Jan 24 18:53:04 VERBOSE[31567] logger.c: -- AMD: initialSilence [3700] greeting [2500] afterGreetingSilence [1200] totalAnalysisTime [6000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold [860] Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Scheduled a registration timeout for sip.broadvoice.com id #19 Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Stopping retransmission on ' [EMAIL PROTECTED]' of Request 104: Match Found Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Registration successful Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Cancelling timeout 19 Jan 24 18:53:28 DEBUG[31555] chan_sip.c: Auto destroying call ' [EMAIL PROTECTED]' Jan 24 18:53:32 DEBUG[31555] chan_sip.c: Stopping retransmission on ' [EMAIL PROTECTED]' of Request 102: Match Found Jan 24 18:53:36 VERBOSE[31567] logger.c: -- AMD: HANGUP Jan 24 18:53:36 DEBUG[31567] app_amd.c: Got hangup Jan 24 18:53:36 DEBUG[31567] pbx.c: Extension s, priority 2 returned normally even though call was hung up Jan 24 18:53:36 DEBUG[31567] chan_sip.c: update_call_counter(6079362172) - decrement call limit counter On 1/24/07, Michael Collins [EMAIL PROTECTED] wrote: -- *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Peter Halliday *Sent:* Wednesday, January 24, 2007 11:56 AM *To:* asterisk-users@lists.digium.com *Subject:* [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call ' [EMAIL PROTECTED]' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [asterisk-users] setting up AMD
Hmm... not too sure what's up with this one. I've only used AMD with Zap channels, so I don't know if there are any hidden gotchas with using SIP. Has anyone else used app_amd with SIP calls? -MC _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 1:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] setting up AMD now I have amd.conf set to this: initial_silence = 3700 greeting = 2500 after_greeting_silence = 1200 total_analysis_time = 6000 min_word_length = 100 between_words_silence = 50 maximum_number_of_words = 4 silence_threshold = 860 The resulting log is this: Jan 24 18:53:04 DEBUG[31555] chan_sip.c: build_route: Contact hop: sip:[EMAIL PROTECTED] Jan 24 18:53:04 VERBOSE[31567] logger.c: -- AMD: SIP/sip.broadvoice.com-087743a0 6079362172 (null) (Fmt: 4) Jan 24 18:53:04 VERBOSE[31567] logger.c: -- AMD: initialSilence [3700] greeting [2500] afterGreetingSilence [1200] totalAnalysisTime [6000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [4] silenceThreshold [860] Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Scheduled a registration timeout for sip.broadvoice.com id #19 Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Stopping retransmission on ' [EMAIL PROTECTED]' of Request 104: Match Found Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Registration successful Jan 24 18:53:20 DEBUG[31555] chan_sip.c: Cancelling timeout 19 Jan 24 18:53:28 DEBUG[31555] chan_sip.c: Auto destroying call '[EMAIL PROTECTED] ' Jan 24 18:53:32 DEBUG[31555] chan_sip.c: Stopping retransmission on '[EMAIL PROTECTED]' of Request 102: Match Found Jan 24 18:53:36 VERBOSE[31567] logger.c: -- AMD: HANGUP Jan 24 18:53:36 DEBUG[31567] app_amd.c: Got hangup Jan 24 18:53:36 DEBUG[31567] pbx.c: Extension s, priority 2 returned normally even though call was hung up Jan 24 18:53:36 DEBUG[31567] chan_sip.c: update_call_counter(6079362172) - decrement call limit counter On 1/24/07, Michael Collins mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Halliday Sent: Wednesday, January 24, 2007 11:56 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] setting up AMD 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: Jan 24 17:01:37 VERBOSE[31455] logger.c: -- AMD: SIP/sip.broadvoice.com-098c4aa8 6079362172 (null) (Fmt: 4) 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] Jan 24 17:01:44 DEBUG[31437] chan_sip.c: Auto destroying call '[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:45 DEBUG[31447] manager.c: Manager received command 'Command' Jan 24 17:01:56 VERBOSE[31455] logger.c: -- AMD: HANGUP Jan 24 17:01:56 DEBUG[31455] app_amd.c: Got hangup The amd.conf: [amd] 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 In extensions.conf [outboundmsg1] exten = s,1,NoCDR exten = s,n,AMD exten = s,n,GotoIf($[${AMDSTATUS}=AMD_PERSON]?humn:mach) exten = s,n(mach),WaitForSilence(2500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup exten = s,n(humn),WaitForSilence(500) exten = s,n,Playback(outboundmsgs/msg1) exten = s,n,Hangup Peter, 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. Let us know what happens when you try to modify the initial silence value. -MC ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth