From 4c8e4a296934888aae87ba75d32d5b5208411f28 Mon Sep 17 00:00:00 2001 From: Matthew Nicholson Date: Fri, 8 May 2009 21:01:25 +0000 Subject: [PATCH] Set the proper disposition on originated calls. (closes issue #14167) Reported by: jpt Patches: call-file-missing-cdr2.diff uploaded by mnicholson (license 96) Tested by: dlotina, rmartinez, mnicholson git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@193391 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/channel.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/main/channel.c b/main/channel.c index 6a2f7f77c2..6683d2b915 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3089,8 +3089,19 @@ struct ast_channel *__ast_request_and_dial(const char *type, int format, void *d break; case AST_CONTROL_BUSY: + ast_cdr_busy(chan->cdr); + *outstate = f->subclass; + timeout = 0; + break; + case AST_CONTROL_CONGESTION: + ast_cdr_failed(chan->cdr); + *outstate = f->subclass; + timeout = 0; + break; + case AST_CONTROL_ANSWER: + ast_cdr_answer(chan->cdr); *outstate = f->subclass; timeout = 0; /* trick to force exit from the while() */ break; -- 2.47.2