mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add ${LANGUAGE} channel variable (bug #1078)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										3
									
								
								pbx.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user