aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbx.c')
-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;