[Asterisk-cvs] asterisk/apps app_read.c,1.18,1.19
russell at lists.digium.com
russell at lists.digium.com
Wed Jun 1 13:20:40 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv27639/apps
Modified Files:
app_read.c
Log Message:
fix timeout option
Index: app_read.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_read.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- app_read.c 29 Apr 2005 17:00:33 -0000 1.18
+++ app_read.c 1 Jun 2005 17:23:50 -0000 1.19
@@ -86,6 +86,7 @@
maxdigitstr = args[x++];
options = args[x++];
loops = args[x++];
+ timeout = args[x++];
if (options) {
if (!strcasecmp(options, "skip"))
@@ -108,8 +109,10 @@
if(timeout) {
to = atoi(timeout);
- if(to <= 0)
+ if (to <= 0)
to = 0;
+ else
+ to *= 1000;
}
if (!(filename) || ast_strlen_zero(filename))
@@ -140,7 +143,7 @@
if (!res) {
while(tries && !res) {
ast_stopstream(chan);
- res = ast_app_getdata(chan, filename, tmp, maxdigits, 0);
+ res = ast_app_getdata(chan, filename, tmp, maxdigits, to);
if (res > -1) {
pbx_builtin_setvar_helper(chan, varname, tmp);
if (!ast_strlen_zero(tmp)) {
More information about the svn-commits
mailing list