[Asterisk-cvs] asterisk pbx.c,1.97,1.98

citats at lists.digium.com citats at lists.digium.com
Sun Feb 22 00:38:06 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv825

Modified Files:
	pbx.c 
Log Message:
Add ${LANGUAGE} channel variable (bug #1078)


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- pbx.c	11 Feb 2004 03:54:28 -0000	1.97
+++ pbx.c	22 Feb 2004 05:25:58 -0000	1.98
@@ -881,6 +881,9 @@
         } 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) {




More information about the svn-commits mailing list