diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-22 05:25:58 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-22 05:25:58 +0000 |
commit | d42bde85d7194df2d04f417d499428a24b3c4124 (patch) | |
tree | 2ef4bb2b053686dede4ee6499512044a8bfefa45 /pbx.c | |
parent | a294f3f27439eb3a25e9ad8d0e7da55b055110fa (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-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) { |