mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-04 05:15:22 +00:00 
			
		
		
		
	Merged revisions 107017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r107017 | file | 2008-03-10 11:36:16 -0300 (Mon, 10 Mar 2008) | 15 lines Merged revisions 107016 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r107016 | file | 2008-03-10 11:33:02 -0300 (Mon, 10 Mar 2008) | 7 lines Move where unanswered CDRs are dropped to the CDR core, not everything uses app_dial. (closes issue #11516) Reported by: ys Patches: branch_1.4_cdr.diff uploaded by ys (license 281) Tested by: anest, jcapp, dartvader ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@107018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		@@ -835,23 +835,6 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
 | 
			
		||||
		if (!*to || ast_check_hangup(in))
 | 
			
		||||
			ast_cdr_noanswer(in->cdr);
 | 
			
		||||
	}
 | 
			
		||||
	if (peer && !ast_cdr_log_unanswered()) {
 | 
			
		||||
		/* suppress the CDR's that didn't win */
 | 
			
		||||
		struct chanlist *o;
 | 
			
		||||
		for (o = outgoing; o; o = o->next) {
 | 
			
		||||
			struct ast_channel *c = o->chan;
 | 
			
		||||
			if (c && c != peer && c->cdr)
 | 
			
		||||
				ast_set_flag(c->cdr, AST_CDR_FLAG_POST_DISABLED);
 | 
			
		||||
		}
 | 
			
		||||
	} else if (!peer && !ast_cdr_log_unanswered()) {
 | 
			
		||||
			/* suppress the CDR's that didn't win */
 | 
			
		||||
		struct chanlist *o;
 | 
			
		||||
		for (o = outgoing; o; o = o->next) {
 | 
			
		||||
			struct ast_channel *c = o->chan;
 | 
			
		||||
			if (c && c->cdr)
 | 
			
		||||
				ast_set_flag(c->cdr, AST_CDR_FLAG_POST_DISABLED);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_EPOLL
 | 
			
		||||
	for (epollo = outgoing; epollo; epollo = epollo->next) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user