Version 0.1.4 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@218 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2000-10-25 23:22:50 +00:00
parent dc57c56065
commit b545125d11
3 changed files with 60 additions and 8 deletions

View File

@@ -43,8 +43,10 @@ static int playback_exec(struct ast_channel *chan, void *data)
if (!res) {
ast_stopstream(chan);
res = ast_streamfile(chan, (char *)data, chan->language);
if (!res)
if (!res)
res = ast_waitstream(chan, "");
else
ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data);
ast_stopstream(chan);
}
LOCAL_USER_REMOVE(u);