mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
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
This commit is contained in:
@@ -3089,8 +3089,19 @@ struct ast_channel *__ast_request_and_dial(const char *type, int format, void *d
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case AST_CONTROL_BUSY:
|
case AST_CONTROL_BUSY:
|
||||||
|
ast_cdr_busy(chan->cdr);
|
||||||
|
*outstate = f->subclass;
|
||||||
|
timeout = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case AST_CONTROL_CONGESTION:
|
case AST_CONTROL_CONGESTION:
|
||||||
|
ast_cdr_failed(chan->cdr);
|
||||||
|
*outstate = f->subclass;
|
||||||
|
timeout = 0;
|
||||||
|
break;
|
||||||
|
|
||||||
case AST_CONTROL_ANSWER:
|
case AST_CONTROL_ANSWER:
|
||||||
|
ast_cdr_answer(chan->cdr);
|
||||||
*outstate = f->subclass;
|
*outstate = f->subclass;
|
||||||
timeout = 0; /* trick to force exit from the while() */
|
timeout = 0; /* trick to force exit from the while() */
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user