From 4908764c59163179ad69fb85206207f0c6e2e84c Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 20 Apr 2005 16:11:16 +0000 Subject: correct default language setting for Background() app (bug #4044) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5487 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pbx.c') 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; -- cgit v1.2.3