aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-22 05:25:58 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-02-22 05:25:58 +0000
commitd42bde85d7194df2d04f417d499428a24b3c4124 (patch)
tree2ef4bb2b053686dede4ee6499512044a8bfefa45 /pbx.c
parenta294f3f27439eb3a25e9ad8d0e7da55b055110fa (diff)
Add ${LANGUAGE} channel variable (bug #1078)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2210 f38db490-d61c-443f-a65b-d21fe96a405b
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 27a9b1fe2..7e35f0032 100755
--- a/pbx.c
+++ b/pbx.c
@@ -881,6 +881,9 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var,
} else if (c && !strcmp(var, "ACCOUNTCODE")) {
strncpy(workspace, c->accountcode, workspacelen - 1);
*ret = workspace;
+ } else if (c && !strcmp(var, "LANGUAGE")) {
+ strncpy(workspace, c->language, workspacelen - 1);
+ *ret = workspace;
} else {
if (c) {
AST_LIST_TRAVERSE(headp,variables,entries) {