diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-20 18:30:49 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-20 18:30:49 +0000 |
commit | e03764cc6f6810c1af80c7965fb8b58cfc846069 (patch) | |
tree | cc863066313f53d917c6b7e5076af6c8b7433e22 | |
parent | 0f860df4b859676a658cb10268199b4bbd4fbad7 (diff) |
Changing syntax once again slightly and standardizing
config to other asterisk samples , bug note 6530
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10559 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_amd.c | 4 | ||||
-rw-r--r-- | configs/amd.conf.sample | 38 |
2 files changed, 18 insertions, 24 deletions
diff --git a/apps/app_amd.c b/apps/app_amd.c index e32b1ea54..5172cb899 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -60,7 +60,7 @@ static char *descrip = "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 | PERSON | NOTSURE | HANGUP\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" @@ -247,7 +247,7 @@ static void isAnsweringMachine(struct ast_channel *chan, void *data) ast_verbose(VERBOSE_PREFIX_3 "AMD: HUMAN: silenceDuration:%d afterGreetingSilence:%d\n", silenceDuration, afterGreetingSilence ); ast_frfree(f); - strcpy(amdStatus , "PERSON" ); + strcpy(amdStatus , "HUMAN" ); sprintf(amdCause , "HUMAN-%d-%d", silenceDuration, afterGreetingSilence ); break; } diff --git a/configs/amd.conf.sample b/configs/amd.conf.sample index 3263fd527..ce4808a0c 100644 --- a/configs/amd.conf.sample +++ b/configs/amd.conf.sample @@ -1,24 +1,18 @@ -; 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 consider -; the audio what follows as a new word -; maximum_number_of_words: Maximum number of words in the greeting. -; If exceeded then MACHINE - +; +; Answering Machine Detection Configuration +; [general] -initial_silence = 2500 -greeting = 1500 -after_greeting_silence = 300 -total_analysis_time = 5000 -min_word_length = 120 -between_words_silence = 50 -maximum_number_of_words = 2 -silence_threshold = 256 - +initial_silence = 2500 ; Maximum silence duration before the greeting. + ; If exceeded then MACHINE. +greeting = 1500 ; Maximum length of a greeting. If exceeded then MACHINE. +after_greeting_silence = 800 ; Silence after detecting a greeting. + ; If exceeded then HUMAN +total_analysis_time = 5000 ; Maximum time allowed for the algorithm to decide + ; on a HUMAN or MACHINE +min_word_length = 100 ; Minimum duration of Voice to considered as a word +between_words_silence = 50 ; Minimum duration of silence after a word to consider + ; the audio what follows as a new word +maximum_number_of_words = 3 ; Maximum number of words in the greeting. + ; If exceeded then MACHINE +silence_threshold = 256 |