summaryrefslogtreecommitdiff
path: root/apps/app_amd.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_amd.c')
-rw-r--r--apps/app_amd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/app_amd.c b/apps/app_amd.c
index 9a2e5f31f..273ca3770 100644
--- a/apps/app_amd.c
+++ b/apps/app_amd.c
@@ -32,7 +32,7 @@
* \addtogroup configuration_file Configuration Files
*/
-/*!
+/*!
* \page amd.conf amd.conf
* \verbinclude amd.conf.sample
*/
@@ -316,7 +316,7 @@ static void isAnsweringMachine(struct ast_channel *chan, const char *data)
if (dspsilence > 0) {
silenceDuration = dspsilence;
-
+
if (silenceDuration >= betweenWordsSilence) {
if (currentState != STATE_IN_SILENCE ) {
ast_verb(3, "AMD: Channel [%s]. Changed state to STATE_IN_SILENCE\n", ast_channel_name(chan));
@@ -338,7 +338,7 @@ static void isAnsweringMachine(struct ast_channel *chan, const char *data)
res = 1;
break;
}
-
+
if (silenceDuration >= afterGreetingSilence && inGreeting == 1) {
ast_verb(3, "AMD: Channel [%s]. HUMAN: silenceDuration:%d afterGreetingSilence:%d\n",
ast_channel_name(chan), silenceDuration, afterGreetingSilence);
@@ -348,7 +348,7 @@ static void isAnsweringMachine(struct ast_channel *chan, const char *data)
res = 1;
break;
}
-
+
} else {
consecutiveVoiceDuration += framelength;
voiceDuration += framelength;
@@ -397,12 +397,12 @@ static void isAnsweringMachine(struct ast_channel *chan, const char *data)
inInitialSilence = 0;
inGreeting = 1;
}
-
+
}
}
ast_frfree(f);
}
-
+
if (!res) {
/* It took too long to get a frame back. Giving up. */
ast_verb(3, "AMD: Channel [%s]. Too long...\n", ast_channel_name(chan));
@@ -507,8 +507,8 @@ static int unload_module(void)
* Module loading including tests for configuration or dependencies.
* This function can return AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_DECLINE,
* or AST_MODULE_LOAD_SUCCESS. If a dependency or environment variable fails
- * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
- * configuration file or other non-critical problem return
+ * tests return AST_MODULE_LOAD_FAILURE. If the module can not load the
+ * configuration file or other non-critical problem return
* AST_MODULE_LOAD_DECLINE. On success return AST_MODULE_LOAD_SUCCESS.
*/
static int load_module(void)