Merged revisions 73849 via svnmerge from
authorOlle Johansson <oej@edvina.net>
Sun, 8 Jul 2007 09:49:21 +0000 (09:49 +0000)
committerOlle Johansson <oej@edvina.net>
Sun, 8 Jul 2007 09:49:21 +0000 (09:49 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r73849 | oej | 2007-07-08 11:47:31 +0200 (Sun, 08 Jul 2007) | 2 lines

While tracking down a bug, I need some more history. Dumphistory is very useful, indeed.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@73850 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index d156b7d..f3dccf8 100644 (file)
@@ -3721,6 +3721,8 @@ static int sip_hangup(struct ast_channel *ast)
 
        stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */
 
+       append_history(p, needcancel ? "Cancel" : "Hangup", "Cause %s", p->owner ? ast_cause2str(p->owner->hangupcause) : "Unknown");
+
        /* Disconnect */
        if (p->vad)
                ast_dsp_free(p->vad);