correct default language setting for Background() app (bug #4044)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-04-20 16:11:16 +00:00
parent e1e893d3b9
commit 6d05d785be

3
pbx.c
View File

@@ -5566,6 +5566,9 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
}
}
if (!lang)
lang = chan->language;
if (options) {
if (!strcasecmp(options, "skip"))
flags.flags = BACKGROUND_SKIP;