summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorJames Golovich <james@gnuinter.net>2004-02-22 05:25:58 +0000
committerJames Golovich <james@gnuinter.net>2004-02-22 05:25:58 +0000
commitd03dbf91a6d16d7cfd4fce2af4dc4ae7c854bd72 (patch)
tree2ef4bb2b053686dede4ee6499512044a8bfefa45 /pbx.c
parent90594b5fc858861d8176bbbabe23ffc16a84f77e (diff)
Add ${LANGUAGE} channel variable (bug #1078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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) {