mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	mar feb 18 19:15:15 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user