diff options
author | Mark Spencer <markster@digium.com> | 2002-07-12 09:03:50 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2002-07-12 09:03:50 +0000 |
commit | d233fd5d12da7f73c6d67bbe309e088b578dd70a (patch) | |
tree | e2cb193cae19783f6b766de76726004c70d07d97 /apps/app_playback.c | |
parent | 67751c3992e39e1652d9a2ac150a49b62695a9c3 (diff) |
Version 0.2.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@484 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_playback.c')
-rwxr-xr-x | apps/app_playback.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c index 5ca262660..346617377 100755 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -63,7 +63,7 @@ static int playback_exec(struct ast_channel *chan, void *data) if (options && !strcasecmp(options, "noanswer")) option_noanswer = 1; LOCAL_USER_ADD(u); - if (chan->state != AST_STATE_UP) { + if (chan->_state != AST_STATE_UP) { if (option_skip) { /* At the user's option, skip if the line is not up */ LOCAL_USER_REMOVE(u); @@ -77,8 +77,10 @@ static int playback_exec(struct ast_channel *chan, void *data) res = ast_streamfile(chan, tmp, chan->language); if (!res) res = ast_waitstream(chan, ""); - else + else { ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data); + res = 0; + } ast_stopstream(chan); } LOCAL_USER_REMOVE(u); |