]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update CDR appropriately when AST_CAUSE_NO_ANSWER is set
authorTerry Wilson <twilson@digium.com>
Mon, 20 Apr 2009 21:10:27 +0000 (21:10 +0000)
committerTerry Wilson <twilson@digium.com>
Mon, 20 Apr 2009 21:10:27 +0000 (21:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@189465 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index cbe6b31296c769cf3cce09c96c74ac19d24f6634..f0907bd4de02f18793c6bc573ccc41d48b9383c2 100644 (file)
@@ -357,6 +357,9 @@ static void hanguptree(struct dial_localuser *outgoing, struct ast_channel *exce
                numnochan++; \
                break; \
        case AST_CAUSE_NO_ANSWER: \
+               if (chan->cdr) \
+                       ast_cdr_noanswer(chan->cdr); \
+               break; \
        case AST_CAUSE_NORMAL_CLEARING: \
                break; \
        default: \