From 6d05d785be6338d3e3e4eb2f3808c840a137a22e Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 20 Apr 2005 16:11:16 +0000 Subject: [PATCH] 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 --- pbx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbx.c b/pbx.c index 78287e25ee..0764f5922c 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;