From dc752f515be0e3eed80a4043ae9383dbfbd22bc4 Mon Sep 17 00:00:00 2001
From: Matthew Jordan <mjordan@digium.com>
Date: Sat, 14 Mar 2015 00:24:52 +0000
Subject: [PATCH] apps/app_amd: Document maximum_word_length option; fix
 AMDCAUSE documentation

This patch corrects the documentation for the AMD application. Specifically:
* It documents the maximum_word_length option, which limits the maximum allowed
  length of a single utterance.
* It clarifies the AMDCAUSE values MAXWORDS and MAXWORDLENGTH. MAXWORDLENGTH
  was documented as MAXWORDS, while MAXWORDS was undocumented.

Thanks to the issue reporter, Frank DiGennaro, for pointing out the issues.

ASTERISK-19470 #close
Reported by: Frank DiGennaro
........

Merged revisions 432918 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 432920 from http://svn.asterisk.org/svn/asterisk/branches/13


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@432921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_amd.c                  | 3 +++
 configs/samples/amd.conf.sample | 1 +
 2 files changed, 4 insertions(+)

diff --git a/apps/app_amd.c b/apps/app_amd.c
index b8f4e9b28e..68d100858a 100644
--- a/apps/app_amd.c
+++ b/apps/app_amd.c
@@ -126,6 +126,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 						Voice Duration - Greeting.
 					</value>
 					<value name="MAXWORDLENGTH">
+						Word Length - max length of a single word.
+					</value>
+					<value name="MAXWORDS">
 						Word Count - maximum number of words.
 					</value>	
 				</variable>
diff --git a/configs/samples/amd.conf.sample b/configs/samples/amd.conf.sample
index ce4808a0ca..d7323ecf22 100644
--- a/configs/samples/amd.conf.sample
+++ b/configs/samples/amd.conf.sample
@@ -15,4 +15,5 @@ between_words_silence = 50	; Minimum duration of silence after a word to conside
 				; the audio what follows as a new word
 maximum_number_of_words = 3	; Maximum number of words in the greeting.
 				; If exceeded then MACHINE
+maximum_word_length = 5000      ; Maximum duration of a single Voice utterance allowed.
 silence_threshold = 256
-- 
GitLab