diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-12 09:03:50 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-12 09:03:50 +0000 |
commit | 0ac7711a22bfc433c394d87fa58d2c553ba52b9f (patch) | |
tree | e2cb193cae19783f6b766de76726004c70d07d97 /apps/app_playback.c | |
parent | 12fd7ca3bbc8df1293b20a615646e35b5033cb72 (diff) |
Version 0.2.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@484 f38db490-d61c-443f-a65b-d21fe96a405b
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); |