[asterisk-users] setting up AMD
Peter Halliday
hoangelos at gmail.com
Thu Jan 25 16:14:06 MST 2007
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 <astmattf at gmail.com> 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 <hoangelos at gmail.com> 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 <asterisk at fullmoonsoft.com> wrote:
> > > On Wed, 2007-01-24 at 12:20 -0800, Michael Collins wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > ______________________________________________________________________
> > > > From:asterisk-users-bounces at lists.digium.com
> > > > [mailto:asterisk-users-bounces at lists.digium.com] On
> > Behalf Of Peter
> > > > Halliday
> > > > Sent: Wednesday, January 24, 2007 11:56 AM
> > > > To: asterisk-users at 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
> > > > '2223f71d5ccc73cc3f9b32a64fba2286 at sip.broadvoice.com'
> > > > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070125/68e73f36/attachment.htm
More information about the asterisk-users
mailing list