]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Set the proper disposition on originated calls.
authorMatthew Nicholson <mnicholson@digium.com>
Fri, 8 May 2009 21:01:25 +0000 (21:01 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Fri, 8 May 2009 21:01:25 +0000 (21:01 +0000)
(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

index 6a2f7f77c25d99960b02be8a24fc7d92e923bad6..6683d2b915746428cbecfbea776b50e6a65f41db 100644 (file)
@@ -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;