aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_authenticate.c
diff options
context:
space:
mode:
authormatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-02-18 18:15:30 +0000
committermatteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b>2003-02-18 18:15:30 +0000
commit28be2d6a7cb7f8915b0f346a9a2c02dd2fc5bf1f (patch)
tree0de34ae75587bde85880b54639d681ab4e4b986a /apps/app_authenticate.c
parent08261a60e010fae1f1ecb545a98fccbde00b59b6 (diff)
mar feb 18 19:15:15 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@618 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_authenticate.c')
-rwxr-xr-xapps/app_authenticate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c
index 69d244351..589ef06ba 100755
--- a/apps/app_authenticate.c
+++ b/apps/app_authenticate.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
-
+#include <stdio.h>
#include <pthread.h>
@@ -86,7 +86,6 @@ static int auth_exec(struct ast_channel *chan, void *data)
res = 0;
if (password[0] == '/') {
/* Compare against a file */
- char tmp[80];
FILE *f;
f = fopen(password, "r");
if (f) {
@@ -114,6 +113,9 @@ static int auth_exec(struct ast_channel *chan, void *data)
if ((retries < 3) && !res) {
if (strchr(opts, 'a'))
ast_cdr_setaccount(chan, passwd);
+ res = ast_streamfile(chan, "auth-thankyou", chan->language);
+ if (!res)
+ res = ast_waitstream(chan, "");
} else {
if (!res)
res = ast_streamfile(chan, "vm-goodbye", chan->language);