diff options
author | James Golovich <james@gnuinter.net> | 2004-02-22 05:25:58 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-02-22 05:25:58 +0000 |
commit | d03dbf91a6d16d7cfd4fce2af4dc4ae7c854bd72 (patch) | |
tree | 2ef4bb2b053686dede4ee6499512044a8bfefa45 /pbx.c | |
parent | 90594b5fc858861d8176bbbabe23ffc16a84f77e (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-x | pbx.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |