mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	Add an 'e' option to ResetCDR which re-enables a CDR that has been disabled.
(closes issue #11170) Reported by: kratzers Patches: ResetCDR.1.diff uploaded by kratzers (license 307) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@104215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -1025,6 +1025,12 @@ void ast_cdr_reset(struct ast_cdr *cdr, struct ast_flags *_flags) | ||||
| 				ast_set_flag(cdr, AST_CDR_FLAG_POSTED); | ||||
| 			} | ||||
|  | ||||
| 			/* enable CDR only */ | ||||
| 			if (ast_test_flag(&flags, AST_CDR_FLAG_POST_ENABLE)) { | ||||
| 				ast_clear_flag(cdr, AST_CDR_FLAG_POST_DISABLED); | ||||
| 				continue; | ||||
| 			} | ||||
|  | ||||
| 			/* clear variables */ | ||||
| 			if (!ast_test_flag(&flags, AST_CDR_FLAG_KEEP_VARS)) { | ||||
| 				ast_cdr_free_vars(cdr, 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user