mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Oops, we have to be able to pass multiple restrictions for when we go to voicemail...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										10
									
								
								config.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								config.c
									
									
									
									
									
								
							| @@ -416,15 +416,19 @@ int ast_save(char *configfile, struct ast_config *cfg, char *generator) | ||||
| } | ||||
|  | ||||
|  | ||||
| struct ast_variable *ast_load_realtime(const char *family, const char *keyfield, const char *lookup) | ||||
| struct ast_variable *ast_load_realtime(const char *family, ...) | ||||
| { | ||||
| 	struct ast_config_reg *reg; | ||||
| 	char db[256]=""; | ||||
| 	char table[256]=""; | ||||
| 	struct ast_variable *res=NULL; | ||||
| 	va_list ap; | ||||
| 	va_start(ap, family); | ||||
| 	reg = get_ast_cust_config_keyword(family, db, sizeof(db), table, sizeof(table)); | ||||
| 	if (reg && reg->realtime_func)  | ||||
| 		return reg->realtime_func(db, table, keyfield, lookup); | ||||
| 	return NULL; | ||||
| 		res = reg->realtime_func(db, table, ap); | ||||
| 	va_end(ap); | ||||
| 	return res; | ||||
| } | ||||
|  | ||||
| int ast_update_realtime(const char *family, const char *keyfield, const char *lookup, ...) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user