|
|
@ -407,12 +407,12 @@ int ast_linear_stream(struct ast_channel *chan, const char *filename, int fd, in
|
|
|
|
return res;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int ast_control_streamfile(struct ast_channel *chan, char *file,char *f,char *r,int skipms) {
|
|
|
|
int ast_control_streamfile(struct ast_channel *chan, char *file, char *f, char *r, int skipms)
|
|
|
|
int res;
|
|
|
|
{
|
|
|
|
if ((res = ast_streamfile(chan, file, chan->language)))
|
|
|
|
int res;
|
|
|
|
ast_log(LOG_WARNING, "Unable to stream file %s\n", file);
|
|
|
|
if ((res = ast_streamfile(chan, file, chan->language)))
|
|
|
|
if (!res)
|
|
|
|
ast_log(LOG_WARNING, "Unable to stream file %s\n", file);
|
|
|
|
res = ast_waitstream_fr(chan, AST_DIGIT_ANY,f,r,skipms);
|
|
|
|
if (!res)
|
|
|
|
return res;
|
|
|
|
res = ast_waitstream_fr(chan, AST_DIGIT_ANY,f,r,skipms);
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|