diff options
-rwxr-xr-x | apps/app_waitforsilence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_waitforsilence.c b/apps/app_waitforsilence.c index b29286a36..66ce40103 100755 --- a/apps/app_waitforsilence.c +++ b/apps/app_waitforsilence.c @@ -122,7 +122,7 @@ static int waitforsilence_exec(struct ast_channel *chan, void *data) res = ast_answer(chan); /* Answer the channel */ if (!data || ((sscanf(data, "%d|%d", &duration, &iterations) != 2) && - (sscanf(data, "%d", &duration != 1)))) { + (sscanf(data, "%d", &duration) != 1))) { ast_log(LOG_WARNING, "Using default value of 1000ms, 1 iteration\n"); } |