[Asterisk-cvs] asterisk/apps app_voicemail.c,1.98,1.99

anthm at lists.digium.com anthm at lists.digium.com
Wed May 26 11:08:29 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv26983/apps

Modified Files:
	app_voicemail.c 
Log Message:
add ast_control_streamfile api call

Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- app_voicemail.c	24 May 2004 19:24:20 -0000	1.98
+++ app_voicemail.c	26 May 2004 15:22:54 -0000	1.99
@@ -2549,12 +2549,9 @@
 
 static int wait_file(struct ast_channel *chan, struct vm_state *vms, char *file) 
 {
-	int res;
-	if ((res = ast_streamfile(chan, file, chan->language)))
-		ast_log(LOG_WARNING, "Unable to play message %s\n", file);
-	if (!res)
-		res = ast_waitstream_fr(chan, AST_DIGIT_ANY, "#", "*",skipms);
-	return res;
+
+  return ast_control_streamfile(chan,file,"#","*",skipms);
+
 }
 
 static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *vmu, char *origtime, char *filename)




More information about the svn-commits mailing list