correct default language setting for Background() app (bug #4044)
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 20 Apr 2005 16:11:16 +0000 (16:11 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 20 Apr 2005 16:11:16 +0000 (16:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5487 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx.c

diff --git a/pbx.c b/pbx.c
index 78287e2..0764f59 100755 (executable)
--- 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;