summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-20 16:11:16 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-20 16:11:16 +0000
commit6d05d785be6338d3e3e4eb2f3808c840a137a22e (patch)
treec318a920899b44b2cd3d921780f384ce3c4c2562
parente1e893d3b98fccf819bd9b2d3a1ea4fb1cbb3627 (diff)
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
-rwxr-xr-xpbx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index 78287e25e..0764f5922 100755
--- a/pbx.c
+++ b/pbx.c
@@ -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;