aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 19:35:09 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-27 19:35:09 +0000
commitcb4b934c7e544005a0ce1541ca607df71c96fff1 (patch)
treebff9ff5c58bd86a2565c3205695279da5dfd1eb1 /pbx.c
parenta0b53a7da58f56277a57fdb1741d8151fb1a91b0 (diff)
Playback() wasn't setting PLAYBACKSTATUS under several circumstances.
Playback() returns -1 on missing args - so should Background() git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43800 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbx.c b/pbx.c
index cfa93195e..f48e6b27a 100644
--- a/pbx.c
+++ b/pbx.c
@@ -5745,7 +5745,7 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
break;
default:
ast_log(LOG_WARNING, "Background requires an argument (filename)\n");
- break;
+ return -1;
}
}