mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	cel_custom: Allow absolute filenames.
If a filename starts with a '/' in cel_custom [mappings] assume it is a absolute file path and not relative filename/path to AST_LOG_DIR/cel_custom/
This commit is contained in:
		
				
					committed by
					
						![asterisk-org-access-app[bot]](/avatar/58a64b62d62d5b23df7bc832f016f9db?size=40) asterisk-org-access-app[bot]
						asterisk-org-access-app[bot]
					
				
			
			
				
	
			
			
			
						parent
						
							6f16d13709
						
					
				
				
					commit
					127218249f
				
			| @@ -103,7 +103,11 @@ static int load_config(void) | ||||
| 			} | ||||
|  | ||||
| 			ast_string_field_build(sink, format, "%s\n", var->value); | ||||
| 			ast_string_field_build(sink, filename, "%s/%s/%s", ast_config_AST_LOG_DIR, name, var->name); | ||||
| 			if (var->name[0] == '/') { | ||||
| 				ast_string_field_build(sink, filename, "%s", var->name); | ||||
| 			} else { | ||||
| 				ast_string_field_build(sink, filename, "%s/%s/%s", ast_config_AST_LOG_DIR, name, var->name); | ||||
| 			} | ||||
| 			ast_mutex_init(&sink->lock); | ||||
|  | ||||
| 			ast_verb(3, "Added CEL CSV mapping for '%s'.\n", sink->filename); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user