Improve SIP history
authorOlle Johansson <oej@edvina.net>
Thu, 8 Jun 2006 20:06:04 +0000 (20:06 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 8 Jun 2006 20:06:04 +0000 (20:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33109 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ebeae3a..bdd5156 100644 (file)
@@ -1697,7 +1697,7 @@ static int __sip_autodestruct(void *data)
 
        if (option_debug)
                ast_log(LOG_DEBUG, "Auto destroying call '%s'\n", p->callid);
-       append_history(p, "AutoDestroy", "");
+       append_history(p, "AutoDestroy", "%s", p->callid);
        if (p->owner) {
                ast_log(LOG_WARNING, "Autodestruct on dialog '%s' with owner in place (Method: %s)\n", p->callid, sip_methods[p->method].text);
                ast_queue_hangup(p->owner);
@@ -11889,6 +11889,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                        copy_request(&p->initreq, req);
                        if (debug)
                                ast_verbose("Using INVITE request as basis request - %s\n", p->callid);
+                       append_history(p, "Invite", "New call: %s", p->callid);
                        parse_ok_contact(p, req);
                } else {        /* Re-invite on existing call */
                        /* Handle SDP here if we already have an owner */