aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_playback.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 20:01:41 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 20:01:41 +0000
commit7f38a926e0b91afec30b1befc969ded7033eade7 (patch)
tree6b1a6f63b58d20b8dd5dc3a662b69d0ed272ae38 /apps/app_playback.c
parentc2f3b48b643a3ba37c05f17be5133a8ccf7ad033 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@43813 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_playback.c')
-rw-r--r--apps/app_playback.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c
index ed33097ab..71c9bc743 100644
--- a/apps/app_playback.c
+++ b/apps/app_playback.c
@@ -110,6 +110,7 @@ static int playback_exec(struct ast_channel *chan, void *data)
if (chan->_state != AST_STATE_UP) {
if (option_skip) {
/* At the user's option, skip if the line is not up */
+ pbx_builtin_setvar_helper(chan, "PLAYBACKSTATUS", "SUCCESS");
LOCAL_USER_REMOVE(u);
return 0;
} else if (!option_noanswer)
@@ -137,11 +138,11 @@ static int playback_exec(struct ast_channel *chan, void *data)
}
front = back;
}
- if (mres)
- pbx_builtin_setvar_helper(chan, "PLAYBACKSTATUS", "FAILED");
- else
- pbx_builtin_setvar_helper(chan, "PLAYBACKSTATUS", "SUCCESS");
}
+ if (mres)
+ pbx_builtin_setvar_helper(chan, "PLAYBACKSTATUS", "FAILED");
+ else
+ pbx_builtin_setvar_helper(chan, "PLAYBACKSTATUS", "SUCCESS");
LOCAL_USER_REMOVE(u);
return res;
}