login | register
Wed 01 of Aug, 2007 [09:22 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.

Web www.voip-info.org
Shoutbox
  • Aykut, Wed 01 of Aug, 2007 [07:53 UTC]: Hi all, does anybody know about Thomson ST2030 SIP phone. I have upgraded it to latest version (1.56) but "Hold" and "Conf" features are not working after the upgrade ?? Do you know any solution or do you have Ver. 1.52 ?? Where can I find it?
  • Edward J Brown, Tue 31 of Jul, 2007 [23:33 UTC]: Has anybody experienced Choppy voice quality when using a Linksys SPA942 in an Asterisk Conference bridge? It works fine with my polycom and Cisco, but sucks with my Linksys.
  • www.astawerks.com, Fri 27 of Jul, 2007 [18:00 UTC]: does anyone use asterisk on top of clark connect? does it work good?
  • simon, Fri 27 of Jul, 2007 [14:16 UTC]: Hi All, Has anyone here managed to get the Cisco79x1 to successfully fail over to the backup proxy. I have 2 asterisk servers , handsets all register and function, except that backup proxy function doesn't work. Any working example would be very apprecia
  • Matthew Richmond, Thu 26 of Jul, 2007 [03:40 UTC]: using the page() application to page across our building...often the meetme conferences don't disconnect after the caller hangs up. Anyone else having this problem. (using Polycom phones)
  • Matthew Richmond, Wed 25 of Jul, 2007 [02:58 UTC]: thanks Nicholas Blasgen! I haven't worked with AGI before, but there's always a first! Thanks again!
  • Nicholas Blasgen, Tue 24 of Jul, 2007 [19:18 UTC]: Matthew Richmond, AGI will handle all that for you.
  • sam, Mon 23 of Jul, 2007 [16:39 UTC]: need help - certain voicemail extension will stop working and recording voicemail on asterisk - anyone know why and how to fix it? Thanks
  • john haji, Mon 23 of Jul, 2007 [14:55 UTC]: free calls to pakistan
  • bong, Sat 21 of Jul, 2007 [19:09 UTC]: hi good day to all can anyone help me how to configured the nortel sip to the signaling server and how to activate in mobile w/ sip compatible without mcs
Server Stats
  • Execution time: 0.37s
  • Memory usage: 2.19MB
  • Database queries: 29
  • GZIP: Disabled
  • Server load: 3.11

Asterisk cmd AMD

Answering Machine Detect (AMD)


Possible bugs.

Synopsis

Attempts to detect answering machines.

Description

 AMD([|initialSilence][|greeting][|afterGreetingSilence][|totalAnalysisTime][|minimumWordLength][|betweenWordsSilence][|maximumNumberOfWords][|silenceThreshold])

This application attempts to detect answering machines at the beginning of outbound calls.
Simply call this application after the call has been answered (outbound only, of course).
When loaded, AMD reads amd.conf and uses the parameters specified as default values.
Those default values get overwritten when calling AMD with parameters.

- 'initialSilence' is the maximum silence duration before the greeting. If exceeded then MACHINE.
- 'greeting' is the maximum length of a greeting. If exceeded then MACHINE.
- 'afterGreetingSilence' is the silence after detecting a greeting. If exceeded then HUMAN.
- 'totalAnalysisTime' is the maximum time allowed for the algorithm to decide on a HUMAN or MACHINE.
- 'minimumWordLength'is the minimum duration of Voice to considered as a word.
- 'betweenWordsSilence' is the minimum duration of silence after a word to considere the audio what follows as a new word.
- 'maximumNumberOfWords'is the maximum number of words in the greeting. If exceeded then MACHINE.
- 'silenceThreshold' is the silence threshold.

This application sets the following channel variable upon completion:
   AMDSTATUS - This is the status of the answering machine detection.
               Possible values are:
               MACHINE | HUMAN | NOTSURE | HANGUP
   AMDCAUSE - Indicates the cause that led to the conclusion.
              Possible values are:
              TOOLONG-<%d total_time>
              INITIALSILENCE-<%d silenceDuration>-<%d initialSilence>
              HUMAN-<%d silenceDuration>-<%d afterGreetingSilence>
              MAXWORDS-<%d wordsCount>-<%d maximumNumberOfWords>
              LONGGREETING-<%d voiceDuration>-<%d greeting>

Installation

You'll need the source code for your version (I'm able to compile in 1.2.9.1):
  as 'root' user
  cd /usr/src 
  rm -rf asterisk 
  wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.7.1.tar.gz (or whatever your version, e.g. asterisk-1.2.9.1.tar.gz)
  tar -zxvf asterisk-1.2.7.1.tar.gz 
  mv asterisk-1.2.7.1 asterisk

  1. Download to /etc/asterisk amd2.conf or amd.conf
  2. Execute 'mv amd2.conf amd.conf', if necessary
  3. Execute 'dos2unix amd.conf'
  4. Execute 'vi amd.conf' and change [AnsweringMachineDetector] to [amd]
  5. Download to /usr/src/asterisk/apps app_amd2.c or app_amd2.c
  6. Execute 'mv app_amd2.c app_amd.c'
  7. Execute 'dos2unix app_amd.c'
  8. Ensure astxs is executable: 'chmod +x /usr/src/asterisk/contrib/scripts/astxs'
  9. Install and load app_amd.c via '/usr/src/asterisk/contrib/scripts/astxs -install -autoload app_amd.c'
  10. That's it!

To the Playground!


Example 1

Asterisk 1.2
[outbound]
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(message-when-machine)
exten => s,n,Hangup
exten => s,n(humn),WaitForSilence(500)
exten => s,n,Playback(message-when-human)
exten => s,n,Hangup

Asterisk 1.4
[outbound]
exten => s,1,NoCDR
exten => s,n,AMD
exten => s,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
exten => s,n(mach),WaitForSilence(2500)
exten => s,n,Playback(message-when-machine)
exten => s,n,Hangup
exten => s,n(humn),WaitForSilence(500)
exten => s,n,Playback(message-when-human)
exten => s,n,Hangup

See also:

Asterisk auto-dial out
Asterisk cmd MachineDetect (addon)
Asterisk cmd BackGroundDetect

6110 views strong.


Created by Blumagic, Last modification by Shmattie on Thu 03 of May, 2007 [01:01 UTC]

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2007 Arte Marketing, Inc.

Powered by bitweaver